Jellyfin Forum
Live TV DVR Post-processor command line arguments - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Live TV DVR Post-processor command line arguments (/t-live-tv-dvr-post-processor-command-line-arguments)



Live TV DVR Post-processor command line arguments - wardo - 2024-10-24

I've been using the Live TV and DVR functions for a little while now and have got post-processing working for comskip. I'm quite happy with comskip! I tried transcoding, but the resulting files seem to be larger than the TS. There doesn't seem to be much point to convert to mkv and I don't have trouble with the .ts

There are other things that could be done in the post-processing script, but they depend on setting variables to pass to the script in the Admin Dashboard

http://jellyfin:8096/web/#/dashboard/recordings

What variables are available to pass besides from the default "{path}"?

I am looking to be able to pass the channel id or name to the script. This would be used to decide whether to run comskip or not. In Australia we have some stations that are commercial free.

I've tried {channel}, {channelid}, {externalchannelid}, etc but they're empty. Can anyone point me to a list of variables that are able to pass?


RE: Live TV DVR Post-processor command line arguments - TheDreadPirate - 2024-10-24

AFAIK, the only variable you can pass is the path. Your post processing script could use the path to find and read the NFO for the recording and extract channel information that way.

Regarding your re-encoded versions being larger, do you know what codec the live TV is coming in with? And what you are encoding to and what settings you are using?

For my recordings, I just remux from TS to MP4 since my live TV channels come in as H264/AAC already.


RE: Live TV DVR Post-processor command line arguments - wardo - 2024-10-24

The channel info isn't in the NFO.

I can see in the logs when the recording starts from the HD Homerun Tuner that it says External Channel is hdhr_XX where XX is the LCN. It would be easy to match the commercial free stations as they are hdhr_2 and hdhr_2?. However, the point is probably moot because comskip does such a good job of realising when there are NO commercials.

The live channels come in a mix of h264 and mpeg2video (576p). There probably wouldn't be much use recording them due to aged content and poor video quality. I do like your suggestion of remuxing TS to MP4. I'm going to give that a go.

Although my intitial need to pass additional arguments to the script has passed, I'm still curious if there are other vars.

Thanks


RE: Live TV DVR Post-processor command line arguments - TheDreadPirate - 2024-10-24

Looking at the recording manager code, {path} is the only server provided variable you can use. Any other variables you pass in you have to provide by other means.

https://github.com/jellyfin/jellyfin/blob/release-10.9.z/src/Jellyfin.LiveTv/Recordings/RecordingsManager.cs#L802