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
  #141  
Old 07-01-2020, 03:41 PM
sacrament055 sacrament055 is offline
Sage Aficionado
 
Join Date: Jul 2007
Posts: 474
I went ahead and installed OpenDCT and can now confirm what you guys have already seen. New miniclient works perfectly with live TV OTA using EXO.

Now my new issue is that my older MPEG2 recordings still play stuttery. I then attempted to use the Sage built in conversion tool to conver them to MPEG4 in order to make them work with EXOPlayer but I got immediate failures when attempting to convert. Is anyone else having trouble with the conversion tool after the sage updates.

Note that I also installed the updated sage format detector
Reply With Quote
  #142  
Old 07-01-2020, 03:44 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by sacrament055 View Post
I went ahead and installed OpenDCT and can now confirm what you guys have already seen. New miniclient works perfectly with live TV OTA using EXO.

Now my new issue is that my older MPEG2 recordings still play stuttery. I then attempted to use the Sage built in conversion tool to conver them to MPEG4 in order to make them work with EXOPlayer but I got immediate failures when attempting to convert. Is anyone else having trouble with the conversion tool after the sage updates.

Note that I also installed the updated sage format detector
maybe you can try ffmpeg and remux to mkv
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #143  
Old 07-01-2020, 03:53 PM
jpwegas jpwegas is offline
Sage Expert
 
Join Date: May 2007
Posts: 502
Quote:
Originally Posted by jvl711 View Post
I think you may have been the one I got the idea from for the one I made. I needed something to work with Windows, and the other solution at the time was limited in which OSes it supported, and required the windows firewall... So I wrote something that had less requirements.

I moved to OpenDCT because it has tighter integration with FFmpeg. I was forking the process and grabbing the stdout to process files. I have been using OpenDCT for ~1-2 years. Works really well. I did use my solution for a long time before ditching though.
I'm basically in that same boat - I haven't switched yet because for my setup the existing program was just working and it was stable. But I'm working on rebuilding my Sage server soon and might put in the effort to reconfigure everything if it means keeping my future options more open!

--John
Reply With Quote
  #144  
Old 07-01-2020, 03:56 PM
jpwegas jpwegas is offline
Sage Expert
 
Join Date: May 2007
Posts: 502
Quote:
Originally Posted by jvl711 View Post
Could the ones with Amazon devices, could you please let me know how important having a store listing is to you. I just want to make sure this headache is worth it.
I sideloaded it using Downloader but I know not everyone is comfortable doing that.

--John
Reply With Quote
  #145  
Old 07-01-2020, 03:59 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jpwegas View Post
I sideloaded it using Downloader but I know not everyone is comfortable doing that.

--John
I agree with you about most users prefer the store.
I found using adb much easier ... I created a drag and drop on my laptop just have to know the ip's of my clients.
__________________
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; 07-01-2020 at 04:02 PM.
Reply With Quote
  #146  
Old 07-01-2020, 04:01 PM
jpwegas jpwegas is offline
Sage Expert
 
Join Date: May 2007
Posts: 502
Quote:
Originally Posted by sacrament055 View Post
I went ahead and installed OpenDCT and can now confirm what you guys have already seen. New miniclient works perfectly with live TV OTA using EXO.

Now my new issue is that my older MPEG2 recordings still play stuttery. I then attempted to use the Sage built in conversion tool to conver them to MPEG4 in order to make them work with EXOPlayer but I got immediate failures when attempting to convert. Is anyone else having trouble with the conversion tool after the sage updates.

Note that I also installed the updated sage format detector
Glad to hear it's working!

I am in the same situation with the old recordings - I think we can just use ffmpeg's copy with the correct container format to fix all the old files, but I still need to test that.

Previously when I tried changing the existing video files and replacing them with different containers or encodings the playback on my HD300s was all wonky - it would be stuck in the first 5s or skip to the end immediately. Not sure if I need to do something special to prevent that or not. Has anyone done anything like that before? Maybe I just need to rescan all media when I'm done?

The built in Sage converter never works well for me. I'm going to test outside Sage and just remux to an mpegts or mkv container.

--John
Reply With Quote
  #147  
Old 07-01-2020, 04:04 PM
jpwegas jpwegas is offline
Sage Expert
 
Join Date: May 2007
Posts: 502
Quote:
Originally Posted by nyplayer View Post
I agree with you about most users prefer the store.
I found using adb much easier ... I created a drag and drop on my laptop just have to know the ip's of my clients.
Thanks, will check that out.

--John
Reply With Quote
  #148  
Old 07-02-2020, 08:35 AM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Quote:
Originally Posted by sacrament055 View Post
I went ahead and installed OpenDCT and can now confirm what you guys have already seen. New miniclient works perfectly with live TV OTA using EXO.
I guess OpenDCT does some extra processing to the signal? Anyone know if this has a noticeable impact on the resources used by the server when recording?
__________________
-Craig
Reply With Quote
  #149  
