Problem with live TV and Transcoding - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: Problem with live TV and Transcoding (/t-problem-with-live-tv-and-transcoding) |
Problem with live TV and Transcoding - Kuno - 2024-08-21 Dear all, I have a problem with transcoding and especially with transcoding and Live-TV. 1) Generally: I think jellyfin transcodes much more than it should. I also use emby and just tried to switch to jellyfin and can compare. With the same media emby use direct play and jellyfin uses transcoding - I don't know why. I guess emby tries direct-play and jellyfin tries to transcode with the bitrate from the settings (300MBit/s which means no transcoding necessary - but it tries to transcode) 2) With Live-TV (m3u Playlist) I have some channels which can't be played because of transcoding issues (same m3u used in emby - there it plays without problems). I can find the wollowing entries in the log-file: Code: [2024-08-21 14:31:24.065 +02:00] [ERR] Got invalid level when building CODECS field for HLS master playlist When disallowing transcoding in the user-rights the same live-TV channel works without problems - but I want to use transcoding in some circumstances so I can't globally disallow it. 3) short finding - the live-tv channel-list is sorted alphabetically in jellyfin - it would be much nicer when the channellist is in the same sorting-direction as in the m3u file (emby uses the order mentioned in the m3u-file which is the same as in the tv-receiver) Thanks a lot for your help. RE: Problem with live TV and Transcoding - TheDreadPirate - 2024-08-21 Live TV can transcode for several reasons. Sometimes just to remux. But I believe there is also a global limit of 20Mbps for live TV (separate from any user settings) due to some issue with Jellyfin's live TV playback. I'm not familiar with the root issue, but one of the devs was talking about it and transcoding all live TV streams greater than 20Mbps from the source was some workaround while they investigated the issue. I'd need to see the ffmpeg logs from these failures to figure out what is going on. RE: Problem with live TV and Transcoding - Kuno - 2024-08-21 The mentioned stream is a low quality SD stream (Germany RTL Television [no HD]) - some other streams won't be transcoded, some streams will be transcoded and will work and some streams always fails. RTL Television will always fail. Code: {"Protocol":1,"Id":"36a9060aea8dd6551006759273888d9c","Path":"http://10.28.30.56:8001/1:0:1:2EE3:441:1:C00000:0:0:0:","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"ts","S> And like mentioned above - jellyfin seems to transcode much more media (not only live-tv but also all other media like mkv or mp4 files) than emby. RE: Problem with live TV and Transcoding - TheDreadPirate - 2024-08-21 It looks like some of the output was truncated because the line was too long. I can't see the full ffmpeg command. In this case, the video is MPEG2. Many modern devices do not support decoding MPEG2 and this may be the reason for the transcode for this stream. Some of your other streams that aren't transcoding may be H264. Most of my IPTV comes in as H264. As for why this transcode is failing, hard to say. I'd need to see the full ffmpeg command to see what it was doing. RE: Problem with live TV and Transcoding - Kuno - 2024-08-21 attached the complete command :-) When forbidding transcode in user-rights I can playback this tv-channel so no transcoding needed for the specific client. Code: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36" -fflags +igndts -f mpegts -noautorotate -i "http://10.28.30.56:8001/1:0:1:2EE3:441:1:C00000:0:0:0:" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 libx264 -preset superfast -crf 23 -maxrate 4899949 -bufsize 9799898 -level 0 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,n_forced*3)" -sc_threshold:v:0 0 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,1920)/2)*2:trunc(ow/a/2)*2,format=yuv420p" -flags -global_header -codec:a:0 libfdk_aac -ac 2 -ab 256000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_base_url "hls/0c296a02e8c8054b5dfde950ad283011/" -hls_segment_filename "/var/cache/jellyfin/transcodes/0c296a02e8c8054b5dfde950ad283011%d.ts" -hls_playlist_type event -hls_list_size 0 -y "/var/cache/jellyfin/transcodes/0c296a02e8c8054b5dfde950ad283011.m3u8" RE: Problem with live TV and Transcoding - Kuno - 2024-09-07 Dear All, any suggestions here? RE: Problem with live TV and Transcoding - Kuno - 2024-09-16 How can I solve the problem? |