Opened 8 years ago

Last modified 8 years ago

#5787 new defect

OS X: Not possible to use videotoolbox in ffplay

Reported by: tripkip Owned by:
Priority: normal Component: ffplay
Version: unspecified Keywords: videotoolbox
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

ffplay version N-81124-g77eb05a-tessus

I'm trying to play a file (to produce a debug log) using ffplay with videotoolbox (VTB) enabled.

"./ffplay -codecs | grep 264" returns " DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_vda ) (encoders: libx264 libx264rgb h264_videotoolbox )"

But when I do "./ffplay -codec:v h264_videotoolbox file.mkv" I get "No codec could be found with name 'h264_videotoolbox'".

Btw using h264_vda crashes ffplay (vda is no longer supported by OS X 10.11.

Change History (10)

comment:1 by Carl Eugen Hoyos, 8 years ago

This has currently no similarity with a valid ticket: Please provide failing command line and complete, uncut console output.

comment:2 by Rick Kern, 8 years ago

Try running with the -hwaccel videotoolbox option. Videotoolbox is not implemented as a self-contained decoder yet.

comment:3 by tripkip, 8 years ago

-hwaccel videotoolbox only works in ffmpeg, not ffplay:

Downloads ./ffplay-1 -hwaccel videotoolbox Mr.\ Robot.S02E07.1080p.WEB.DL.eps2.5_h4ndshake.sme.mkv
ffplay version N-81124-g77eb05a-tessus Copyright (c) 2003-2016 the FFmpeg developers

built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --enable-librtmp --enable-ffplay --disable-ffmpeg --disable-ffprobe --disable-ffserver --disable-indev=qtkit --disable-indev=x11grab_xcb
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100

Failed to set value 'videotoolbox' for option 'hwaccel': Option not found

in reply to:  description ; comment:4 by Carl Eugen Hoyos, 8 years ago

Replying to tripkip:

Btw using h264_vda crashes ffplay (vda is no longer supported by OS X 10.11.

How can I reproduce the crash?
Please open a separate ticket, crashes are always important.

in reply to:  4 ; comment:5 by tripkip, 8 years ago

Replying to cehoyos:

Replying to tripkip:

Btw using h264_vda crashes ffplay (vda is no longer supported by OS X 10.11.

How can I reproduce the crash?
Please open a separate ticket, crashes are always important.

Well it's quite simple, the fact that it crashes is because the VDA framework simply doesn't exist in 10.11 anymore. I hope someone can add VTB to FFPlay soon...
See bottom 'Removed Frameworks' at https://developer.apple.com/library/mac/releasenotes/MacOSX/WhatsNewInOSX/Articles/MacOSX10_11.html

in reply to:  5 ; comment:6 by Carl Eugen Hoyos, 8 years ago

Replying to tripkip:

Replying to cehoyos:

Replying to tripkip:

Btw using h264_vda crashes ffplay (vda is no longer supported by OS X 10.11.

How can I reproduce the crash?
Please open a separate ticket, crashes are always important.

Well it's quite simple, the fact that it crashes is because the VDA framework simply doesn't exist in 10.11 anymore.

Please provide at least the command line you tested and the complete, uncut console output. A backtrace would be nice.

in reply to:  6 comment:7 by tripkip, 8 years ago

Replying to cehoyos:

Please provide at least the command line you tested and the complete, uncut console output. A backtrace would be nice.

I can't get it to crash anymore but you can clearly see in the log that the vda decoder cannot be initiated (because the framework doesn't exist on OSX 10.11).

http://pastebin.com/ZSdvRELD

ffmpeg supports VTB decoder, so it shouldn't be hard to enable it in ffplay?

comment:8 by Carl Eugen Hoyos, 8 years ago

So there is no crash?

comment:9 by tripkip, 8 years ago

There was, but can't reproduce it anymore (even with the version I used before).

in reply to:  8 comment:10 by tripkip, 8 years ago

Replying to cehoyos:

So there is no crash?

After a few more tries:

Crash log: http://pastebin.com/nzeAWJs8
Console: http://pastebin.com/hLdeCNrk

Note: See TracTickets for help on using tickets.