Old 07-02-2020, 08:53 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by cncb View Post
I guess OpenDCT does some extra processing to the signal? Anyone know if this has a noticeable impact on the resources used by the server when recording?
No it does no extra processing it just writes the file the correct way.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #150  
Old 07-02-2020, 09:07 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by nyplayer View Post
No it does no extra processing it just writes the file the correct way.
I would agree with nyplayer. I do not think it does any "extra" processing. I think it just writes it to the container correctly. If there are any issues, it will fix it.

I have not noticed any real performance impact.

Josh
Reply With Quote
  #151  
Old 07-02-2020, 10:04 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Not sure if this applies in this instance but in the past I have used VideoRedo to fix wonky files. That is generally more of a manual process but I am pretty sure they have a batch mode as well that you could run old files through.

https://www.videoredo.com/en/index.htm
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #152  
Old 07-02-2020, 10:48 AM
jpwegas jpwegas is offline
Sage Expert
 
Join Date: May 2007
Posts: 502
Quote:
Originally Posted by cncb View Post
I guess OpenDCT does some extra processing to the signal? Anyone know if this has a noticeable impact on the resources used by the server when recording?
When it's just "fixing" the container the audio and video codecs used in the container are not changed and it's really fast. On my idle Sage server ffmpeg can do this at the minimum rate of about 5000 frames/sec against an HD recording, so doing it during live recordings (30 or 60 frames/sec each) isn't really noticeable load on the system.

--John
Reply With Quote
  #153  
Old 07-03-2020, 06:15 AM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
I was able to set up OpenDCT and now can play back new OTA MPEG2 recordings using ExoPlayer but only when I set Sage to record in "ts". If I use the default "ps" format then I get the slo-mo playback as before. Is this the case for anyone else?

Also, would it be possible to allow skipping forward while paused? If I pause playback before I skip the timeline jumps forward but then right back again to the previous location. When I stop playback after this behavior, I sometimes get an "illegal state" exception thrown from ExoPlayer.
__________________
-Craig
Reply With Quote
  #154  
Old 07-03-2020, 08:00 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by cncb View Post
I was able to set up OpenDCT and now can play back new OTA MPEG2 recordings using ExoPlayer but only when I set Sage to record in "ts". If I use the default "ps" format then I get the slo-mo playback as before. Is this the case for anyone else?

Also, would it be possible to allow skipping forward while paused? If I pause playback before I skip the timeline jumps forward but then right back again to the previous location. When I stop playback after this behavior, I sometimes get an "illegal state" exception thrown from ExoPlayer.
did you try the settings to set the ffmpeg audio extensions to preferred always use if possible ?
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #155  
Old 07-03-2020, 08:11 AM
cncb cncb is offline
Sage Icon
 
Join Date: Jul 2006
Posts: 1,271
Quote:
Originally Posted by nyplayer View Post
did you try the settings to set the ffmpeg audio extensions to preferred always use if possible ?
I did and it didn't make a difference. I want DD to my receiver anyways.
__________________
-Craig
Reply With Quote
  #156  
Old 07-03-2020, 08:45 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Transcoder

Hi all,

Looking for some insight from you guys on transcoding.

Started playing with the transcoding with SageTV server and miniclinet, and I was able to make changes to modify the behavior. I told SageTV that the client was not able to process MPEG-2 files, and it did transcode them and send them back to the client. The unfortunate thing though, is I believe it sent back MPEG2 file .

It looks like it can support other formats, but I was not sure if there is a way to force if to use a different format. Does anyone have any ideas? I think the below manages the formats. It would be nice if we had an h.264 profile. Especially if the client is reporting it does not support mpeg2. Any know how I may be able to get that to happen... There are a lot of android devices that do not support mpeg2 it would be nice to transcode to mpeg4.

Code:
media_server/transcode_quality/DVD=-f dvd -b 4000 -s 720x480 -acodec mp2 -r 29.97 -ab 128 -ar 48000 -ac 2
media_server/transcode_quality/DVD6Ch=-f dvd -b 4000 -s 720x480 -acodec ac3 -r 29.97 -ab 384 -ar 48000 -ac 6
media_server/transcode_quality/DVDAudioOnly=-f dvd -vcodec copy -acodec mp2 -ab 384 -ar 48000 -ac 2
media_server/transcode_quality/SVCD=-f dvd -b 2000 -g 3 -bf 0 -acodec mp2 -ab 128 -ar 48000 -ac 2 -s 352x240 -r 29.97
media_server/transcode_quality/SVCD6Ch=-f dvd -b 2000 -g 3 -bf 0 -acodec ac3 -ab 384 -ar 48000 -ac 6 -s 352x240 -r 29.97
media_server/transcode_quality/mp3=-f dvd -vn -acodec copy
media_server/transcode_quality/mpeg2psremux=-f dvd -vcodec copy -acodec copy -copyts
media_server/transcode_quality/music=-f dvd -vn -acodec mp2 -ab 64 -ar 48000 -ac 2
media_server/transcode_quality/music128=-f dvd -vn -acodec mp2 -ab 128 -ar 48000 -ac 2
media_server/transcode_quality/music256=-f dvd -vn -acodec mp2 -ab 256 -ar 48000 -ac 2
Reply With Quote
  #157  
Old 07-03-2020, 09:09 AM
Tiki's Avatar
Tiki Tiki is offline
Sage Icon
 
