• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Player error/Change ffmpeg probesize

     
    • 0 Vote(s) - 0 Average

    Player error/Change ffmpeg probesize

    negaduck
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Sweden
    #1
    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.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-01-17, 09:00 PM (This post was last modified: 2024-01-17, 09:00 PM by TheDreadPirate.)
    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/ ?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #3
    2024-01-17, 09:00 PM
    "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
    negaduck
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Sweden
    #4
    2024-01-17, 09:10 PM
    Amazingly fast responses. Trying the SRT route out!
    negaduck
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    Country:Sweden
    #5
    2024-01-17, 09:24 PM
    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?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-01-17, 10:24 PM
    You can use the Subtitle Extract plugin to pre-extract all your subtitles. So that it is no longer extracting on the fly.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    tmsrxzar
    Offline

    Senior Member

    Posts: 755
    Threads: 6
    Joined: 2023 Nov
    Reputation: 20
    #7
    2024-01-17, 10:35 PM (This post was last modified: 2024-01-17, 10:45 PM by tmsrxzar. Edited 1 time in total.)
    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
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode