• 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: Failed to transcode to HEVC on mac mini

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    SOLVED: Failed to transcode to HEVC on mac mini

    transcode gives conversion failed error
    hczxpaul
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    Country:China
    #1
    2024-02-21, 02:49 PM (This post was last modified: 2024-02-21, 02:50 PM by hczxpaul. Edited 1 time in total.)
    Hello forum, I have a mac mini with m2 chip, and I use the Jellyfin App(the .dmg) for mac V10.8.13. I turned on hardware transcoding and selected "Apple VideoToolBox" with all option's checked(HEVC、VP9、H264, etc). However it failed when transcoding HEVC to HEVC format(hevc to h.264 works fine). ffmepg log is as uploaded to the attachment. Please help and check what is happening, thanks in advance!

    the ending of the log is as follows:
    Stream mapping:
      Stream #0:0 -> #0:0 (hevc (native) -> hevc (hevc_videotoolbox))
      Stream #0:1 -> #0:1 (truehd (native) -> aac (native))
    Press [q] to stop, [?] for help
    [hevc_videotoolbox @ 0x7fa676717000] Error: cannot create compression session: -12908
    [hevc_videotoolbox @ 0x7fa676717000] Try -allow_sw 1. The hardware encoder may be busy, or not supported.
    Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    [aac @ 0x7fa6767163c0] Qavg: 65536.000
    [aac @ 0x7fa6767163c0] 2 frames left in the queue on closing
    Conversion failed!


    Attached Files
    .txt   FFmpeg.Transcode-2024-02-19_21-30-18_ae3e7df6cbb6098630f4a676fada1ebe_eb8265c6.txt (Size: 32.75 KB / Downloads: 72)
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-02-21, 04:30 PM
    Are you using Vargol's ffmpeg build?
    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]
    hczxpaul
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    Country:China
    #3
    2024-02-21, 05:19 PM
    (2024-02-21, 04:30 PM)TheDreadPirate Wrote: Are you using Vargol's ffmpeg build?

    I did not install ffmpeg seperately, I think Jellyfin comes with it's own ffmpeg which is what I am using. It also wouldn't let me change the path of ffmpeg(plz see the screenshot attached).


    Attached Files Thumbnail(s)
       
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-02-21, 05:22 PM
    Are you using Docker?

    You can still change the ffmpeg path in a config file.

    /config/config/encoder.xml is the container path.

    AFAIK, you need to use the Vargol FFMPEG build for Apple Silicon.
    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]
    hczxpaul
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    Country:China
    #5
    2024-02-22, 04:01 PM (This post was last modified: 2024-02-22, 04:42 PM by TheDreadPirate. Edited 5 times in total.)
    [attachment=2606]
    (2024-02-21, 05:22 PM)TheDreadPirate Wrote: Are you using Docker?

    You can still change the ffmpeg path in a config file.

    /config/config/encoder.xml is the container path.

    AFAIK, you need to use the Vargol FFMPEG build for Apple Silicon.

    I am using the .dmg installer. I tried the docker version before, it seems like docker version cannot transcode via hardware accl on apple silicon at all.

    I tried to build Vargol ffmpeg but failed every time, I ended up download a ffmpeg bianry for apple silicon here:https://www.osxexperts.net/.

    The next thing I did I go to jellyfin config folder, and find encoding.xml(no encoder.xml found) and change
    Code:
      <EncoderAppPathDisplay>ffmpeg</EncoderAppPathDisplay>
    to  
    Code:
    <EncoderAppPathDisplay>/usr/local/lib/ffmpeg</EncoderAppPathDisplay>
    However the encoding.xml seems to be reset by the jellyfin server every time it starts up, so I think path of ffmpeg cannot be changed by modifing the encoding.xml, please correct me if I did something wrong.  PEGVargol FFMPEGVargol FFMPEG
    nardisowhat
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    Country:United States
    #6
    2024-02-23, 01:24 PM
    I don’t want to hijack this thread but wanted to say that I tried jellyfin 10.8.13 on my M1 Mac mini a few weeks ago. I am trying to move away from Plex and getting a Plex pass for hardware transcoding. Plex macOS App is Apple Silicon native.

    Since jellyfin 10.8.13 isn’t Apple Silicon native yet, I have low expectations. 10.9 is supposed to be Apple Silicon native but there’s no info when 10.9 stable is due out. Software transcoding is ok on Jellyfin 10.8.13 for macOS using Rosetta. I do see a lot of high iGPU and CPU usage when transcoding HEVC movies for jellyfin clients that aren’t capable of playing it directly. Also when scanning libraries, it hangs.

    I am hoping when 10.9 comes out as Apple Silicon native this will be corrected.

    Out of curiosity, last week I picked up a miniPC n100 for $179 last week on Amazon and tried out jellyfin on it in just windows 11 pro and it’s amazing and efficient at hardware transcoding HEVC. I got the miniPC to use proxmox, pfsense, pi-hole but was curious how Jellyfin would operate. Ideally, I will use the miniPC for proxmox, pfsense and pi-hole solely and use Jellyfin on my M1 Mac mini when 10.9 comes out.
    hczxpaul
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2024 Feb
    Reputation: 0
    Country:China
    #7
    2024-02-24, 09:10 AM
    (2024-02-23, 01:24 PM)nardisowhat Wrote: I don’t want to hijack this thread but wanted to say that I tried jellyfin 10.8.13 on my M1 Mac mini a few weeks ago.  I am trying to move away from Plex and getting a Plex pass for hardware transcoding.  Plex macOS App is Apple Silicon native. 

    Since jellyfin 10.8.13 isn’t Apple Silicon native yet,  I have low expectations.  10.9 is supposed to be Apple Silicon native but there’s no info when 10.9 stable is due out.    Software transcoding is ok on Jellyfin 10.8.13 for macOS using Rosetta.  I do see a lot of high iGPU and CPU usage when transcoding HEVC movies for jellyfin clients that aren’t capable of playing it directly.    Also when scanning libraries, it hangs.

    I am hoping when 10.9 comes out as Apple Silicon native this will be corrected.

    Out of curiosity, last week I picked up a miniPC n100 for $179 last week on Amazon and tried out jellyfin on it in just windows 11 pro and it’s amazing and efficient at hardware transcoding HEVC.  I got the miniPC to use proxmox, pfsense, pi-hole but was curious how Jellyfin would operate.  Ideally, I will use the miniPC for proxmox, pfsense and pi-hole solely  and use Jellyfin on my M1 Mac mini when 10.9 comes out.

    I tend to belive that its not an issue with Rosseta since everything other than harware transcoding on HEVC, seems to work fine. I personally did not encounter problem with library scaning(about 3TB library size). 

    Not like yours, I didn't see iGPU usage for ffmpeg at all(almost 0% at all time), without hardware transcoding CPU usage is like full 800%, and with hardware transcoding on, CPU
    usage is around 200%.

    So I think the problem now is that I cannot modify the path of ffmpeg via editing the "encoding.xml" in config file, so I cannot confirm if it is the problem the ffmpeg build. Is there a way to change the ffmpeg path in Jellyfin 10.8.13?
    nyanmisaka
    Offline

    Team Member

    Posts: 236
    Threads: 0
    Joined: 2023 Jun
    Reputation: 8
    #8
    2024-02-24, 04:07 PM (This post was last modified: 2024-02-24, 04:54 PM by nyanmisaka. Edited 2 times in total.)
    Last week our team welcomed a MacOS developer @gnattu who is familiar with FFmpeg, which allows us to effectively improve the transcoding performance of Jellyfin Server on MacOS, and change the current status of Jellyfin HWA only works great on Linux and Windows. I'll pass this issue to him and see if he has any ideas.
    gnattu
    Offline

    Team Member

    Posts: 336
    Threads: 0
    Joined: 2024 Feb
    Reputation: 17
    #9
    2024-02-24, 04:43 PM
    Your system complained about that it does not find an hardware encoder. Most likely you are using an x86 ffmpeg and programs running with rosetta will have problems find the correct VT encoder.

    You can use file $(which ffmpeg) in console to see if it is the case.

    For now, your best option is to install homebrew via https://brew.sh, and use brew install ffmpeg to use their ffmpeg instead. Theirs will have correct hardware acceleration behavior.
    gnattu
    Offline

    Team Member

    Posts: 336
    Threads: 0
    Joined: 2024 Feb
    Reputation: 17
    #10
    2024-02-24, 05:11 PM
    By the way the <EncoderAppPathDisplay>ffmpeg</EncoderAppPathDisplay> is only how the path is displayed, you need to modify <EncoderAppPath>ffmpeg</EncoderAppPath> as well.

    If you are using homebrew's ffmpeg, then it will look like thie:


    <EncoderAppPath>/opt/homebrew/bin/ffmpeg</EncoderAppPath>
    <EncoderAppPathDisplay>/opt/homebrew/bin/ffmpeg</EncoderAppPathDisplay>
    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