Join Date: Feb 2005
Location: Southwest Florida, USA
Posts: 2,009
Quote:
Originally Posted by jvl711 View Post
Hi all,

Looking for some insight from you guys on transcoding.

Started playing with the transcoding with SageTV server and miniclinet, and I was able to make changes to modify the behavior. I told SageTV that the client was not able to process MPEG-2 files, and it did transcode them and send them back to the client. The unfortunate thing though, is I believe it sent back MPEG2 file .

It looks like it can support other formats, but I was not sure if there is a way to force if to use a different format. Does anyone have any ideas? I think the below manages the formats. It would be nice if we had an h.264 profile. Especially if the client is reporting it does not support mpeg2. Any know how I may be able to get that to happen... There are a lot of android devices that do not support mpeg2 it would be nice to transcode to mpeg4.

Code:
media_server/transcode_quality/DVD=-f dvd -b 4000 -s 720x480 -acodec mp2 -r 29.97 -ab 128 -ar 48000 -ac 2
media_server/transcode_quality/DVD6Ch=-f dvd -b 4000 -s 720x480 -acodec ac3 -r 29.97 -ab 384 -ar 48000 -ac 6
media_server/transcode_quality/DVDAudioOnly=-f dvd -vcodec copy -acodec mp2 -ab 384 -ar 48000 -ac 2
media_server/transcode_quality/SVCD=-f dvd -b 2000 -g 3 -bf 0 -acodec mp2 -ab 128 -ar 48000 -ac 2 -s 352x240 -r 29.97
media_server/transcode_quality/SVCD6Ch=-f dvd -b 2000 -g 3 -bf 0 -acodec ac3 -ab 384 -ar 48000 -ac 6 -s 352x240 -r 29.97
media_server/transcode_quality/mp3=-f dvd -vn -acodec copy
media_server/transcode_quality/mpeg2psremux=-f dvd -vcodec copy -acodec copy -copyts
media_server/transcode_quality/music=-f dvd -vn -acodec mp2 -ab 64 -ar 48000 -ac 2
media_server/transcode_quality/music128=-f dvd -vn -acodec mp2 -ab 128 -ar 48000 -ac 2
media_server/transcode_quality/music256=-f dvd -vn -acodec mp2 -ab 256 -ar 48000 -ac 2
If you look through the Sage.properties file there are 2 groups of transcoding profiles. The ones you listed above all start with media_server/transcode_quality. But further down in the file is another group that all start with transcoded/formats. There are some mp4 and h.264 formats in that list.

I think the first list is what sage uses when it is trying to automatically transcode to a mini-client; the second list is for when you manually transcode a recording file. I’m guessing you could use one of the profiles in that second list as an example to create a new profile in the first list.

I don’t know how Sage decides which profile to use when it has to do an automatic conversion on the fly for a mini-client. I see there is a setting in detailed setup->server called Media Center Conversion Quality, but the only choices are Standard or Hogh quality. So not sure how those relate to the various profiles.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM
Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2)
,USBUIRT (multi-zone)
Source:
Comcast/Xfinity X1 Cable
Primary Client: Server Other Clients: (1) HD200, (1) HD300
Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE,
HDHR, HVR-2250, HD-PVR
Reply With Quote
  #158  
Old 07-03-2020, 09:15 AM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
What I see in the code is FFMPEGTranscoder.java and it seems all transcoding is hardwired around that. Ultimately it creates command line parameters for SageTVTranscoder.exe (which is a customized FFMPEG) that are hardcoded for mpegts. https://github.com/google/sagetv/blo...oder.java#L782

I suspect you would have to make options within there and possibly within the code that invokes the transcoder to allow other formats like h.264.
__________________
Windows Installer
Reply With Quote
  #159  
Old 07-03-2020, 09:27 AM
jpwegas jpwegas is offline
Sage Expert
 
Join Date: May 2007
Posts: 502
Quote:
Originally Posted by cncb View Post
I was able to set up OpenDCT and now can play back new OTA MPEG2 recordings using ExoPlayer but only when I set Sage to record in "ts". If I use the default "ps" format then I get the slo-mo playback as before. Is this the case for anyone else?
I had the same experience. Almost all my MPEG recordings are MPEG-PS but those play with pauses and bizarre audio on the Android minclient (they play fine on my HD300s and Placeshifter).

Changing it to record using MPEG-TS containers cleared up all the issues with the miniclient and things still play fine on the HD300s.

--John
Reply With Quote
  #160  
Old 07-03-2020, 09:42 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by jpwegas View Post
I had the same experience. Almost all my MPEG recordings are MPEG-PS but those play with pauses and bizarre audio on the Android minclient (they play fine on my HD300s and Placeshifter).

Changing it to record using MPEG-TS containers cleared up all the issues with the miniclient and things still play fine on the HD300s.

--John
That makes sense because changing it to record MPEG-PS produces the same results as recording directly without OPENDCT.

This should be fasle in SageTV.Properties ... in all instances found... if using opendct.
encode_digital_tv_as_program_stream=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; 07-03-2020 at 09:49 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 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 12:54 PM.


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