Player error/Change ffmpeg probesize - 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: Player error/Change ffmpeg probesize (/t-player-error-change-ffmpeg-probesize) |
Player error/Change ffmpeg probesize - negaduck - 2024-01-17 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. RE: Player error/Change ffmpeg probesize - TheDreadPirate - 2024-01-17 Quote: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 This message is 100% unrelated to your playback errors and is harmless on its own. In the ffmpeg log the actual problem should be at the bottom of the log. Can you share your full ffmpeg log with us via https://sourceb.in/ ? RE: Player error/Change ffmpeg probesize - tmsrxzar - 2024-01-17 "Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size" this is a warning message not an error message, f.e. it does not show up if you use -loglevel error the playback issues have to do with android not properly supporting pgs subtitles, recommend using SRT as an alternative RE: Player error/Change ffmpeg probesize - negaduck - 2024-01-17 Amazingly fast responses. Trying the SRT route out! RE: Player error/Change ffmpeg probesize - negaduck - 2024-01-17 That brought me down another route of pgs subtitles inside .mkv containers. You have any good idea on how to tackle it? Seems like they are always pulled, even if not used or chosen for playback. Hence would need to extract/remove them, which seems to be achievable with tdarr and some re-encoding. Would that be a preferred approach or are there other ways around the problem? RE: Player error/Change ffmpeg probesize - TheDreadPirate - 2024-01-17 You can use the Subtitle Extract plugin to pre-extract all your subtitles. So that it is no longer extracting on the fly. RE: Player error/Change ffmpeg probesize - tmsrxzar - 2024-01-17 typically just a remux not a re-encode, ffmpeg -i (input).mkv -map 0:v -map 0:a -c copy (output).mkv but you need to decide what you want to keep, in some cases mkvtoolnix may be better at keeping the metadata as ffmpeg likes to strip DV meta a lot slower but you can also remux with makemkv (slower in terms of it's not scriptable) as an afterthought you could actually try kodi with the jellyfin for kodi addon; it supports pgs subs carries downsides with it depending on platform, not all are equally good |