2024-01-17, 08:53 PM
I'm running latest Jellyfin (10.8.13) inside Proxmox and an Ubuntu LXC.
In general things works fine, but for some videos I receive a playback error on my Google TV when transcoding streams in Jellyfin.
The transcoder log states:
Consider increasing the value for the 'analyzeduration' (500000000) and 'probesize' (5000000) options [matroska,webm @ 0x55ddde7d4b40] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
I added below to /etc/default/jellyfin to see if it would solve the issue:
JELLYFIN_FFmpeg__probesize=10000000
JELLYFIN_FFmpeg__analyzeduration=1000000000
Analyze duration value is passed and set in Jellyfin according to the log, however, the probesize variable doesn't change. Jellyfin still uses the default value of 5000000 and it doesn't seem to pass the new value to ffmpeg:
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 500000000 -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/mnt/movies/Movies/***.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -low_power 1 -preset 7 -look_ahead 0 -b:v 14353219 -maxrate 14353219 -bufsize 28706438 -profile:v:0 high -level 41 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -codec:a:0 libfdk_aac -ac 8 -ab 640000 -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_segment_filename "/var/lib/jellyfin/transcodes/0d5fcc00c18bf35cc45de3d48afc4c1c%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/lib/jellyfin/transcodes/0d5fcc00c18bf35cc45de3d48afc4c1c.m3u8""
According to https://github.com/jellyfin/jellyfin/pull/10255 it seems to have been an issue in the past where Jellyfin doesn't pass the parameter to ffmpeg, but should've been solved.
Is this still a bug or is the variable set elsewhere which overrides my change? Maybe I'm adding the variable incorrectly?
Any help would be greatly appreciated.
In general things works fine, but for some videos I receive a playback error on my Google TV when transcoding streams in Jellyfin.
The transcoder log states:
Consider increasing the value for the 'analyzeduration' (500000000) and 'probesize' (5000000) options [matroska,webm @ 0x55ddde7d4b40] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
I added below to /etc/default/jellyfin to see if it would solve the issue:
JELLYFIN_FFmpeg__probesize=10000000
JELLYFIN_FFmpeg__analyzeduration=1000000000
Analyze duration value is passed and set in Jellyfin according to the log, however, the probesize variable doesn't change. Jellyfin still uses the default value of 5000000 and it doesn't seem to pass the new value to ffmpeg:
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 500000000 -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/mnt/movies/Movies/***.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_qsv -low_power 1 -preset 7 -look_ahead 0 -b:v 14353219 -maxrate 14353219 -bufsize 28706438 -profile:v:0 high -level 41 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -codec:a:0 libfdk_aac -ac 8 -ab 640000 -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_segment_filename "/var/lib/jellyfin/transcodes/0d5fcc00c18bf35cc45de3d48afc4c1c%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/lib/jellyfin/transcodes/0d5fcc00c18bf35cc45de3d48afc4c1c.m3u8""
According to https://github.com/jellyfin/jellyfin/pull/10255 it seems to have been an issue in the past where Jellyfin doesn't pass the parameter to ffmpeg, but should've been solved.
Is this still a bug or is the variable set elsewhere which overrides my change? Maybe I'm adding the variable incorrectly?
Any help would be greatly appreciated.