[FFmpeg-trac] #4080(avdevice:new): AV Foundation frame rate setting ignored
FFmpeg
trac at avcodec.org
Tue Nov 4 19:16:09 CET 2014
#4080: AV Foundation frame rate setting ignored
--------------------------------------+------------------------------------
Reporter: LordHDL | Owner:
Type: enhancement | Status: new
Priority: wish | Component: avdevice
Version: git-master | Resolution:
Keywords: avfoundation | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+------------------------------------
Comment (by LordHDL):
When I try -frame_rate 60 it gives me this:
{{{
[AVFoundation input device @ 0x7feea8501a00] Value 60.000000 for parameter
'frame_rate' out of range [0.1 - 30]
[AVFoundation input device @ 0x7feea8501a00] Error setting option
frame_rate to value 60.
: Result too large
}}}
Any value between the specified range will result in enormous CPU usage
and a failure to stop upon pressing Q (or perhaps it just takes a really
long time).
{{{
Last login: Tue Nov 4 14:08:08 on ttys001
HDLs-MacBook-Pro:~ HDL$ cd ~/Desktop
HDLs-MacBook-Pro:Desktop HDL$ ./ffmpeg -f avfoundation -frame_rate 30
-video_device_index 3 -i "" -c:v mpeg4 -qscale 2 -vf crop=426:240:507:339
out.mov
ffmpeg version N-67454-g0971154-tessus Copyright (c) 2000-2014 the FFmpeg
developers
built on Nov 3 2014 23:27:57 with Apple LLVM version 6.0
(clang-600.0.54) (based on LLVM 3.5svn)
configuration: --cc=/usr/bin/clang
--prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus
--disable-shared --enable-static --disable-ffplay --enable-gpl --enable-
pthreads --enable-postproc --enable-libmp3lame --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-libx265 --enable-libxvid
--enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libxavs --enable-libsoxr --enable-
libwavpack --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvpx --enable-libgsm --enable-libopus --enable-libmodplug
--enable-fontconfig --enable-libfreetype --enable-libass --enable-
libbluray --enable-filters --disable-indev=qtkit --disable-
indev=x11grab_xcb --enable-runtime-cpudetect
libavutil 54. 11.100 / 54. 11.100
libavcodec 56. 10.102 / 56. 10.102
libavformat 56. 12.100 / 56. 12.100
libavdevice 56. 2.100 / 56. 2.100
libavfilter 5. 2.102 / 5. 2.102
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
2014-11-04 14:12:18.427 ffmpeg[2898:182750] alloc
2014-11-04 14:12:18.428 ffmpeg[2898:182750] query 2
2014-11-04 14:12:18.428 ffmpeg[2898:182750] release 2
2014-11-04 14:12:18.428 ffmpeg[2898:182750] **
MyPlugInitializeWithObjectID
2014-11-04 14:12:18.428 ffmpeg[2898:182750] init
2014-11-04 14:12:18.428 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.428 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.428 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.502 ffmpeg[2898:182750] <CMVideoFormatDescription
0x7fd99250ee00 [0x7fff7bfb7cf0]> {
mediaType:'vide'
mediaSubType:'BGRA'
mediaSpecific: {
codecType: 'BGRA' dimensions: 640 x 480
}
extensions: {<CFBasicHash 0x7fd992515240 [0x7fff7bfb7cf0]>{type =
immutable dict, count = 4,
entries =>
1 : <CFString 0x7fff7c3e2f08 [0x7fff7bfb7cf0]>{contents =
"CVFieldCount"} = <CFNumber 0x137 [0x7fff7bfb7cf0]>{value = +1, type =
kCFNumberSInt64Type}
2 : <CFString 0x1117d07f0 [0x7fff7bfb7cf0]>{contents =
"CVBytesPerRow"} = <CFNumber 0xa0037 [0x7fff7bfb7cf0]>{value = +2560, type
= kCFNumberSInt64Type}
4 : <CFString 0x7fff7a4d8e50 [0x7fff7bfb7cf0]>{contents =
"com.apple.cmio.format_extension.video.only_has_i_frames"} = <CFBoolean
0x7fff7bfb86c8 [0x7fff7bfb7cf0]>{value = true}
5 : <CFString 0x7fff7b59d6f0 [0x7fff7bfb7cf0]>{contents =
"FormatName"} = <CFString 0x1117d0810 [0x7fff7bfb7cf0]>{contents =
"Component Video - CCIR-601 RGB"}
}
}
}
2014-11-04 14:12:18.502 ffmpeg[2898:182750] alloc
2014-11-04 14:12:18.502 ffmpeg[2898:182750] query 2
2014-11-04 14:12:18.502 ffmpeg[2898:182750] release 2
2014-11-04 14:12:18.502 ffmpeg[2898:182750] **
MyPlugInitializeWithObjectID
2014-11-04 14:12:18.502 ffmpeg[2898:182750] init
2014-11-04 14:12:18.502 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.503 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.503 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.503 ffmpeg[2898:182750] <CMVideoFormatDescription
0x7fd994800340 [0x7fff7bfb7cf0]> {
mediaType:'vide'
mediaSubType:'2vuy'
mediaSpecific: {
codecType: '2vuy' dimensions: 640 x 480
}
extensions: {<CFBasicHash 0x7fd992432b60 [0x7fff7bfb7cf0]>{type =
immutable dict, count = 6,
entries =>
0 : <CFString 0x7fff7c3e3088 [0x7fff7bfb7cf0]>{contents =
"CVImageBufferYCbCrMatrix"} = <CFString 0x7fff7c3e30c8
[0x7fff7bfb7cf0]>{contents = "ITU_R_601_4"}
1 : <CFString 0x7fff7c3e2f08 [0x7fff7bfb7cf0]>{contents =
"CVFieldCount"} = <CFNumber 0x137 [0x7fff7bfb7cf0]>{value = +1, type =
kCFNumberSInt64Type}
2 : <CFString 0x7fff7c3e3188 [0x7fff7bfb7cf0]>{contents =
"CVImageBufferTransferFunction"} = <CFString 0x7fff7c3e30a8
[0x7fff7bfb7cf0]>{contents = "ITU_R_709_2"}
4 : <CFString 0x7fff7a4d8e50 [0x7fff7bfb7cf0]>{contents =
"com.apple.cmio.format_extension.video.only_has_i_frames"} = <CFBoolean
0x7fff7bfb86c8 [0x7fff7bfb7cf0]>{value = true}
5 : <CFString 0x7fff7c3e3108 [0x7fff7bfb7cf0]>{contents =
"CVImageBufferColorPrimaries"} = <CFString 0x7fff7c3e3148
[0x7fff7bfb7cf0]>{contents = "SMPTE_C"}
6 : <CFString 0x7fff7b59d6f0 [0x7fff7bfb7cf0]>{contents =
"FormatName"} = <CFString 0x1117d0870 [0x7fff7bfb7cf0]>{contents =
"Component Video - CCIR-601 uyvy"}
}
}
}
2014-11-04 14:12:18.605 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.605 ffmpeg[2898:182750] enog
2014-11-04 14:12:18.605 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.605 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.605 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.606 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.606 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.606 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.606 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.606 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.606 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.606 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.606 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.606 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.607 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.607 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.607 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.607 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.607 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.607 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.607 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.607 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.608 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.608 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.608 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.608 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.608 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.608 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.608 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.608 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.608 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.608 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.609 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.609 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.609 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.609 ffmpeg[2898:182750] grrf
2014-11-04 14:12:18.609 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.609 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.609 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.609 ffmpeg[2898:182750] grrf
2014-11-04 14:12:18.609 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.609 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.610 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.610 ffmpeg[2898:182750] trfn
2014-11-04 14:12:18.610 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.610 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.610 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.610 ffmpeg[2898:182750] trfm
2014-11-04 14:12:18.610 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.610 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.610 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.610 ffmpeg[2898:182750] trfn
2014-11-04 14:12:18.611 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.611 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.611 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.611 ffmpeg[2898:182750] dulp
2014-11-04 14:12:18.611 ffmpeg[2898:182750] tpni
2014-11-04 14:12:18.611 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.611 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.611 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.611 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.611 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.612 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.612 ffmpeg[2898:182750] enog
2014-11-04 14:12:18.612 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.612 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.612 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.612 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.612 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.612 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.612 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.612 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.613 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.613 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.613 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.613 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.613 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.613 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.613 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.613 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.613 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.614 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.614 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.614 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.614 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.614 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.614 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.614 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.614 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.615 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.615 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.615 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.615 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.615 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.615 ffmpeg[2898:182750] elt 0
2014-11-04 14:12:18.615 ffmpeg[2898:182750] MyPlugObjectSetPropertyData
2014-11-04 14:12:18.615 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.616 ffmpeg[2898:182750] grrf
2014-11-04 14:12:18.616 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.616 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.616 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.616 ffmpeg[2898:182750] grrf
2014-11-04 14:12:18.616 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.616 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.616 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.616 ffmpeg[2898:182750] trfn
2014-11-04 14:12:18.617 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.617 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.617 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.617 ffmpeg[2898:182750] trfm
2014-11-04 14:12:18.617 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.617 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.617 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.617 ffmpeg[2898:182750] trfn
2014-11-04 14:12:18.617 ffmpeg[2898:182750] bolg
2014-11-04 14:12:18.617 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.617 ffmpeg[2898:182750] MyPlugObjectHasProperty
2014-11-04 14:12:18.618 ffmpeg[2898:182750] dulp
2014-11-04 14:12:18.618 ffmpeg[2898:182750] tpni
2014-11-04 14:12:18.618 ffmpeg[2898:182750] 0
2014-11-04 14:12:18.618 ffmpeg[2898:182750]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:12:18.618 ffmpeg[2898:182750] sel dnwo
2014-11-04 14:12:18.618 ffmpeg[2898:182750] scope bolg
2014-11-04 14:12:18.618 ffmpeg[2898:182750] elt 0
[avfoundation @ 0x7fd99280b000] Selected pixel format (yuv420p) is not
supported by the input device.
[avfoundation @ 0x7fd99280b000] Supported pixel formats:
[avfoundation @ 0x7fd99280b000] uyvy422
[avfoundation @ 0x7fd99280b000] yuyv422
[avfoundation @ 0x7fd99280b000] nv12
[avfoundation @ 0x7fd99280b000] 0rgb
[avfoundation @ 0x7fd99280b000] bgr0
[avfoundation @ 0x7fd99280b000] Overriding selected pixel format to use
uyvy422 instead.
[avfoundation @ 0x7fd99280b000] Stream #0: not enough frames to estimate
rate; consider increasing probesize
Input #0, avfoundation, from '':
Duration: N/A, start: 0.847500, bitrate: 2822 kb/s
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1440x900,
1000k tbr, 1000k tbn, 1000k tbc
Stream #0:1: Audio: pcm_f32le, 44100 Hz, stereo, flt, 2822 kb/s
Please use -q:a or -q:v, -qscale is ambiguous
File 'out.mov' already exists. Overwrite ? [y/N] y
[mov @ 0x7fd992857c00] Frame rate very high for a muxer not efficiently
supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync
2
Output #0, mov, to 'out.mov':
Metadata:
encoder : Lavf56.12.100
Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 426x240,
q=2-31, 200 kb/s, 65535 fps, 65535 tbn, 65535 tbc
Metadata:
encoder : Lavc56.10.102 mpeg4
Stream #0:1: Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 44100 Hz,
stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.10.102 libvo_aacenc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4080#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list