Discussion:
[FFmpeg-user] how do I list the devices?
Ricardo Kleemann
2015-06-20 01:52:02 UTC
Permalink
Hi,

I just built ffmpeg from snapshot. I am on a MacBook Pro, OS X 10.10.3

I tried using the -list_devices command but get an error:

$ /usr/local/bin/ffmpeg -f avfoundation -list_devices true -i ""
ffmpeg version N-73015-g8edc17b Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 37.100 / 56. 37.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 17.100 / 5. 17.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Unrecognized option 'list_devices'.
Error splitting the argument list: Option not found


And tried the command -devices and I don’t understand the output. I’m trying to see which devices are available

$ /usr/local/bin/ffmpeg -devices
ffmpeg version N-73015-g8edc17b Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 37.100 / 56. 37.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 17.100 / 5. 17.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Devices:
D. = Demuxing supported
.E = Muxing supported
--
E sdl SDL output device

I don’t even see the standard webcam device from the mac

I have an A/V capture device connected to the thunderbolt port (Blackmagic Design UltraStudio Mini Recorder) and I wanted to see which device to use with ffmpeg

thanks
Ricardo
Moritz Barsnick
2015-06-20 11:12:50 UTC
Permalink
Hi Ricardo,
Post by Ricardo Kleemann
And tried the command -devices and I don’t understand the output. I’m trying to see which devices are available
And ffmpeg correctly tells you: No input devices.
Post by Ricardo Kleemann
D. = Demuxing supported
.E = Muxing supported
--
E sdl SDL output device
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs
Do you see that very last option? "--disable-indevs"
What were you trying to achive when using it?

Moritz
Ricardo Kleemann
2015-06-20 15:49:33 UTC
Permalink
Thanks for pointing that out… my bad!

I was using an existing script for compiling and didn’t notice the option, I’ll rebuild and try again.
Post by Moritz Barsnick
Hi Ricardo,
Post by Ricardo Kleemann
And tried the command -devices and I don’t understand the output. I’m trying to see which devices are available
And ffmpeg correctly tells you: No input devices.
Post by Ricardo Kleemann
D. = Demuxing supported
.E = Muxing supported
--
E sdl SDL output device
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs
Do you see that very last option? "--disable-indevs"
What were you trying to achive when using it?
Moritz
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Ricardo Kleemann
2015-06-20 16:56:13 UTC
Permalink
Thanks again for your help.

I’ve rebuilt ffmpeg and now I do see devices.

But I don’t know how to differentiate. From the output below it seems to me there’s only 1 device which very likely would be the built-in webcam of the macbook pro. Which, if that is the case, then my thunderbolt device isn’t being recognized.

I do know that the capture device works, I can see it if I run the Flash Media Live Encoder application or the Media Express application that comes with the capture device.

$ /usr/local/bin/ffmpeg -devices
ffmpeg version N-73015-g8edc17b Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 37.100 / 56. 37.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 17.100 / 5. 17.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Devices:
D. = Demuxing supported
.E = Muxing supported
--
D avfoundation AVFoundation input device
D lavfi Libavfilter virtual input device
D qtkit QTKit input device
E sdl SDL output device
Post by Moritz Barsnick
Hi Ricardo,
Post by Ricardo Kleemann
And tried the command -devices and I don’t understand the output. I’m trying to see which devices are available
And ffmpeg correctly tells you: No input devices.
Post by Ricardo Kleemann
D. = Demuxing supported
.E = Muxing supported
--
E sdl SDL output device
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs
Do you see that very last option? "--disable-indevs"
What were you trying to achive when using it?
Moritz
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Moritz Barsnick
2015-06-20 18:01:27 UTC
Permalink
Post by Ricardo Kleemann
$ /usr/local/bin/ffmpeg -devices
What does "-list_devices" show you now? Is the qtkit indev of any use
to you? (I don't have a Mac or know much about it, but if it knows both
your devices, they show both be presented to ffmpeg as well.)

Moritz
Ricardo Kleemann
2015-06-21 03:15:40 UTC
Permalink
Hi Moritz
Post by Moritz Barsnick
Post by Ricardo Kleemann
$ /usr/local/bin/ffmpeg -devices
What does "-list_devices" show you now? Is the qtkit indev of any use
to you? (I don't have a Mac or know much about it, but if it knows both
your devices, they show both be presented to ffmpeg as well.)
I was hopeful this time but still having troubles. This is what I see:

