Orphaned streams left transcoding #114

Closed
opened 2024-06-24 00:01:42 +00:00 by markcs · 1 comment
markcs commented 2024-06-24 00:01:42 +00:00 (Migrated from github.com)

Sometimes after watching a stream using this plugin, I see that ffmpeg is still running after I've exited from Jellyfin and no client is watching the stream.

I'm not sure if this is an issue with Jellyfin or this plugin and I haven't worked out if it always happens or just sometimes.

All the streams below have been running since yesterday .... when I connected to http://192.168.1.110:8096/LiveTv/LiveStreamFiles/5ce9e9c9-a0ab-47d1-8dbf-09ab9c28932b/stream.ts in VLC, I could confirm it was a stream from xtream.

root     20609 14813  0 Jun23 ?        00:00:09 /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -noautorotate -i http://192.168.1.110:8096/LiveTv/LiveStreamFiles/5ce9e9c9-a0ab-47d1-8dbf-09ab9c28932b/stream.ts -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 libx264 -preset superfast -crf 23 -maxrate 13876751 -bufsize 27753502 -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,yadif=0:-1:0,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 6 -ab 384000 -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/543da0d6c6b44a4923f61552bca74e0d/ -hls_segment_filename /cache/transcodes/543da0d6c6b44a4923f61552bca74e0d%d.ts -hls_playlist_type event -hls_list_size 0 -y /cache/transcodes/543da0d6c6b44a4923f61552bca74e0d.m3u8
root     21732 14813  0 Jun23 ?        00:00:09 /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -noautorotate -i http://192.168.1.110:8096/LiveTv/LiveStreamFiles/5ce9e9c9-a0ab-47d1-8dbf-09ab9c28932b/stream.ts -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 libx264 -preset superfast -crf 23 -maxrate 12244313 -bufsize 24488626 -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,yadif=0:-1:0,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 6 -ab 384000 -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/2c35511d5a6919d09b605527315b32f6/ -hls_segment_filename /cache/transcodes/2c35511d5a6919d09b605527315b32f6%d.ts -hls_playlist_type event -hls_list_size 0 -y /cache/transcodes/2c35511d5a6919d09b605527315b32f6.m3u8
root     21788 14813  0 Jun23 ?        00:00:09 /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -noautorotate -i http://192.168.1.110:8096/LiveTv/LiveStreamFiles/5ce9e9c9-a0ab-47d1-8dbf-09ab9c28932b/stream.ts -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 libx264 -preset superfast -crf 23 -maxrate 12244313 -bufsize 24488626 -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,yadif=0:-1:0,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 6 -ab 384000 -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/1b39384d7c0c5078ac06df6699c240bd/ -hls_segment_filename /cache/transcodes/1b39384d7c0c5078ac06df6699c240bd%d.ts -hls_playlist_type event -hls_list_size 0 -y /cache/transcodes/1b39384d7c0c5078ac06df6699c240bd.m3u8
Sometimes after watching a stream using this plugin, I see that ffmpeg is still running after I've exited from Jellyfin and no client is watching the stream. I'm not sure if this is an issue with Jellyfin or this plugin and I haven't worked out if it always happens or just sometimes. All the streams below have been running since yesterday .... when I connected to http://192.168.1.110:8096/LiveTv/LiveStreamFiles/5ce9e9c9-a0ab-47d1-8dbf-09ab9c28932b/stream.ts in VLC, I could confirm it was a stream from xtream. ``` root 20609 14813 0 Jun23 ? 00:00:09 /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -noautorotate -i http://192.168.1.110:8096/LiveTv/LiveStreamFiles/5ce9e9c9-a0ab-47d1-8dbf-09ab9c28932b/stream.ts -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 libx264 -preset superfast -crf 23 -maxrate 13876751 -bufsize 27753502 -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,yadif=0:-1:0,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 6 -ab 384000 -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/543da0d6c6b44a4923f61552bca74e0d/ -hls_segment_filename /cache/transcodes/543da0d6c6b44a4923f61552bca74e0d%d.ts -hls_playlist_type event -hls_list_size 0 -y /cache/transcodes/543da0d6c6b44a4923f61552bca74e0d.m3u8 root 21732 14813 0 Jun23 ? 00:00:09 /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -noautorotate -i http://192.168.1.110:8096/LiveTv/LiveStreamFiles/5ce9e9c9-a0ab-47d1-8dbf-09ab9c28932b/stream.ts -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 libx264 -preset superfast -crf 23 -maxrate 12244313 -bufsize 24488626 -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,yadif=0:-1:0,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 6 -ab 384000 -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/2c35511d5a6919d09b605527315b32f6/ -hls_segment_filename /cache/transcodes/2c35511d5a6919d09b605527315b32f6%d.ts -hls_playlist_type event -hls_list_size 0 -y /cache/transcodes/2c35511d5a6919d09b605527315b32f6.m3u8 root 21788 14813 0 Jun23 ? 00:00:09 /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -probesize 1G -noautorotate -i http://192.168.1.110:8096/LiveTv/LiveStreamFiles/5ce9e9c9-a0ab-47d1-8dbf-09ab9c28932b/stream.ts -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 libx264 -preset superfast -crf 23 -maxrate 12244313 -bufsize 24488626 -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,yadif=0:-1:0,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 6 -ab 384000 -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/1b39384d7c0c5078ac06df6699c240bd/ -hls_segment_filename /cache/transcodes/1b39384d7c0c5078ac06df6699c240bd%d.ts -hls_playlist_type event -hls_list_size 0 -y /cache/transcodes/1b39384d7c0c5078ac06df6699c240bd.m3u8 ```
Kevinjil commented 2024-06-24 05:46:51 +00:00 (Migrated from github.com)

This is a Jellyfin issue. All transcoding is handled by Jellyfin.

This is a Jellyfin issue. All transcoding is handled by Jellyfin.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Sirherobrine23/Jellyfin_Xtream#114
No description provided.