SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Clients Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Clients Development This forum is for discussions relating to SageTV Open Source Clients Development.

Reply
 
Thread Tools Search this Thread Display Modes
  #341  
Old 08-31-2020, 07:38 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
HD Placeshifting open for Beta testing

Hi All,

Beta version of the new HD transcoding/placeshifting is open to everyone for testing. Info and files are posted on my Patreon page here https://www.patreon.com/posts/40951674. Please let me know if you have any issues or comments.

Featrues:

1. HD transcoding (720/1080/SOURCE)
2. Automatic transcoding unsupported codecs (a lot of android devices do not support mpeg2)
3. A lot of settings to customize the fixed transcoding experience.

Thanks,
Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #342  
Old 08-31-2020, 05:39 PM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is offline
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
Just testing this on a Firestick 4k (on my local network). I forced "fixed" in the settings before loading the GUI. Watching on my home network, the SageTV transcoder executable does not start when watching a program. It appears to be watching the actual stream without transcoding.

Transcoding preference is set to "Always"
Video bitrate = 4000
Framerate = source
Resolution = use source
Audio Codec = AC3 (I was going to set it to source, but source isn't an option)
Audio Bitrate = 192
Channels = 5.1

Last edited by KryptoNyte; 08-31-2020 at 05:42 PM.
Reply With Quote
  #343  
Old 08-31-2020, 05:58 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by KryptoNyte View Post
Just testing this on a Firestick 4k (on my local network). I forced "fixed" in the settings before loading the GUI. Watching on my home network, the SageTV transcoder executable does not start when watching a program. It appears to be watching the actual stream without transcoding.

Transcoding preference is set to "Always"
Video bitrate = 4000
Framerate = source
Resolution = use source
Audio Codec = AC3 (I was going to set it to source, but source isn't an option)
Audio Bitrate = 192
Channels = 5.1
At the moment transcoding is only happening during remote access.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #344  
Old 08-31-2020, 06:44 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by nyplayer View Post
At the moment transcoding is only happening during remote access.
I got your latest log. I did see differences from my logs to yours. I should be able to figure it out with the data I have. I will look into it further tomorrow. It is probably a scenario I did not see in my testing. Thank you for the feedback guys!

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #345  
Old 09-01-2020, 07:17 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by jvl711 View Post
I got your latest log. I did see differences from my logs to yours. I should be able to figure it out with the data I have. I will look into it further tomorrow. It is probably a scenario I did not see in my testing. Thank you for the feedback guys!

Josh
I update the sage.jar in the Patreon post with and additional check for forced transcoding. Let me know how it looks.

Thanks,
Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #346  
Old 09-01-2020, 07:37 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jvl711 View Post
I update the sage.jar in the Patreon post with and additional check for forced transcoding. Let me know how it looks.

Thanks,
Josh
It is working Thanks.


Rewinding is poor freezes.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 09-01-2020 at 07:44 AM.
Reply With Quote
  #347  
Old 09-01-2020, 07:50 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jvl711 View Post
I update the sage.jar in the Patreon post with and additional check for forced transcoding. Let me know how it looks.

Thanks,
Josh
Transcoder is running below normal should be high or normal ... I know there is a property to adjust that just have to remember and find it.


xcode_process_priority_streaming=belownormal
xcode_reduce_process_priority=true

I changed it to ...

xcode_process_priority_streaming=normal
xcode_reduce_process_priority=false
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 09-01-2020 at 07:58 AM.
Reply With Quote
  #348  
Old 09-01-2020, 08:23 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by nyplayer View Post
Transcoder is running below normal should be high or normal ... I know there is a property to adjust that just have to remember and find it.


xcode_process_priority_streaming=belownormal
xcode_reduce_process_priority=true

I changed it to ...

xcode_process_priority_streaming=normal
xcode_reduce_process_priority=false
Did that help with the rewind? From my testing rewind/ff seemed to be pretty responsive. I thought it was better than or on par with Plex. I am using ExoPlayer with MKV container.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #349  
Old 09-01-2020, 08:46 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jvl711 View Post
Did that help with the rewind? From my testing rewind/ff seemed to be pretty responsive. I thought it was better than or on par with Plex. I am using ExoPlayer with MKV container.

Josh
On what device are you running on ?? Also it appears to always transcodes even if I have it when needed ? ... My Cable channels are H264 and they are being transcoded ?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #350  
Old 09-01-2020, 08:59 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by nyplayer View Post
On what device are you running on ?? Also it appears to always transcodes even if I have it when needed ? ... My Cable channels are H264 and they are being transcoded ?
I am using a Sony TV and a Firestick 4k.

Could you please send me another sagetv log. I want to see what I missed.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #351  
Old 09-01-2020, 09:17 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by jvl711 View Post
I am using a Sony TV and a Firestick 4k.

Could you please send me another sagetv log. I want to see what I missed.

Josh

I think I have an idea. I am struggling with the MPEG content.... Sage treats the MPEG content different than other content. This is what we are telling SageTV the Android client supports for containers....

Code:
PULL_AV_CONTAINERS=AVI,FLASHVIDEO,Quicktime,Ogg,MP3,AAC,WMV,ASF,FLAC,MATROSKA,WAV,AC3
TPUSH_AV_CONTAINERS=MPEG2-PS,MPEG2-TS,MPEG1-PS
PULL = Do not transcode and send as it is
PUSH = Transcode/remux the format

So when we enable to "Always Transcode" setting I clear all of the container formats from PULL. This tells Sage that it only supports transcoding "PUSH" to MPEG2. If it sees that it supports MPEG2 as a codec and a push format, it chooses not to transcode, but to remux instead.

So I keep trying to move logic around, and use different hooks, but they all seem to end up with outcomes I do not want. I wonder if I should switch the PUSH format to just be null. I wonder if that would fix the issue....

Anyways, pontificating, and trying to explain why I keep testing and asking for additional logs.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #352  
Old 09-01-2020, 09:20 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jvl711 View Post
I am using a Sony TV and a Firestick 4k.

Could you please send me another sagetv log. I want to see what I missed.

Josh
Sent
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #353  
Old 09-01-2020, 09:45 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
So I keep trying to move logic around, and use different hooks, but they all seem to end up with outcomes I do not want. I wonder if I should switch the PUSH format to just be null. I wonder if that would fix the issue....
Setting PUSH to null does not work.... SageTV defaults it to MPEG-PS. I set it to MATROSKA instead. I am going to do a little more testing, but I am hoping that will work.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #354  
Old 09-01-2020, 12:36 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by jvl711 View Post
Setting PUSH to null does not work.... SageTV defaults it to MPEG-PS. I set it to MATROSKA instead. I am going to do a little more testing, but I am hoping that will work.

Josh
Alright..... I am hoping I got it this time. I removed the last change I made to the Sage.jar. And I am pass "NONE" for the push format when transcode "Always" is set. I tested as many scenarios as I could think of. I hope this gets it.

Patreon is updated with new Sage.jar and new Android Client.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #355  
Old 09-01-2020, 12:52 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jvl711 View Post
Alright..... I am hoping I got it this time. I removed the last change I made to the Sage.jar. And I am pass "NONE" for the push format when transcode "Always" is set. I tested as many scenarios as I could think of. I hope this gets it.

Patreon is updated with new Sage.jar and new Android Client.

Josh
I guess nothing needs to be transcoded because it does not transcode anything if set to when needed playing locally ... on my FireTV Cube.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #356  
Old 09-01-2020, 01:08 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jvl711 View Post
Alright..... I am hoping I got it this time. I removed the last change I made to the Sage.jar. And I am pass "NONE" for the push format when transcode "Always" is set. I tested as many scenarios as I could think of. I hope this gets it.

Patreon is updated with new Sage.jar and new Android Client.

Josh
Check Patreon.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #357  
Old 09-01-2020, 01:10 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by nyplayer View Post
I guess nothing needs to be transcoded because it does not transcode anything if set to when needed playing locally ... on my FireTV Cube.
That is highly likely. I mainly made that setting for some obscure content that might have some odd codec. Plus there are a ton of devices that do not support MPEG2. My Pixel 3xl does not support MPEG2. So it allows it to use all of the H.264 and H.265 content natively on ExoPlayer, than switch to transcode on MPEG2 content.

Josh
__________________
Projects I am currently maintaining
SageTV Andoid Client
Media Format Parser Plugin
JavaFFmpegLibrary
SageTVTranscoder

If you like the work I am doing and would like to support it you can become a Patreon member.
Reply With Quote
  #358  
Old 09-01-2020, 09:33 PM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
Regarding the keyboard/login issue, I think I have inadvertently discovered a workaround. In the client .properties file if you specify a bogus file for the parameter secure_remote_login_stv7 then it immediately connects with no login prompt, at least on my system. I discovered this when I moved my sage server install from an early version of 32 bit version 9 to a more recent 64 bit version, but copied over my clients directory. I honestly thought this was just a fix that the community slipped in at some point, but I gave up on finding it in the release notes after a bit. I was bored over the last few days and decided to track this down and discovered this specific behavior. The properties files that I copied over looked like this, and since I had moved to the 64 bit path the path containing x86 was invalid.

secure_remote_login_stv7=C\:\\Program Files (x86)\\SageTV\\SageTV\\STVs\\SageTV7\\SecureLogin.xml

I then moved the server to Linux, again copying the properties file, and the behavior remains the same. In my testing I currently have the entry as this and it still lets me right in.

secure_remote_login_stv7=/opt/sagetv/server/STVs/SageTV7/SecureLoginnope.xml

If you tail the server debug logs while you connect from the mini client you can see where it fails to locate the file to construct the login UI.

For me personally the only reason I started down this path was to let me put my streaming sticks and other IoT devices on a separate VLAN/subnet from my main network. The SageTV server treating the client as if it were a truly remote placeshifter connection frustrated me to no end. I have not tested this with an actual remote placeshifter connection across the internet and likely never will. I rarely use SageTV anymore as my usage has shifted nearly entirely to Netflix etc. and Plex. Plex as a DVR for OTA still has some shortcomings so I still have SageTV available for occasional recordings.
Reply With Quote
  #359  
Old 09-02-2020, 08:08 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by megamojo View Post
Regarding the keyboard/login issue, I think I have inadvertently discovered a workaround. In the client .properties file if you specify a bogus file for the parameter secure_remote_login_stv7 then it immediately connects with no login prompt, at least on my system. I discovered this when I moved my sage server install from an early version of 32 bit version 9 to a more recent 64 bit version, but copied over my clients directory. I honestly thought this was just a fix that the community slipped in at some point, but I gave up on finding it in the release notes after a bit. I was bored over the last few days and decided to track this down and discovered this specific behavior. The properties files that I copied over looked like this, and since I had moved to the 64 bit path the path containing x86 was invalid.

secure_remote_login_stv7=C\:\\Program Files (x86)\\SageTV\\SageTV\\STVs\\SageTV7\\SecureLogin.xml

I then moved the server to Linux, again copying the properties file, and the behavior remains the same. In my testing I currently have the entry as this and it still lets me right in.

secure_remote_login_stv7=/opt/sagetv/server/STVs/SageTV7/SecureLoginnope.xml

If you tail the server debug logs while you connect from the mini client you can see where it fails to locate the file to construct the login UI.

For me personally the only reason I started down this path was to let me put my streaming sticks and other IoT devices on a separate VLAN/subnet from my main network. The SageTV server treating the client as if it were a truly remote placeshifter connection frustrated me to no end. I have not tested this with an actual remote placeshifter connection across the internet and likely never will. I rarely use SageTV anymore as my usage has shifted nearly entirely to Netflix etc. and Plex. Plex as a DVR for OTA still has some shortcomings so I still have SageTV available for occasional recordings.
What is in here SecureLogin.xml ???
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #360  
Old 09-02-2020, 08:54 AM
megamojo's Avatar
megamojo megamojo is offline
Sage Advanced User
 
Join Date: Apr 2006
Posts: 179
I'm not a programmer by any means, but it looks to be the html-like code to create the UI to prompt for the placeshifter username and password. It's a very human(programmer) readable file. In my testing I noticed that if you comment out or remove the line in the client .properties file it gets automatically put back pointing to the correct path, which then causes the login prompt and keyboard challenges to return.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV MiniClient for Android Indiegogo Campaign (Thanks) stuckless SageTV Clients Development 14 09-18-2022 07:15 AM
Android MiniClient 1.4.3 stuckless SageTV Clients Development 20 03-25-2019 10:32 AM
Android MiniClient 1.2.9 stuckless SageTV Clients Development 53 04-16-2018 07:30 AM
Android Miniclient and UK TV rickgillyon SageTV Clients Development 6 12-01-2016 05:58 PM
Android Miniclient on Mi Box Crashing SageTV Server v9 mackb SageTV Clients Development 9 11-27-2016 07:28 PM


All times are GMT -6. The time now is 06:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.