$ ffmpeg -f avfoundation -list_devices true -i ""
ffmpeg version N-73015-g8edc17b Copyright (c) 2000-2015 the FFmpeg developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 37.100 / 56. 37.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 17.100 / 5. 17.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
[AVFoundation input device @ 0x7fcd3ae00960] AVFoundation video devices:
[AVFoundation input device @ 0x7fcd3ae00960] [0] FaceTime HD Camera (Built-in)
[AVFoundation input device @ 0x7fcd3ae00960] [1] Capture screen 0
[AVFoundation input device @ 0x7fcd3ae00960] AVFoundation audio devices:
[AVFoundation input device @ 0x7fcd3ae00960] [0] Blackmagic Audio
[AVFoundation input device @ 0x7fcd3ae00960] [1] Built-in Input
: Input/output error


The Blackmagic shows for Audio, but no for video. I tried to see if at least the “capture screen” would be the one but that’s a special device which captures the current screen (output to the screen/monitor)

I don’t know what the Input/output error at the end means… but I’m not able to get the Blackmagic video device unfortunately.

I know you’re not a Mac person, is anyone else able to help?

thanks
Ricardo
Carl Eugen Hoyos
2015-06-22 06:56:07 UTC
Permalink
Post by Ricardo Kleemann
--enable-postproc --enable-swscale
--enable-avfilter --enable-pthreads
These options have no effect, please remove
them to make debugging your configure line
easier.
Post by Ricardo Kleemann
--enable-hardcoded-tables
Out of curiosity: Why?
Post by Ricardo Kleemann
--enable-libfaac
libfdk offers superior quality.
Post by Ricardo Kleemann
--enable-version3
From a quick look, this is unneeded (or isn't
it?), I suggest you remove it.
Post by Ricardo Kleemann
[AVFoundation input device 0x7fcd3ae00960] [0] FaceTime HD Camera (Built-in)
[AVFoundation input device 0x7fcd3ae00960] [1] Capture screen 0
[AVFoundation input device 0x7fcd3ae00960] [0] Blackmagic Audio
[AVFoundation input device 0x7fcd3ae00960] [1] Built-in Input
The Blackmagic shows for Audio, but no for
video.
Which application that records the screen and the
FaceTime camera is able to record Blackmagic video?
What makes you think this isn't just a BlackMagic
driver issue?

Carl Eugen
Ricardo Kleemann
2015-06-22 21:47:23 UTC
Permalink
Hello,

Regarding the options for config/compile, I didn't follow any specific set
of instruction or logic, I took a script used for building ffmpeg on a mac.
I can certainly change the script based on your helpful feedback.

More below...
Post by Carl Eugen Hoyos
Post by Ricardo Kleemann
--enable-postproc --enable-swscale
--enable-avfilter --enable-pthreads
These options have no effect, please remove
them to make debugging your configure line
easier.
Post by Ricardo Kleemann
--enable-hardcoded-tables
Out of curiosity: Why?
Post by Ricardo Kleemann
--enable-libfaac
libfdk offers superior quality.
Post by Ricardo Kleemann
--enable-version3
From a quick look, this is unneeded (or isn't
it?), I suggest you remove it.
Post by Ricardo Kleemann
[AVFoundation input device 0x7fcd3ae00960] [0] FaceTime HD Camera
(Built-in)
Post by Ricardo Kleemann
[AVFoundation input device 0x7fcd3ae00960] [1] Capture screen 0
[AVFoundation input device 0x7fcd3ae00960] [0] Blackmagic Audio
[AVFoundation input device 0x7fcd3ae00960] [1] Built-in Input
The Blackmagic shows for Audio, but no for
video.
Which application that records the screen and the
FaceTime camera is able to record Blackmagic video?
What makes you think this isn't just a BlackMagic
driver issue?
There's an app from Blackmagic (Media Express) which works fine with the
driver.

There's also the Flash Live Media Encoder (from Adobe) which recognizes the
blackmagic device and works well, so I can only assume the driver is
working fine.

Unfortunately neither ffmpeg nor VLC recognize the device so somehow to
these the driver isn't working, no idea why... :-/


Carl Eugen
Post by Carl Eugen Hoyos
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Ricardo Kleemann
2015-06-20 15:26:03 UTC
Permalink
Thank you for your feedback.

I apologize, I was building from a script and didn’t realize the option.

I will try again. :-)

Ricardo
Post by Moritz Barsnick
Hi Ricardo,
Post by Ricardo Kleemann
And tried the command -devices and I don’t understand the output. I’m trying to see which devices are available
And ffmpeg correctly tells you: No input devices.
Post by Ricardo Kleemann
D. = Demuxing supported
.E = Muxing supported
--
E sdl SDL output device
configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs
Do you see that very last option? "--disable-indevs"
What were you trying to achive when using it?
Moritz
_______________________________________________
ffmpeg-user mailing list
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Continue reading on narkive:
Loading...