[FFmpeg-trac] #4080(avdevice:new): AV Foundation frame rate setting ignored
FFmpeg
trac at avcodec.org
Tue Nov 4 20:01:44 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):
{{{-r}}} does not work for me regardless of where I place it. Here's an
output file from the following command:
https://www.dropbox.com/s/w0djyou2iwacsyf/out.avi?dl=0
To clarify, using no value with {{{-frame_rate}}} fails to record
anything. Using a value will record but it indeed ignores the chosen
value.
I should also mention that using {{{-vf fps=60}}} does not work either.
{{{
Last login: Tue Nov 4 14:49:59 on ttys001
HDLs-MacBook-Pro:~ HDL$ cd ~/Desktop
HDLs-MacBook-Pro:Desktop HDL$ ./ffmpeg -f avfoundation -video_device_index
3 -i "" -r 60 -c:v mpeg4 -qscale 2 -vf crop=426:240:507:339 out.avi
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:53:57.380 ffmpeg[3261:203346] alloc
2014-11-04 14:53:57.381 ffmpeg[3261:203346] query 2
2014-11-04 14:53:57.381 ffmpeg[3261:203346] release 2
2014-11-04 14:53:57.381 ffmpeg[3261:203346] **
MyPlugInitializeWithObjectID
2014-11-04 14:53:57.381 ffmpeg[3261:203346] init
2014-11-04 14:53:57.381 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.381 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.381 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.454 ffmpeg[3261:203346] <CMVideoFormatDescription
0x7f8b22540f30 [0x7fff7bfb7cf0]> {
mediaType:'vide'
mediaSubType:'BGRA'
mediaSpecific: {
codecType: 'BGRA' dimensions: 640 x 480
}
extensions: {<CFBasicHash 0x7f8b225410f0 [0x7fff7bfb7cf0]>{type =
immutable dict, count = 4,
entries =>
1 : <CFString 0x7fff7c3e2f08 [0x7fff7bfb7cf0]>{contents =
"CVFieldCount"} = <CFNumber 0x137 [0x7fff7bfb7cf0]>{value = +1, type =
kCFNumberSInt64Type}
2 : <CFString 0x1068a17f0 [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 0x1068a1810 [0x7fff7bfb7cf0]>{contents =
"Component Video - CCIR-601 RGB"}
}
}
}
2014-11-04 14:53:57.454 ffmpeg[3261:203346] alloc
2014-11-04 14:53:57.455 ffmpeg[3261:203346] query 2
2014-11-04 14:53:57.455 ffmpeg[3261:203346] release 2
2014-11-04 14:53:57.455 ffmpeg[3261:203346] **
MyPlugInitializeWithObjectID
2014-11-04 14:53:57.455 ffmpeg[3261:203346] init
2014-11-04 14:53:57.455 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.455 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.456 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.456 ffmpeg[3261:203346] <CMVideoFormatDescription
0x7f8b22610320 [0x7fff7bfb7cf0]> {
mediaType:'vide'
mediaSubType:'2vuy'
mediaSpecific: {
codecType: '2vuy' dimensions: 640 x 480
}
extensions: {<CFBasicHash 0x7f8b22610350 [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 0x1068a1870 [0x7fff7bfb7cf0]>{contents =
"Component Video - CCIR-601 uyvy"}
}
}
}
2014-11-04 14:53:57.558 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.558 ffmpeg[3261:203346] enog
2014-11-04 14:53:57.558 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.558 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.559 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.559 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.559 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.559 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.559 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.559 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.559 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.559 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.560 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.560 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.560 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.560 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.560 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.560 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.560 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.560 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.560 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.561 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.561 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.561 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.561 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.561 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.561 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.561 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.561 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.561 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.561 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.561 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.562 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.562 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.562 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.562 ffmpeg[3261:203346] grrf
2014-11-04 14:53:57.562 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.562 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.562 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.562 ffmpeg[3261:203346] grrf
2014-11-04 14:53:57.562 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.562 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.563 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.563 ffmpeg[3261:203346] trfn
2014-11-04 14:53:57.563 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.563 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.563 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.563 ffmpeg[3261:203346] trfm
2014-11-04 14:53:57.563 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.563 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.563 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.564 ffmpeg[3261:203346] trfn
2014-11-04 14:53:57.564 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.564 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.564 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.564 ffmpeg[3261:203346] dulp
2014-11-04 14:53:57.564 ffmpeg[3261:203346] tpni
2014-11-04 14:53:57.564 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.564 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.564 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.564 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.565 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.565 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.565 ffmpeg[3261:203346] enog
2014-11-04 14:53:57.565 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.565 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.565 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.565 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.565 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.565 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.565 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.566 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.566 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.566 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.566 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.566 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.566 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.566 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.566 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.566 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.566 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.566 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.567 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.567 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.567 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.567 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.567 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.567 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.567 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.567 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.567 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.568 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.568 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.568 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.568 ffmpeg[3261:203346] elt 0
2014-11-04 14:53:57.568 ffmpeg[3261:203346] MyPlugObjectSetPropertyData
2014-11-04 14:53:57.568 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.568 ffmpeg[3261:203346] grrf
2014-11-04 14:53:57.568 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.568 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.568 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.569 ffmpeg[3261:203346] grrf
2014-11-04 14:53:57.569 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.569 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.569 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.569 ffmpeg[3261:203346] trfn
2014-11-04 14:53:57.569 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.569 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.569 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.569 ffmpeg[3261:203346] trfm
2014-11-04 14:53:57.569 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.569 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.570 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.570 ffmpeg[3261:203346] trfn
2014-11-04 14:53:57.570 ffmpeg[3261:203346] bolg
2014-11-04 14:53:57.570 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.570 ffmpeg[3261:203346] MyPlugObjectHasProperty
2014-11-04 14:53:57.570 ffmpeg[3261:203346] dulp
2014-11-04 14:53:57.570 ffmpeg[3261:203346] tpni
2014-11-04 14:53:57.570 ffmpeg[3261:203346] 0
2014-11-04 14:53:57.570 ffmpeg[3261:203346]
MyPlugObjectGetPropertyDataSize
2014-11-04 14:53:57.570 ffmpeg[3261:203346] sel dnwo
2014-11-04 14:53:57.571 ffmpeg[3261:203346] scope bolg
2014-11-04 14:53:57.571 ffmpeg[3261:203346] elt 0
[avfoundation @ 0x7f8b23817000] Selected pixel format (yuv420p) is not
supported by the input device.
[avfoundation @ 0x7f8b23817000] Supported pixel formats:
[avfoundation @ 0x7f8b23817000] uyvy422
[avfoundation @ 0x7f8b23817000] yuyv422
[avfoundation @ 0x7f8b23817000] nv12
[avfoundation @ 0x7f8b23817000] 0rgb
[avfoundation @ 0x7f8b23817000] bgr0
[avfoundation @ 0x7f8b23817000] Overriding selected pixel format to use
uyvy422 instead.
[avfoundation @ 0x7f8b23817000] Stream #0: not enough frames to estimate
rate; consider increasing probesize
Input #0, avfoundation, from '':
Duration: N/A, start: 0.845742, 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.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'out.avi':
Metadata:
ISFT : Lavf56.12.100
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 426x240,
q=2-31, 200 kb/s, 60 fps, 60 tbn, 60 tbc
Metadata:
encoder : Lavc56.10.102 mpeg4
Stream #0:1: Audio: mp3 (libmp3lame) (U[0][0][0] / 0x0055), 44100 Hz,
stereo, fltp
Metadata:
encoder : Lavc56.10.102 libmp3lame
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
Stream #0:1 -> #0:1 (pcm_f32le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
frame= 10 fps=0.0 q=2.0 size= 175kB time=00:00:02.90 bitrate=
495.7kbits/sframe= 18 fps= 18 q=2.0 size= 266kB time=00:00:03.43
bitrate= 634.1kbits/sframe= 26 fps= 17 q=2.0 size= 306kB
time=00:00:03.96 bitrate= 631.2kbits/sframe= 33 fps= 16 q=2.0 size=
572kB time=00:00:04.43 bitrate=1056.8kbits/sframe= 41 fps= 16 q=2.0
size= 857kB time=00:00:04.96 bitrate=1413.5kbits/sframe= 49 fps= 16
q=2.0 size= 976kB time=00:00:05.50 bitrate=1454.4kbits/sframe= 56
fps= 16 q=2.0 size= 1383kB time=00:00:05.96 bitrate=1899.0kbits/sframe=
64 fps= 16 q=2.0 size= 1869kB time=00:00:06.50
bitrate=2355.9kbits/sframe= 72 fps= 16 q=2.0 size= 2164kB
time=00:00:07.03 bitrate=2520.5kbits/sframe= 79 fps= 15 q=2.0 size=
2584kB time=00:00:07.50 bitrate=2822.4kbits/sframe= 87 fps= 15 q=2.0
size= 2922kB time=00:00:08.03 bitrate=2979.6kbits/sframe= 95 fps= 15
q=2.0 size= 3269kB time=00:00:08.56 bitrate=3125.7kbits/sframe= 102
fps= 15 q=2.0 size= 3407kB time=00:00:09.01 bitrate=3095.4kbits/sframe=
110 fps= 15 q=2.0 size= 3449kB time=00:00:09.56
bitrate=2953.2kbits/sframe= 117 fps= 15 q=2.0 Lsize= 3608kB
time=00:00:10.05 bitrate=2938.7kbits/s
video:3456kB audio:119kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.919289%
2014-11-04 14:54:08.233 ffmpeg[3261:203346] MyPlugTeardown
2014-11-04 14:54:08.233 ffmpeg[3261:203346] MyPlugTeardown
HDLs-MacBook-Pro:Desktop HDL$
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4080#comment:11>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list