• 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 Apple VideoToolBox encoding failure

     
    • 0 Vote(s) - 0 Average

    Apple VideoToolBox encoding failure

    grips
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:United States
    #1
    2024-04-16, 04:50 PM
    Hello,

    I am having some transcoding issues with certain files, and it seems to be related to hardware encoding with Apple VideoToolBox.

    I have Jellyfin installed on an Intel-based Mac Mini using the v10.8.13 dmg.

    The ffmpeg log looks like:
    Quote:ffmpeg -analyzeduration 200M -init_hw_device videotoolbox=vt -hwaccel videotoolbox -autorotate 0 -i file:"/Volumes/video/Series/MacGyver/Season 1/01 Pilot-C.avi" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_videotoolbox -b:v 3203195 -maxrate 3203195 -bufsize 6406390 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(512\,384*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(512/a\,384))/2)*2,format=nv12" -codec:a:0 aac -ac 2 -ab 256000 -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 "/Users/xxx/.local/share/jellyfin/transcodes/7736832436128392456bd5ce87ea24d7%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/Users/xxx/.local/share/jellyfin/transcodes/7736832436128392456bd5ce87ea24d7.m3u8"


    ffmpeg version 5.1.2-tessus Copyright © 2000-2022 the FFmpeg developers
      built with Apple clang version 11.0.0 (clang-1100.0.33.17)
      configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
      libavutil      57. 28.100 / 57. 28.100
      libavcodec    59. 37.100 / 59. 37.100
      libavformat    59. 27.100 / 59. 27.100
      libavdevice    59.  7.100 / 59.  7.100
      libavfilter    8. 44.100 /  8. 44.100
      libswscale      6.  7.100 /  6.  7.100
      libswresample  4.  7.100 /  4.  7.100
      libpostproc    56.  6.100 / 56.  6.100
    Input #0, avi, from 'file:/Volumes/video/Series/MacGyver/Season 1/01 Pilot-C.avi':
      Metadata:
        software        : Lavf52.32.0
      Duration: 00:45:40.62, start: 0.000000, bitrate: 618 kb/s
      Stream #0:0: Video: mpeg4 (Simple Profile) (xvid / 0x64697678), yuv420p, 512x384 [SAR 1:1 DAR 4:3], 512 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn
      Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, stereo, fltp, 96 kb/s
    Stream mapping:
      Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (h264_videotoolbox))
      Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
    Press [q] to stop, [?] for help
    [mpeg4 @ 0x7f80a600a980] Failed setup for format videotoolbox_vld: hwaccel initialisation returned error.
    [h264_videotoolbox @ 0x7f80a60085c0] Error: cannot create compression session: -12903
    [h264_videotoolbox @ 0x7f80a60085c0] 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 @ 0x7f80a6009840] Qavg: 623.956
    [aac @ 0x7f80a6009840] 2 frames left in the queue on closing
    Conversion failed!

    It does work properly with other video files. I'm looking for ideas on resolving this. Let me know if I can provide any extra details to help. 

    Thank you
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Apple VideoToolBox encoding failure - by grips - 2024-04-16, 04:50 PM
    RE: Apple VideoToolBox encoding failure - by TheDreadPirate - 2024-04-16, 05:00 PM
    RE: Apple VideoToolBox encoding failure - by grips - 2024-04-16, 05:11 PM
    RE: Apple VideoToolBox encoding failure - by TheDreadPirate - 2024-04-16, 05:20 PM
    RE: Apple VideoToolBox encoding failure - by gnattu - 2024-04-16, 05:30 PM
    RE: Apple VideoToolBox encoding failure - by grips - 2024-04-16, 05:44 PM
    RE: Apple VideoToolBox encoding failure - by gnattu - 2024-04-16, 06:05 PM
    RE: Apple VideoToolBox encoding failure - by grips - 2024-04-16, 06:17 PM
    RE: Apple VideoToolBox encoding failure - by gnattu - 2024-04-16, 06:36 PM
    RE: Apple VideoToolBox encoding failure - by grips - 2024-04-16, 06:49 PM

    • 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