• 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 Transcoding fails with FFmpeg exit code 187

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Transcoding fails with FFmpeg exit code 187

    Transcoding fails with FFmpeg exit code 187
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #11
    2024-09-18, 04:01 PM (This post was last modified: 2024-09-18, 04:02 PM by TheDreadPirate. Edited 1 time in total.)
    How did you install Jellyfin? And how are you starting it?

    I didn't noticed this the first time, but your transcode cache is being written to your home directory which tells me this is either a portable install or you're starting jellyfin by typing, literally, "jellyfin". The fact that you had vanilla ffmpeg before has me leaning towards a portable install.

    Code:
    /home/stefa9/.cache/jellyfin/transcodes/

    Regardless if you're using a portable install or not, whatever user you are using to run jellyfin needs to be part of the render group. Which is, I think, the current roadblock.
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    stef4n24
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    #12
    2024-09-18, 04:10 PM
    I did it using the bash script:
    curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #13
    2024-09-18, 04:15 PM
    And how are you starting jellyfin? Jellyfin does not use your home directory by default.
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    stef4n24
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    #14
    2024-09-18, 04:42 PM
    Made a service for it:

    [Unit]
    Description=jellyfin service

    [Service]
    User=stefa9
    ExecStart=/usr/lib/jellyfin/bin/jellyfin --ffmpeg /usr/lib/jellyfin-ffmpeg/ffmpeg

    [Install]
    WantedBy=default.target
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #15
    2024-09-18, 04:45 PM (This post was last modified: 2024-09-18, 04:46 PM by TheDreadPirate. Edited 1 time in total.)
    When you install Jellyfin via apt, which is what the script you used does, it also creates the service. And it includes a boot load of other options that yours isn't using. Remove the service file you created and use the one that is already present.

    /etc/systemd/system/multi-user.target.wants/jellyfin.service

    Code:
    [Unit]
    Description = Jellyfin Media Server
    After = network-online.target

    [Service]
    Type = simple
    EnvironmentFile = /etc/default/jellyfin
    User = jellyfin
    Group = jellyfin
    WorkingDirectory = /var/lib/jellyfin
    ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    stef4n24
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    #16
    2024-09-18, 05:16 PM
    I've tried running it using this service, I didn't know how to run it from /multi-user.target.wants though
    I get the following error when checking the status of the service:
    × jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/etc/systemd/system/jellyfin.service; enabled; preset: enabled)
    Active: failed (Result: core-dump) since Wed 2024-09-18 20:15:02 EEST; 1s ago
    Duration: 279ms
    Process: 17230 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS> Main PID: 17230 (code=dumped, signal=ABRT)
    CPU: 148ms

    Sep 18 20:15:02 legiunea systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
    Sep 18 20:15:02 legiunea systemd[1]: jellyfin.service: Start request repeated too quickly.
    Sep 18 20:15:02 legiunea systemd[1]: jellyfin.service: Failed with result 'core-dump'.
    Sep 18 20:15:02 legiunea systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
    stef4n24
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    #17
    2024-09-18, 05:25 PM (This post was last modified: 2024-09-18, 05:28 PM by stef4n24.)
    I found out why:
    Unhandled exception. System.UnauthorizedAccessException: Access to the path '/var/log/jellyfin' is denied.

    New error now:


    Attached Files
    .txt   Log.txt (Size: 14.8 KB / Downloads: 39)
    stef4n24
    Offline

    Junior Member

    Posts: 10
    Threads: 1
    Joined: 2024 Sep
    Reputation: 0
    #18
    2024-09-18, 05:30 PM
    Alright, fixed this one too, I still had Low power Intel HEVC encoding. Switched it off and now it works. Thanks for all the help Smiling-face
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 11,852
    Threads: 10
    Joined: 2023 Jun
    Reputation: 347
    Country:United States
    #19
    2024-09-18, 05:30 PM (This post was last modified: 2024-09-18, 05:31 PM by TheDreadPirate.)
    After using the install script you ran, it should have started and enabled the jellyfin service.  Enabled = auto-starts on boot.

    sudo systemctl <start/stop/restart/status> jellyfin

    (2024-09-18, 05:25 PM)stef4n24 Wrote: I found out why:
    Unhandled exception. System.UnauthorizedAccessException: Access to the path '/var/log/jellyfin' is denied.

    New error now:

    Code:
    sudo chown -R jellyfin: /etc/jellyfin /var/lib/jellyfin /var/cache/jellyfin /var/log/jellyfin
    sudo systemctl restart jellyfin

    Looks like you still have it on VAAPI. Switch it back to QSV. It is more performant.
    Jellyfin 10.10.3 (Docker)
    Ubuntu 24.04 LTS 
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library)
    [Image: GitHub%20Sponsors-grey?logo=github]
    1
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread:


    • 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