|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#121
|
||||
|
||||
Quote:
It is awesome to hear it is actually working. I put a lot of work trying to get to that point . I never actually tested it because I am using all android clients.
__________________
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. |
#122
|
||||
|
||||
Hmmmm. Maybe I'm going to have to start testing the HD300 at my other place, remotely, and see how it goes. I've never actually been able to get an HD300 connected remotely, so this might be interesting.
|
#123
|
|||
|
|||
I've been very sporadic in following this thread (life, sigh...) and I see some stuff on the prior page but not *exactly* my question...
I record OTA via HDHR (raw MPEG-2). I know this has historically caused all sorts of issues with transcoding and remote clients, and I believe somewhere I read that a solution is using OpenDCT, but I haven't followed that enough to jump into it. I believe some say it requires IJK (maybe?) but ExoPlayer is what everyone "wants" to use. I've been very busy and not able to spend a lot of time so I'd love it if this were the old-school Sage plugin compatibility of "install the plugin and it just works". Long story short, will this plugin allow me to transcode an OTA recording from a HDHR in real time to MKV and send it to a remote client? (to be clear, if the answer is "no" or "not yet", that's cool, just asking. )
__________________
Server: AMD Athlon II x4 635 2.9GHz, 8 Gb RAM, Win 10 x64, Java 8, Gigabit network Drives: Several TB of internal SATA and external USB drives, no NAS or RAID or such... Software: SageTV v9x64, stock STV with ADM. Tuners: 4 tuners via (2) HDHomeruns (100% OTA, DIY antennas in the attic). Clients: Several HD300s, HD200s, even an old HD100, all on wired LAN. Latest firmware for each. |
#124
|
|||
|
|||
Is there a command line option to reduce the resolution of something you're compressing with Matroska? I record a number of old shows that would look fine in 16:9 480p, but are recording in 1080p because they're on cable channels such as RFD-TV. I know this can be done with AVI.
__________________
ASRock B450M Pro4 AM4 MB, Ryzen 5 2600 3.4ghz, Crucial Ballistix Gaming 32GB (2 x 16GB) DDR4-3200, EVGA GT 1030SC, WD Black NVMe SSD 250GB, 1x WD120EFAX 12TB, 1x WD80EFAX 8TB, 1x WDBH2D0040HNC 4TB, USB-UIRT, Colossus 2, WinTV-DualHD USB, Windows 11 64bit |
#125
|
|||
|
|||
Transcoding files problem
I've got the transcoding and detector plugins installed and have nplayer's mkv formats added. I use the MKV Fast setting to change most tv recordings from .ts to .mkv.
I looked at the Video Conversions a bit ago and notice a few Converted, a whole bunch of failed and another whole bunch of waiting. I've got the following loaded up in Notepad++: Sage.properties, SageTVTranscoder.log, sagetv_0.txt, sagetv_1.txt, sagetv_1.txt, sagetv_1.txt If I search for Converted files and Failed files I cannot really see anything in the SageTVTranscoder.log file that shows/tells why one converted and one failed. Right now it has a whole bunch sitting in the Waiting status with the one on top showing "Converting - 0%". If I look at the Task Manager, SageTVTranscoder.exe *32 is at a constant 30% CPU utilization and 179,664K memory usage. Is there a way to try and debug why I am seeing so many failures?
__________________
SageTV running on: Win10 21H2 SageTV 9.2.6.976 (64 bit) Java 1.8.0 311 (64 bit) OpenDCT 0.5.32 (64 bit) Clients: HD300 (x2) HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners HDFX-4K Flex 20220822 (OTA) - 4 Tuners |
#126
|
||||
|
||||
Quote:
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. |
#127
|
|||
|
|||
Will do. I'm away from home for a week. I'll dig into this when I get back.
__________________
SageTV running on: Win10 21H2 SageTV 9.2.6.976 (64 bit) Java 1.8.0 311 (64 bit) OpenDCT 0.5.32 (64 bit) Clients: HD300 (x2) HDHR3-CC Prime 20220822 (Comcast CableCard) - 3 Tuners HDFX-4K Flex 20220822 (OTA) - 4 Tuners |
#128
|
|||
|
|||
Quote:
I get the following in SageTVTrancoder.log: Code:
################################ Exiting ################################ ################################ SageTVTranscoder (FFmpeg) starting ################################ Arguments: /opt/sagetv/server/ffmpeg -dumpmetadata -v 2 -i /var/media/tv/ForeverYoungSearchingfortheFountainofYouth-45451932-0.mpg ################################ SageTVTranscoder (FFmpeg) starting ################################ Arguments: /opt/sagetv/server/ffmpeg -v 3 -y -threads 2 -sn -vsync 1 -async 100 -stdinctrl -i /var/media/tv/ForeverYoungSearchingfortheFountainofYouth-45451932-0.mpg -threads 7 -f matroska -c copy -aspect 16:9 -deinterlace -map 0:1 -map 0:0 /var/media/tv/ForeverYoungSearchingfortheFountainofYouth-45451932-0.tmp Exiting for some other reason ################################ Exiting ################################ Code:
[matroska @ 0x25ef640] Starting new cluster with timestamp 2387680 at offset 3338167749 bytes [matroska @ 0x25ef640] Writing block of size 1536 with pts 2387680, dts 2387680, duration 32 at relative offset 11 in cluster at offset 3338167749. TrackNumber 2, keyframe 1 [matroska @ 0x25ef640] Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument No more output streams to write to, finishing. [matroska @ 0x25ef640] Writing block of size 1536 with pts 2387712, dts 2387712, duration 32 at relative offset 1554 in cluster at offset 3338167749. TrackNumber 2, keyframe 1 [matroska @ 0x25ef640] Writing block of size 35080 with pts 2387738, dts 2387738, duration 33 at relative offset 3097 in cluster at offset 3338167749. TrackNumber 1, keyframe 0 [matroska @ 0x25ef640] Writing block of size 38398 with pts 2387772, dts 2387772, duration 33 at relative offset 38185 in cluster at offset 3338167749. TrackNumber 1, keyframe 0 [matroska @ 0x25ef640] Can't write packet with unknown timestamp [matroska @ 0x25ef640] end duration = 2387805 [matroska @ 0x25ef640] stream 0 end duration = 2387805 [matroska @ 0x25ef640] stream 1 end duration = 2387744 Error writing trailer of /var/media/tv/ForeverYoungSearchingfortheFountainofYouth-45451932-0.tmp: Invalid argument frame=71552 fps=1763 q=-1.0 Lsize= 3260042kB time=0.010 bitrate=11182.6kbits/s speed=58.9x video:3147424kB audio:111925kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.021282% Input file #0 (/var/media/tv/ForeverYoungSearchingfortheFountainofYouth-45451932-0.mpg): Input stream #0:0 (audio): 74616 packets read (114610902 bytes); Input stream #0:1 (video): 71552 packets read (3222962133 bytes); Input stream #0:2 (audio): 0 packets read (0 bytes); Total: 146168 packets (3337573035 bytes) demuxed Output file #0 (/var/media/tv/ForeverYoungSearchingfortheFountainofYouth-45451932-0.tmp): Output stream #0:0 (video): 71552 packets muxed (3222962133 bytes); Output stream #0:1 (audio): 74616 packets muxed (114610902 bytes); Total: 146168 packets (3337573035 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x261b0c0] Statistics: 2 seeks, 12736 writeouts [AVIOContext @ 0x25f34c0] Statistics: 3466383504 bytes read, 2 seeks Conversion failed! Code:
###Install jv711_SageTVTranscoder-FFmpeg....This can also be installed as SageTV Plugin which is safer mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.org wget https://github.com/jvl711/SageTVTranscoder-FFmpeg/releases/download/SageTVTranscoder_v1.0.6/SageTVTranscoderLinux_v1.0.6.zip unzip -o SageTVTranscoderLinux_v1.0.6.zip -d /opt/sagetv/server rm SageTVTranscoderLinux_v1.0.6.zip ###Install New Trancoder Profiles echo ' transcoder/formats/MKV-H264\superfast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset superfast -c:v libx264;] transcoder/formats/MKV-H264\veryfast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset veryfast -c:v libx264;] transcoder/formats/MKV-H264\faster\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset faster -c:v libx264;] transcoder/formats/MKV-H264\fast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset fast -c:v libx264;] transcoder/formats/MKV-H264\Medium\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset medium -c:v libx264;] transcoder/formats/MKV-H264\slow\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset slow -c:v libx264;] transcoder/formats/MKV-H264\slower\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset slower -c:v libx264;] transcoder/formats/MKV-H264\veryslow\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset veryslow -c:v libx264;] transcoder/formats/MKV-Remux\ MKV=f\=matroska;MCompressionDetails\=-c copy;] ' >> /opt/sagetv/server/Sage.properties ###Install jv711_MediaFormatParserPlugin wget https://github.com/jvl711/MediaFormatParserPlugin/releases/download/0.7/MediaFormatParserPlugin_v0.7.zip unzip -o MediaFormatParserPlugin_v0.7.zip -d /opt/sagetv/server/JARs rm MediaFormatParserPlugin_v0.7.zip sed -i '/mediafile_mediaformat_parser_plugin/d' /opt/sagetv/server/Sage.properties echo 'mediafile_mediaformat_parser_plugin=jvl.mediaformat.MediaFormatParserPlugin' >> /opt/sagetv/server/Sage.properties Code:
12/15/2021 12:17 AM 3,338,283,324 ForeverYoungSearchingfortheFountainofYouth-45451932-0.tmp 11/28/2021 10:00 PM 5,217,087,124 ForeverYoungSearchingfortheFountainofYouth-45451932-0.mpg 11/28/2021 11:17 PM 161 ForeverYoungSearchingfortheFountainofYouth-45451932-0.txt 11/28/2021 11:17 PM 135 ForeverYoungSearchingfortheFountainofYouth-45451932-0.edl 11/28/2021 11:00 PM 9,211 ForeverYoungSearchingfortheFountainofYouth-45451932-0.logo.txt 11/28/2021 11:17 PM 402,888 ForeverYoungSearchingfortheFountainofYouth-45451932-0.log 6 File(s) 8,555,782,843 bytes 0 Dir(s) 6,666,951,823,360 bytes free Code:
/opt/sagetv/server/ffmpeg -fflags +genpts -v 3 -y -threads 2 -sn -vsync 1 -async 100 -stdinctrl -i /var/media/tv/ForeverYoungSearchingfortheFountainofYouth-45451932-0.mpg -threads 7 -f matroska -c copy -aspect 16:9 -deinterlace -map 0:1 -map 0:0 /var/media/tv/ForeverYoungSearchingfortheFountainofYouth-45451932-0.mkv Code:
mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.run echo '/opt/sagetv/server/ffmpeg.run -fflags +genpts "$@"' > /opt/sagetv/server/ffmpeg chmod 777 /opt/sagetv/server/ffmpeg Last edited by hvymetal; 12-15-2021 at 01:57 AM. |
#129
|
|||
|
|||
I found an issue with the plugin(At least for Linux). When you install a new version of SageTV it overwrites the ffmpeg that is installed via the plugin.
In the mean time I use the following workaround I posted above by using a man in middle script. If the plugin gets updated you need to remember to repeat step 1. Code:
1. Install the plugin 2. ###rename ffmpeg to ffmpeg.run mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.run 3. ###When using docker and the following lines to sagetv-user-script.sh ######Workaround for FFPEG options -fflags +genpts echo '/opt/sagetv/server/ffmpeg.run -fflags +genpts "$@"' > /opt/sagetv/server/ffmpeg chmod 777 /opt/sagetv/server/ffmpeg |
#130
|
|||
|
|||
A question regarding this plugin - on Linux if that matters.
My understanding is that this program will transcode content in realtime. For example it will transcode a H.265 file that you play on a HD300 extender as an HD300 does not support H.265 files. Is that correct? Does it also transcode files to resolutions that are supported - such as transcoding a 2160p file to 1080p when you try to play it on an extender? Will it also transcode files being played on Placeshifter - such as fix the problem where 1080i files have never played properly on SageTV Placeshifter? Is there any way to specify which file types get transcoded? And what the destination resolution is - like if you want the destination playback to be 720p or 1080p or whatever?
__________________
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 |
#131
|
||||
|
||||
Quote:
|
#132
|
|||
|
|||
Hey, I identified an issue where Videos I was importing had their name incorrectly captured as "Surround 5.1" while having this Plugin installed on my Unraid Docker. You can look at post 15 in this thread for what I did to troubleshoot and narrow this down.
https://forums.sagetv.com/forums/showthread.php?t=66960 I have uninstalled this pluging for now but wanted you to be aware of the issue so when you do future releases you can maybe look at this.... Let me know if you need anything else from me! John |
#133
|
|||
|
|||
Quote:
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT SageTV Extender:3x HD200 1x HD300 1xFireTV Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon All in lovely Drexel Hill, PA Last edited by egeller; 03-14-2022 at 10:49 AM. Reason: . |
#134
|
||||
|
||||
Profile for HEVC?
I am struggling to successfully view imported videos in .mp4 files like this:
File Format: QUICKTIME[HEVC 1920x1036@24fps, AAC/224Kbps@48kHz 5.1 eng] I get a blank screen and no audio, but no error messages either. The HD300 progress bar marches along, and I can skip forward and backward just as though everything was playing normally. Can anyone suggest a profile string for the transcoder? Thanks!
__________________
Win10@16GB RAM, 30TB Disk across 6 disks. 2 Prime tuner units Sage v9 (64bit) using OpenDCT to control the Primes 2 HD-300s, an Android mini-client, and a Windows client |
#135
|
||||
|
||||
Quote:
__________________
Win10@16GB RAM, 30TB Disk across 6 disks. 2 Prime tuner units Sage v9 (64bit) using OpenDCT to control the Primes 2 HD-300s, an Android mini-client, and a Windows client |
#136
|
|||
|
|||
The HD300's I believe do not support H265. So you would have to re-encode them.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#137
|
||||
|
||||
I thought that the transcoder plugin would transcode the stream into something that it could handle. Am I wrong?
__________________
Win10@16GB RAM, 30TB Disk across 6 disks. 2 Prime tuner units Sage v9 (64bit) using OpenDCT to control the Primes 2 HD-300s, an Android mini-client, and a Windows client |
#138
|
|||
|
|||
It will not unless you convert it. The Android miniclient has settings to transcode on the fly the HD300 does not.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#139
|
||||
|
||||
Quote:
That is what I'm seeking. Does anyone have one that works?
__________________
Win10@16GB RAM, 30TB Disk across 6 disks. 2 Prime tuner units Sage v9 (64bit) using OpenDCT to control the Primes 2 HD-300s, an Android mini-client, and a Windows client |
#140
|
|||
|
|||
Quote:
If you did add them, then I am out of ideas. I wonder if there is a dependency to the new format detector plugin. I think they both use the same new version of ffmpeg. I am on Linux so I need to wait for the Linux version of the transcoder plugin before I install the transcoder or format detector plug. I tried installing the latter only, and saw results that forced me to uninstall it.
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT SageTV Extender:3x HD200 1x HD300 1xFireTV Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon All in lovely Drexel Hill, PA |
Currently Active Users Viewing This Thread: 3 (0 members and 3 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTVTranscoder.exe from 6.5.14 | Stuntman | SageTV Beta Test Software | 2 | 05-13-2009 08:17 AM |
What does SageTVtranscoder.exe do? | autoboy | SageTV Software | 5 | 04-23-2008 01:55 PM |
sagetvtranscoder.exe always at 50% | showson1 | SageTV Software | 3 | 03-30-2008 01:46 AM |
SageTVTranscoder.exe | jgsouthard | SageTV Beta Test Software | 40 | 11-03-2007 01:13 PM |
SageTvTranscoder.exe ?? | mike_15 | SageTV Software | 4 | 10-21-2007 09:42 PM |