[FFmpeg-user] capture from camera (macOS) and pass video to ffplay
Kieran O Leary
kieran.o.leary at gmail.com
Wed Sep 12 19:30:37 EEST 2018
Hi
On Wed, 12 Sep 2018, 17:09 Peter Gusev, <gpeetonn at gmail.com> wrote:
> Hi! well I'm sure the ones I tried are incorrect as I'm not familiar with
> ffmpeg much. But here's one of them:
>
> ffmpeg -f avfoundation -framerate 30 -i "0" -f rawvideo -pix_fmt argb - |
> ffplay -f rawvideo -s1280x720 -pix_fmt argb -i -
>
Put a space between -s and 1280x720
ffmpeg version 3.4ffplay version 3.4 Copyright © 2000-2017 the FFmpeg
> developers Copyright © 2003-2017 the FFmpeg developers
>
> built with Apple LLVM version 9.0.0 (clang-900.0.38)
> built with Apple LLVM version 9.0.0 (clang-900.0.38)
> configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4 --enable-shared
> --enable-pthreads --enable-version3 --enable-hardcoded-tables
> --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl
> --enable-ffplay --enable-libmp3lame --enable-libx264 --enable-libxvid
> --enable-opencl --enable-videotoolbox --disable-lzma
> configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4 --enable-shared
> --enable-pthreads --enable-version3 --enable-hardcoded-tables
> --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl
> --enable-ffplay --enable-libmp3lame --enable-libx264 --enable-libxvid
> --enable-opencl --enable-videotoolbox --disable-lzma
> libavutil 55. 78.100 / 55. 78.100
> libavutil 55. 78.100 / 55. 78.100
> libavcodec 57.107.100 / 57.107.100
> libavcodec 57.107.100 / 57.107.100
> libavformat 57. 83.100 / 57. 83.100
> libavformat 57. 83.100 / 57. 83.100
> libavdevice 57. 10.100 / 57. 10.100
> libavdevice 57. 10.100 / 57. 10.100
> libavfilter 6.107.100 / 6.107.100
> libavfilter 6.107.100 / 6.107.100
> libavresample 3. 7. 0 / 3. 7. 0
> libavresample 3. 7. 0 / 3. 7. 0
> libswscale 4. 8.100 / 4. 8.100
> libswscale 4. 8.100 / 4. 8.100
> libswresample 2. 9.100 / 2. 9.100
> libswresample 2. 9.100 / 2. 9.100
> libpostproc 54. 7.100 / 54. 7.100
> libpostproc 54. 7.100 / 54. 7.100
> Failed to set value '-pix_fmt' for option 's1280x720': Option not found
>
The lack of a space is causing this error.
Best,
Kieran
More information about the ffmpeg-user
mailing list