[FFmpeg-trac] #8615(undetermined:new): -hwaccel videotoolbox does not work anymore
FFmpeg
trac at avcodec.org
Sat Apr 25 07:16:05 EEST 2020
#8615: -hwaccel videotoolbox does not work anymore
-------------------------------------+-------------------------------------
Reporter: Atarikid | Owner:
Type: defect | Status: new
Priority: important | Component:
| undetermined
Version: git-master | Resolution:
Keywords: | Blocked By:
videotoolbox regression |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by su.00048):
i have what seems to be the same issue, and started a thread ("hw_decode.c
on osx?") on ffmpeg-user some days ago. at least one other user there has
seen the same behavior. to recap briefly (let me know if you want more
detail), i'm building a native mac app which uses the ffmpeg libs to
handle decoding. it's working, but when i tried to implement hardware
decoding based on the hw_decode.c example, i see the following errors when
trying to decode h264 or hevc (both of which are supported on my gpu):
h264 example:
% hwdecode videotoolbox h264.mov h264.out
[h264 @ 0x7f8a2b003e00] get_buffer() failed
Assertion src->f->buf[0] failed at libavcodec/h264_picture.c:70
Abort
hevc fails differently:
% hwdecode videotoolbox hevc.mov hevc.out
[hevc @ 0x7f8464814600] get_buffer() failed
[hevc @ 0x7f8464814600] videotoolbox: invalid state
[hevc @ 0x7f8464814600] hardware accelerator failed to decode picture
Error during decoding
Error during decoding
this happens both with my code, and also when building hw_decode from
source and running it standalone. i've tried linking against various
versions of the libs, both those that i've compiled myself, and those
prebuilt and available for download.
i'm happy to provide any more info ...
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8615#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list