• 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 SOLVED: FFmpeg exits with code 187 when playing select files

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: FFmpeg exits with code 187 when playing select files

    FFmpeg exited with code 187
    BajaSlap
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #1
    2024-11-11, 03:39 AM (This post was last modified: 2024-11-11, 06:10 PM by BajaSlap. Edited 4 times in total. Edit Reason: Updated signature to include hardware details )
    Hello all, brand new to this world and relatively new to linux.

    I have Jellyfin running on Ubuntu server with a gen 4 i5 and an intel arc a310.
    If I have hardware transcoding enabled, some files' playback will immediately fail due to a "fatal playback error"

    In my docker logs I see that FFmpeg exits with code 187 along with a stack trace that I can't really make sense of.

    The other strange thing I noticed is that it doesn't seem to happen to all users. I had one friend test one of the files out from his house over openVPN and it was able to play.

    I've attached the docker logs related to this error


    Attached Files
    .txt   Docker_logs.txt (Size: 23.88 KB / Downloads: 88)
    Jellyfin 10.10.1 (Docker)
    Ubuntu 24.04.1 LTS 
    Intel i5-4590
    Intel Arc A310
    OS drive - WDC WD5000AAKX-7
    Storage
        Crucial BX500 2TB
    crobibero
    Offline

    Core Team (Server & Plugins)

    Posts: 252
    Threads: 0
    Joined: 2023 Jun
    Reputation: 18
    Country:United States
    #2
    2024-11-11, 06:30 AM
    Please attach the ffmpeg log and your hardware acceleration configuration
    BajaSlap
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #3
    2024-11-11, 07:09 AM
    Thanks for the reply.

    Attached is the logs from ffmpeg when the file fails to load and my current encoding configuration file.

    Let me know if you need anything else


    Attached Files
    .txt   ffmpeg log.txt (Size: 30.39 KB / Downloads: 152)
    .txt   config.txt (Size: 2.85 KB / Downloads: 123)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-11-11, 12:40 PM
    Did you pass the GPU into the container? Can you share your docker compose?
    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]
    BajaSlap
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #5
    2024-11-11, 04:12 PM (This post was last modified: 2024-11-11, 04:19 PM by BajaSlap. Edited 1 time in total.)
    I certainly tried to - here is my docker-compose

    Edit: updated my signature to include my hardware details in my initial post


    Attached Files
    .txt   docker-compose.txt (Size: 666 bytes / Downloads: 368)
    theguymadmax
    Online

    Community Moderator

    Posts: 1,140
    Threads: 0
    Joined: 2024 Jun
    Reputation: 60
    #6
    2024-11-11, 04:47 PM
    Code:
    <AllowAv1Encoding>false</AllowAv1Encoding>
    You're using your cpu to encode AV1, that's why it's failing. Go to Dashboard-> Playback->Transcoding and select "Allow encoding in HEVC format".
    BajaSlap
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #7
    2024-11-11, 04:57 PM
    I enabled both hardware encoding and checked the boxes for allowing both HEVC and AV1 because you mentioned both in your post. I have the same result unfortunately.

    I have attached the ffmpeg logs from the attempt with those configuration changes as well as the new config file.


    Attached Files
    .txt   ffmpeg log.txt (Size: 30.42 KB / Downloads: 116)
    .txt   config.txt (Size: 2.85 KB / Downloads: 142)
    Jellyfin 10.10.1 (Docker)
    Ubuntu 24.04.1 LTS 
    Intel i5-4590
    Intel Arc A310
    OS drive - WDC WD5000AAKX-7
    Storage
        Crucial BX500 2TB
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-11-11, 05:35 PM
    Since you are not running the container as root, you need to pass in the render group.

    Code:
    getent group render | cut -d: -f3

    Code:
    group_add:
          - "122" # Change this to match your "render" host group id and remove this comment
    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]
    BajaSlap
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #9
    2024-11-11, 06:09 PM (This post was last modified: 2024-11-11, 06:10 PM by BajaSlap. Edited 1 time in total.)
    That did it, thank you!

    I marked this issue as solved.
    Jellyfin 10.10.1 (Docker)
    Ubuntu 24.04.1 LTS 
    Intel i5-4590
    Intel Arc A310
    OS drive - WDC WD5000AAKX-7
    Storage
        Crucial BX500 2TB
    Ch3ck3rM0n
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: 2025 Jan
    Reputation: 0
    Country:Germany
    #10
    2025-01-20, 08:56 PM
    Hi all,

    I have a similar issue like the thread owner and I tried different solutions but nothing worked for me. It is still crashing when I try to play my movie. The permissions should be fine and "Allow encoding in HEVC format" (also AV1) is activated.

    Code:
    root@jellyfin:~# cat /etc/group | grep render
    render:x:993:root,jellyfin
    root@jellyfin:~# getent group render | cut -d: -f3
    993

    I am running Jellyfin in a Proxmox container and gpu accelerator should be forwarded. I set inside config the "QSV Device" to use "/dev/dri/renderD133" to be sure it is using a free device, because the first and second are already bind to other containers/vms. I activated both tone mappings and the supported codecs for my i7-12650h.

    Code:
    root@jellyfin:~# lspci -nn | grep -Ei "3d|display|vga"
    00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c)
    00:02.1 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c)
    00:02.2 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c)
    00:02.3 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c)
    00:02.4 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c)
    00:02.5 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c)
    00:02.6 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c)
    00:02.7 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT1 [UHD Graphics] [8086:46a3] (rev 0c)
    root@jellyfin:~# ll /dev/dri/
    total 0
    drwxr-xr-x  3 root root        300 Jan 20 16:08 ./
    drwxr-xr-x 10 root root        660 Jan 20 21:00 ../
    drwxr-xr-x  2 root root        280 Jan 20 16:08 by-path/
    crw-rw----  1 root video  226,  1 Jan 20 16:08 card1
    crw-rw----  1 root video  226,  3 Jan 20 16:08 card3
    crw-rw----  1 root video  226,  4 Jan 20 16:08 card4
    crw-rw----  1 root video  226,  5 Jan 20 16:08 card5
    crw-rw----  1 root video  226,  6 Jan 20 16:08 card6
    crw-rw----  1 root video  226,  7 Jan 20 16:08 card7
    crw-rw----  1 root _ssh  226, 128 Jan 20 16:08 renderD128
    crw-rw----  1 root _ssh  226, 131 Jan 20 16:08 renderD131
    crw-rw----  1 root _ssh  226, 132 Jan 20 16:08 renderD132
    crw-rw----  1 root _ssh  226, 133 Jan 20 16:08 renderD133
    crw-rw----  1 root _ssh  226, 134 Jan 20 16:08 renderD134
    crw-rw----  1 root _ssh  226, 135 Jan 20 16:08 renderD135


    Attached Files
    .txt   jellyfin20250120.txt (Size: 7.81 KB / Downloads: 33)
    .txt   FFmpeg.Transcode-2025-01-20.txt (Size: 18.22 KB / Downloads: 57)
    Pages (2): 1 2 Next »

    « 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