Opened 16 months ago

#8736 new defect

videotoolbox failed to decode picture, green frames

Reported by: der_richter Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: videotoolbox
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

videotoolbox fails to decode any pictures and produces only green frames. quicktime player and vlc can both decode the file properly with hwdec/videotoolbox.

sample file: https://0x0.st/iVFr.MP4
mpv issue: https://github.com/mpv-player/mpv/issues/6394

ffmpeg -hwaccel videotoolbox -i "/Volumes/AkemiData/Downloads/ffmpeg_videotoolbox_issues/iVFr.MP4" -f null -
-bash: akemi$: command not found
Akemis-iMac:mpv-akemi akemi$ ffmpeg -hwaccel videotoolbox -i "/Volumes/AkemiData/Downloads/ffmpeg_videotoolbox_issues/iVFr.MP4" -f null -
ffmpeg version git-2020-06-11-bc8ab084 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.12)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-bc8ab08 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=/usr/bin/clang --host-cflags='-Os -w -pipe -march=nehalem -mmacosx-version-min=10.14 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fno-stack-check' --host-ldflags='-L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/python@3.8/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' --enable-ffplay --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-gpl --enable-nonfree --enable-hardcoded-tables --enable-libfdk-aac --enable-libgme --enable-libbs2b --enable-libgsm --enable-libxml2 --enable-openssl --enable-libwavpack --enable-libzmq --enable-libzimg --enable-opencl
  libavutil      56. 54.100 / 56. 54.100
  libavcodec     58. 92.100 / 58. 92.100
  libavformat    58. 46.101 / 58. 46.101
  libavdevice    58. 11.100 / 58. 11.100
  libavfilter     7. 86.100 /  7. 86.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f907800a000] st: 0 edit list: 1 Missing key frame while searching for timestamp: 3003
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f907800a000] st: 0 edit list 1 Cannot find an index entry before timestamp: 3003.
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/AkemiData/Downloads/ffmpeg_videotoolbox_issues/iVFr.MP4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    creation_time   : 2018-10-15T14:38:48.000000Z
  Duration: 00:00:56.56, start: 0.000000, bitrate: 14832 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 142790 kb/s, 59.94 fps, 59.94 tbr, 180k tbn, 119.88 tbc (default)
    Metadata:
      creation_time   : 2018-10-15T14:38:48.000000Z
      timecode        : 00:05:41;35
    Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2018-10-15T14:38:48.000000Z
      timecode        : 00:05:41;35
    Stream #0:2(und): Data: none (tmcd / 0x64636D74), 1 kb/s (default)
    Metadata:
      creation_time   : 2018-10-15T14:38:48.000000Z
      timecode        : 00:05:41;35
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
  Stream #0:1 -> #0:1 (pcm_s16be (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
GVA info: Successfully connected to the Intel plugin, offline Gen9 
[h264 @ 0x7f9068802e00] hardware accelerator failed to decode picture
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred bitrate=N/A speed=N/A    
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
Output #0, null, to 'pipe:':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    encoder         : Lavf58.46.101
    Stream #0:0(und): Video: wrapped_avframe, nv12(progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 59.94 fps, 59.94 tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2018-10-15T14:38:48.000000Z
      timecode        : 00:05:41;35
      encoder         : Lavc58.92.100 wrapped_avframe
    Stream #0:1(und): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2018-10-15T14:38:48.000000Z
      timecode        : 00:05:41;35
      encoder         : Lavc58.92.100 pcm_s16le
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode pictured=0.56x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode pictured=0.656x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode pictured=0.625x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode pictured=0.638x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode pictured=0.657x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode pictured=0.653x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode pictured=0.657x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode pictured=0.659x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode pictured=0.656x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode pictured=0.665x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode pictured=0.666x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode pictured=0.679x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode pictured=0.669x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode pictured=0.67x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode pictured=0.675x    
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f906880aa00] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068801800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[h264 @ 0x7f9068809800] hardware accelerator failed to decode picture
Error while decoding stream #0:0: Unknown error occurred
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f907800a000] Packet corrupt (stream = 0, dts = 1042041).
/Volumes/AkemiData/Downloads/ffmpeg_videotoolbox_issues/iVFr.MP4: corrupt input packet in stream 0
[h264 @ 0x7f906880aa00] Invalid NAL unit size (99075 > 41135).
[h264 @ 0x7f906880aa00] Error splitting the input into NAL units.
Error while decoding stream #0:0: Unknown error occurred
    Last message repeated 1 times
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 0x7f9068803600] No frame decoded?
Error while decoding stream #0:0: Generic error in an external library
frame=  231 fps= 27 q=-0.0 Lsize=N/A time=00:00:05.78 bitrate=N/A speed=0.676x    
video:121kB audio:1032kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Change History (0)

Note: See TracTickets for help on using tickets.