[FFmpeg-user] ffmpeg - avfoundation Audio stutters / sounds broken with screen capture [sample, config, output included]

kevin kevincastiglione at gmail.com
Mon Apr 27 15:12:03 CEST 2015


On Mon, Apr 27, 2015 at 5:11 AM, Matthieu Bouron <matthieu.bouron at gmail.com>
wrote:

> On Mon, Apr 27, 2015 at 1:49 PM, Carl Eugen Hoyos <cehoyos at ag.or.at>
> wrote:
>
> > Matthieu Bouron <matthieu.bouron <at> gmail.com> writes:
> >
> > > Does reverting the following commit
> > > 1e9d035b91100b75edc964914df638863f188a4f helps you ?
> >
> > I cannot find this revision...
> >
>
>
> Sorry this local one was pointing to the revert. The right one is
> cf16b459a873b990efc10d93e9912ab01b8a0fba
> "libavdevice/avfoundation: use pts/dts provided by the CMSampleBuffer API"


No this does not fix it. Output file, command, git log below:
./ffmpeg -f avfoundation -video_size 640x480 -framerate 30 -i "1:0" -c:v
mpeg4 -c:a aac -strict -2 -r 30 ffmpeg-pts-reverted.mp4

https://www.dropbox.com/s/72335m3cxajhkbn/ffmpeg-pts-reverted.mp4?dl=1




./ffmpeg -f avfoundation -video_size 640x480 -framerate 30 -i "1:0" -c:v
mpeg4 -c:a aac -strict -2 -r 30 ffmpeg-pts-reverted.mp4
ffmpeg version N-71731-g3d179b4 Copyright (c) 2000-2015 the FFmpeg
developers
  built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM
3.6.0svn)
  configuration:
  libavutil      54. 23.101 / 54. 23.101
  libavcodec     56. 35.101 / 56. 35.101
  libavformat    56. 31.100 / 56. 31.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 14.100 /  5. 14.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
[avfoundation @ 0x7feb71009200] Selected pixel format (yuv420p) is not
supported by the input device.
[avfoundation @ 0x7feb71009200] Supported pixel formats:
[avfoundation @ 0x7feb71009200]   uyvy422
[avfoundation @ 0x7feb71009200]   yuyv422
[avfoundation @ 0x7feb71009200]   nv12
[avfoundation @ 0x7feb71009200]   0rgb
[avfoundation @ 0x7feb71009200]   bgr0
[avfoundation @ 0x7feb71009200] Overriding selected pixel format to use
uyvy422 instead.
[avfoundation @ 0x7feb71009200] Stream #0: not enough frames to estimate
rate; consider increasing probesize
Input #0, avfoundation, from '1:0':
  Duration: N/A, start: 1.313855, bitrate: N/A
    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
Output #0, mp4, to 'ffmpeg-pts-reverted.mp4':
  Metadata:
    encoder         : Lavf56.31.100
    Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1440x900,
q=2-31, 200 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.35.101 mpeg4
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
fltp, 128 kb/s
    Metadata:
      encoder         : Lavc56.35.101 aac
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
  Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (native))
Press [q] to stop, [?] for help
frame=  204 fps= 30 q=31.0 Lsize=    1388kB time=00:00:06.80
bitrate=1671.1kbits/s
video:1305kB audio:76kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.509922%









git log
commit 3d179b4b720c4c0419330cfd2424b96da34961e8
Author: kevin <>
Date:   Mon Apr 27 05:43:36 2015 -0700

    Revert "libavdevice/avfoundation: use pts/dts provided by the
CMSampleBuffer API"

    This reverts commit cf16b459a873b990efc10d93e9912ab01b8a0fba.

commit 4a7b50679db3a3c902d459745f2f1f622e27eab6
Author: ZhouXiaoyong <zhouxiaoyong at loongson.cn>
Date:   Mon Apr 27 10:40:29 2015 +0800

    makefile: add Loongson-3 support

    Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

commit 8a03d428f1759a7d3af505ab747662747360ea60


More information about the ffmpeg-user mailing list