[FFmpeg-trac] #4080(avdevice:new): AV Foundation frame rate setting ignored

FFmpeg trac at avcodec.org
Tue Nov 4 18:55:21 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):

 I have a new output file that goes beyond 15 FPS, yet the playback speed
 is absurdly fast now:
 https://www.dropbox.com/s/aa5umf9729h3u8c/out.mov?dl=0


 {{{
 Last login: Tue Nov  4 13:35:37 on ttys001
 HDLs-MacBook-Pro:~ HDL$ cd ~/Desktop
 HDLs-MacBook-Pro:Desktop HDL$ ./ffmpeg -f avfoundation -r 60
 -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 13:38:05.334 ffmpeg[2662:164994] alloc
 2014-11-04 13:38:05.334 ffmpeg[2662:164994] query 2
 2014-11-04 13:38:05.334 ffmpeg[2662:164994] release 2
 2014-11-04 13:38:05.334 ffmpeg[2662:164994] **
 MyPlugInitializeWithObjectID
 2014-11-04 13:38:05.335 ffmpeg[2662:164994] init
 2014-11-04 13:38:05.335 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.335 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.335 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.412 ffmpeg[2662:164994] <CMVideoFormatDescription
 0x7fff1bf14550 [0x7fff7bfb7cf0]> {
         mediaType:'vide'
         mediaSubType:'BGRA'
         mediaSpecific: {
                 codecType: 'BGRA'               dimensions: 640 x 480
         }
         extensions: {<CFBasicHash 0x7fff1bf14580 [0x7fff7bfb7cf0]>{type =
 immutable dict, count = 4,
 entries =>
         1 : <CFString 0x7fff7c3e2f08 [0x7fff7bfb7cf0]>{contents =
 "CVFieldCount"} = <CFNumber 0x137 [0x7fff7bfb7cf0]>{value = +1, type =
 kCFNumberSInt64Type}
         2 : <CFString 0x10b01e7f0 [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 0x10b01e810 [0x7fff7bfb7cf0]>{contents =
 "Component Video - CCIR-601 RGB"}
 }
 }
 }
 2014-11-04 13:38:05.413 ffmpeg[2662:164994] alloc
 2014-11-04 13:38:05.413 ffmpeg[2662:164994] query 2
 2014-11-04 13:38:05.413 ffmpeg[2662:164994] release 2
 2014-11-04 13:38:05.413 ffmpeg[2662:164994] **
 MyPlugInitializeWithObjectID
 2014-11-04 13:38:05.413 ffmpeg[2662:164994] init
 2014-11-04 13:38:05.413 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.413 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.413 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.414 ffmpeg[2662:164994] <CMVideoFormatDescription
 0x7fff1bf14bb0 [0x7fff7bfb7cf0]> {
         mediaType:'vide'
         mediaSubType:'2vuy'
         mediaSpecific: {
                 codecType: '2vuy'               dimensions: 640 x 480
         }
         extensions: {<CFBasicHash 0x7fff1bf14be0 [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 0x10b01e870 [0x7fff7bfb7cf0]>{contents =
 "Component Video - CCIR-601 uyvy"}
 }
 }
 }
 2014-11-04 13:38:05.516 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.517 ffmpeg[2662:164994] enog
 2014-11-04 13:38:05.517 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.517 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.517 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.517 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.517 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.517 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.517 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.517 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.518 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.518 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.518 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.518 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.518 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.518 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.518 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.518 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.518 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.518 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.519 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.519 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.519 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.519 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.519 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.519 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.519 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.519 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.519 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.519 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] grrf
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.520 ffmpeg[2662:164994] grrf
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] trfn
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] trfm
 2014-11-04 13:38:05.521 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] trfn
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] dulp
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] tpni
 2014-11-04 13:38:05.522 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.522 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] enog
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.523 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.524 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.524 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.524 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.524 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.524 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.524 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.524 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.524 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.524 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.524 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.524 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.525 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.525 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.525 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.525 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.525 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.525 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.525 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.525 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.525 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.526 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.526 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.526 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.526 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.526 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.526 ffmpeg[2662:164994] elt 0
 2014-11-04 13:38:05.526 ffmpeg[2662:164994] MyPlugObjectSetPropertyData
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] grrf
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] grrf
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.527 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] trfn
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] trfm
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.528 ffmpeg[2662:164994] trfn
 2014-11-04 13:38:05.529 ffmpeg[2662:164994] bolg
 2014-11-04 13:38:05.529 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.529 ffmpeg[2662:164994] MyPlugObjectHasProperty
 2014-11-04 13:38:05.529 ffmpeg[2662:164994] dulp
 2014-11-04 13:38:05.529 ffmpeg[2662:164994] tpni
 2014-11-04 13:38:05.529 ffmpeg[2662:164994] 0
 2014-11-04 13:38:05.529 ffmpeg[2662:164994]
 MyPlugObjectGetPropertyDataSize
 2014-11-04 13:38:05.529 ffmpeg[2662:164994] sel dnwo
 2014-11-04 13:38:05.530 ffmpeg[2662:164994] scope bolg
 2014-11-04 13:38:05.530 ffmpeg[2662:164994] elt 0
 [avfoundation @ 0x7fff1c806000] Selected pixel format (yuv420p) is not
 supported by the input device.
 [avfoundation @ 0x7fff1c806000] Supported pixel formats:
 [avfoundation @ 0x7fff1c806000]   uyvy422
 [avfoundation @ 0x7fff1c806000]   yuyv422
 [avfoundation @ 0x7fff1c806000]   nv12
 [avfoundation @ 0x7fff1c806000]   0rgb
 [avfoundation @ 0x7fff1c806000]   bgr0
 [avfoundation @ 0x7fff1c806000] Overriding selected pixel format to use
 uyvy422 instead.
 [avfoundation @ 0x7fff1c806000] Stream #0: not enough frames to estimate
 rate; consider increasing probesize
 Input #0, avfoundation, from '':
   Duration: N/A, start: 0.852216, 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
 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, 60 fps, 15360 tbn, 60 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
 frame=   11 fps=0.0 q=2.0 size=     140kB time=00:00:08.59 bitrate=
 133.7kbits/sframe=   19 fps= 19 q=2.0 size=     224kB time=00:00:09.11
 bitrate= 201.8kbits/sframe=   26 fps= 17 q=2.0 size=     353kB
 time=00:00:09.62 bitrate= 300.7kbits/sframe=   34 fps= 17 q=2.0 size=
 568kB time=00:00:10.11 bitrate= 460.2kbits/sframe=   41 fps= 16 q=2.0
 size=     970kB time=00:00:10.64 bitrate= 746.4kbits/sframe=   49 fps= 16
 q=2.0 size=    1234kB time=00:00:11.15 bitrate= 906.3kbits/sframe=   57
 fps= 16 q=2.0 size=    1460kB time=00:00:11.64 bitrate=1027.1kbits/sframe=
 64 fps= 16 q=2.0 size=    1679kB time=00:00:12.17
 bitrate=1129.3kbits/sframe=   72 fps= 16 q=2.0 size=    2085kB
 time=00:00:12.68 bitrate=1346.7kbits/sframe=   80 fps= 16 q=2.0 size=
 2563kB time=00:00:13.17 bitrate=1592.8kbits/sframe=   87 fps= 16 q=2.0
 size=    2907kB time=00:00:13.71 bitrate=1736.5kbits/sframe=   95 fps= 16
 q=2.0 size=    3369kB time=00:00:14.19 bitrate=1944.2kbits/sframe=  103
 fps= 16 q=2.0 size=    3747kB time=00:00:14.70 bitrate=2087.3kbits/sframe=
 110 fps= 15 q=2.0 size=    4101kB time=00:00:15.21
 bitrate=2207.7kbits/sframe=  118 fps= 15 q=2.0 size=    4384kB
 time=00:00:15.72 bitrate=2283.7kbits/sframe=  126 fps= 15 q=2.0 size=
 4542kB time=00:00:16.24 bitrate=2290.5kbits/sframe=  133 fps= 15 q=2.0
 size=    4643kB time=00:00:16.74 bitrate=2271.2kbits/sframe=  139 fps= 15
 q=2.0 Lsize=    4856kB time=00:00:17.17 bitrate=2316.5kbits/s
 video:4708kB audio:141kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.135972%
 2014-11-04 13:38:23.304 ffmpeg[2662:164994] MyPlugTeardown
 2014-11-04 13:38:23.304 ffmpeg[2662:164994] MyPlugTeardown
 HDLs-MacBook-Pro:Desktop HDL$
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4080#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list