• 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 A/V sync issue that only happens in jellyfin

     
    • 0 Vote(s) - 0 Average

    A/V sync issue that only happens in jellyfin

    A/V sync issue that only happens in jellyfin
    MentalUproar
    Offline

    Junior Member

    Posts: 12
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #1
    2025-03-14, 12:35 AM
    I have videos that play perfectly fin when I access them from IINA over SMB, but in Jellyfin the audio and video go further and further out of sync the longer the video plays.  I have tried in both Edge and Safari and the problem is still there.  It's not transcoding the video though it is remuxing it.  Where should I look for the problem?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-03-14, 12:30 PM
    Does this happen for every video? Or just specific videos?
    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]
    MentalUproar
    Offline

    Junior Member

    Posts: 12
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #3
    2025-03-14, 07:47 PM
    Interesting, it doesn't seem to affect all files! I wonder what's different between them since they all read fine directly over smb.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-03-14, 08:10 PM (This post was last modified: 2025-03-14, 08:10 PM by TheDreadPirate.)
    The issue is likely with the file itself. We can try remuxing the file with ffmpeg. What OS are you running so I can give you a more specific command. If you are on Linux, how is Jellyfin installed?
    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]
    MentalUproar
    Offline

    Junior Member

    Posts: 12
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #5
    2025-03-14, 08:26 PM
    I'm on Linux running jellyfin in a podman container. I'm using an intel N100 with hardware acceleration and the low power GuC/HuC stuff enabled.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-03-14, 08:59 PM
    Code:
    docker exec -it jellyfin bash
    /usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts+igndts -i "/path/to/problem/video.mkv" -map 0 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled newFile.mkv

    This will open a bash shell into the Jellyfin container. Then we are using ffmpeg from within the container to remux. The path for the video will be from the container's reference frame.
    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]
    MentalUproar
    Offline

    Junior Member

    Posts: 12
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #7
    2025-03-15, 11:30 PM (This post was last modified: 2025-03-15, 11:30 PM by MentalUproar.)
    Code:
    podman exec -it Jellyfin bash
    cd /media/TESTING
    /usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts+igndts -i "./TEMPY.mkv" -map 0 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled newFile.mkv

    I ran the above.  The remuxed file does not have AV sync issues.  It seems to only happen inside the browser on the jellyfin interface
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2025-03-16, 03:57 PM
    Browsers have limited codec and container support. Additionally, most browsers don't support selecting audio/subtitles tracks other than the first track. So if you select a secondary audio/subtitle track it will trigger a remux. If the original video had some presentation time stamp issues, desync is possible.

    The remux command we ran will copy the original video/audio/subs to a new container with proper presentation time stamps (genpts), which can help with desync issues.
    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]
    MentalUproar
    Offline

    Junior Member

    Posts: 12
    Threads: 6
    Joined: 2024 Aug
    Reputation: 0
    #9
    2025-03-18, 02:49 AM
    There are no subtitles or secondary audio tracks in the source file.
    « 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