[FFmpeg-trac] #9505(undetermined:new): Unsupported frame rate with capture device after updating to MacOS Monterey
FFmpeg
trac at avcodec.org
Thu Nov 11 08:45:27 EET 2021
#9505: Unsupported frame rate with capture device after updating to MacOS Monterey
-------------------------------------+-------------------------------------
Reporter: ewu100 | Type: defect
Status: new | Priority: critical
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
After updating my Mac to MacOS Monterey, capturing video from a capture
device fails saying the framerate is not supported. Before the update, the
command worked fine. I have tested this on 4 different macs with 4
different Magewell USB Capture HDMI cards
([https://www.magewell.com/products/usb-capture-hdmi-gen-2 product page]),
and all are experiencing the same issue after updating to MacOS Monterey.
How to reproduce:
{{{
% ffmpeg -f avfoundation -s 1280x720 -framerate 30 -an -i "USB Capture
HDMI" -y -c:v h264_videotoolbox -b:v 5M -f mp4 test.mp4
ffmpeg version N-104496-g44c65c6cc0-tessu
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
}}}
Console output:
{{{
% ./ffmpeg -v 9 -loglevel 99 -f avfoundation -s 1280x720 -framerate 30 -an
-i "USB Capture HDMI" -y -c:v h264_videotoolbox -b:v 2M -f mp4 test.mp4
ffmpeg version N-104496-g44c65c6cc0-tessus https://evermeet.cx/ffmpeg/
Copyright (c) 2000-2021 the FFmpeg developers
built with Apple clang version 11.0.0 (clang-1100.0.33.17)
configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-
version=tessus --enable-avisynth --enable-fontconfig --enable-gpl
--enable-libaom --enable-libass --enable-libbluray --enable-libdav1d
--enable-libfreetype --enable-libgsm --enable-libmodplug --enable-
libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-
libopus --enable-librubberband --enable-libshine --enable-libsnappy
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq
--enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-
ffplay
libavutil 57. 7.100 / 57. 7.100
libavcodec 59. 12.100 / 59. 12.100
libavformat 59. 8.100 / 59. 8.100
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 16.101 / 8. 16.101
libswscale 6. 1.100 / 6. 1.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'avfoundation'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or
abbreviation)) with argument '1280x720'.
Reading option '-framerate' ... matched as AVOption 'framerate' with
argument '30'.
Reading option '-an' ... matched as option 'an' (disable audio) with
argument '1'.
Reading option '-i' ... matched as input url with argument 'USB Capture
HDMI'.
Reading option '-y' ... matched as option 'y' (overwrite output files)
with argument '1'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'h264_videotoolbox'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use
-b:v)) with argument '2M'.
Reading option '-f' ... matched as option 'f' (force format) with argument
'mp4'.
Reading option 'test.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url USB Capture HDMI.
Applying option f (force format) with argument avfoundation.
Applying option s (set frame size (WxH or abbreviation)) with argument
1280x720.
Applying option an (disable audio) with argument 1.
Successfully parsed a group of options.
Opening an input file: USB Capture HDMI.
[avfoundation @ 0x7fd60af04cc0] 'USB Capture HDMI' opened
[avfoundation @ 0x7fd60af04cc0] Selected framerate (30.000000) is not
supported by the device.
[avfoundation @ 0x7fd60af04cc0] Supported modes:
[avfoundation @ 0x7fd60af04cc0] 640x360@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 640x480@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 720x480@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 720x576@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 768x576@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 800x600@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 856x480@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 960x540@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1024x576@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1024x768@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1280x720@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1280x800@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1280x960@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1280x1024@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1368x768@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1440x900@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1600x1200@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1680x1050@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1920x1080@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 1920x1200@[14.999993 59.999880]fps
Last message repeated 1 times
[avfoundation @ 0x7fd60af04cc0] 2048x1080@[14.999993 59.999880]fps
Last message repeated 1 times
USB Capture HDMI: Input/output error
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9505>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list