ffmpeg - avfoundation Audio stutters / sounds broken with screen capture [sample, config, output included]
I am trying to do a basic screen capture in OS X [10.10.3] with audio from mic using avfoundation. The recorded audio is stuttering, breaks, or there is short bursts. This is the command I use [ffmpeg installed with brew, config and output below] ffmpeg -f avfoundation -i "1:0" -r 25 -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 screen.mp4 I tried different codec, bitrate, and audio is broken in all. Here is link to the recorded file in which audio is broken: play on web: https://www.dropbox.com/s/p7ej68mrhi2te8r/screen.mp4?dl=0 downloadable link: https://www.dropbox.com/s/p7ej68mrhi2te8r/screen.mp4?dl=1 However if I capture with FaceTime camera, the audio is great and works fine. Can you please suggest what I can do to fix the audio with screen capture. Thank you for a great library ffmpeg! Please let me know if I need to add any other info. Output of command: ffmpeg -f avfoundation -i "1:0" -r 25 -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 screen.mp4 ffmpeg version 2.6.1 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: --prefix=/usr/local/Cellar/ffmpeg/2.6.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libfaac --enable-libass --enable-ffplay --enable-libfdk-aac --enable-openssl --enable-libopus --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [avfoundation @ 0x7f9b89001400] Selected pixel format (yuv420p) is not supported by the input device. [avfoundation @ 0x7f9b89001400] Supported pixel formats: [avfoundation @ 0x7f9b89001400] uyvy422 [avfoundation @ 0x7f9b89001400] yuyv422 [avfoundation @ 0x7f9b89001400] nv12 [avfoundation @ 0x7f9b89001400] 0rgb [avfoundation @ 0x7f9b89001400] bgr0 [avfoundation @ 0x7f9b89001400] Overriding selected pixel format to use uyvy422 instead. [avfoundation @ 0x7f9b89001400] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, avfoundation, from '1:0': Duration: N/A, start: 0.368389, 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 No pixel format specified, yuv422p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x7f9b89103200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 0x7f9b89103200] profile High 4:2:2, level 3.0, 4:2:2 8-bit [libx264 @ 0x7f9b89103200] 264 - core 144 r2533 c8a773e - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'screen.mp4': Metadata: encoder : Lavf56.25.101 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p, 640x480, q=-1--1, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc56.26.100 libx264 Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc56.26.100 libfdk_aac Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help frame= 255 fps= 25 q=-1.0 Lsize= 286kB time=00:00:10.19 bitrate= 229.8kbits/s dup=102 drop=0 video:137kB audio:136kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 4.737433% [libx264 @ 0x7f9b89103200] frame I:2 Avg QP:20.52 size: 46726 [libx264 @ 0x7f9b89103200] frame P:65 Avg QP:23.32 size: 640 [libx264 @ 0x7f9b89103200] frame B:188 Avg QP:31.27 size: 22 [libx264 @ 0x7f9b89103200] consecutive B-frames: 1.6% 0.0% 1.2% 97.3% [libx264 @ 0x7f9b89103200] mb I I16..4: 15.7% 48.2% 36.1% [libx264 @ 0x7f9b89103200] mb P I16..4: 0.0% 0.0% 0.4% P16..4: 0.8% 0.1% 0.0% 0.0% 0.0% skip:98.7% [libx264 @ 0x7f9b89103200] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.2% 0.0% 0.0% direct: 0.0% skip:99.8% L0:38.8% L1:61.2% BI: 0.0% [libx264 @ 0x7f9b89103200] 8x8 transform intra:43.0% inter:2.5% [libx264 @ 0x7f9b89103200] coded y,uvDC,uvAC intra: 37.2% 37.7% 33.9% inter: 0.0% 0.1% 0.0% [libx264 @ 0x7f9b89103200] i16 v,h,dc,p: 60% 40% 0% 0% [libx264 @ 0x7f9b89103200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 87% 8% 3% 0% 0% 0% 0% 0% 1% [libx264 @ 0x7f9b89103200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 39% 12% 3% 3% 3% 6% 3% 8% [libx264 @ 0x7f9b89103200] i8c dc,h,v,p: 74% 11% 14% 1% [libx264 @ 0x7f9b89103200] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x7f9b89103200] ref P L0: 73.8% 26.2% [libx264 @ 0x7f9b89103200] ref B L0: 95.1% 4.9% [libx264 @ 0x7f9b89103200] ref B L1: 95.1% 4.9% [libx264 @ 0x7f9b89103200] kb/s:109.18 live@MAC:~$ du -h screen.mp4 288K screen.mp4
Hi Kevin, On Sat, Apr 25, 2015 at 20:42:12 -0700, kevin wrote:
The recorded audio is stuttering, breaks, or there is short bursts.
ffmpeg -f avfoundation -i "1:0" -r 25 -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 screen.mp4
What happens to the audio if you disable the capturing of video? (Something like "-vn".) Just an idea of something to test. Furthermore, instead of using "-r", avfoundation should recently support the input option "-framerate" (to be set before "-i"). This has nothing to do with your issue. I'm not at all sure any of this will help you though. I'm just thinking out loud. Moritz
Hi Moritz On Sun, Apr 26, 2015 at 3:14 AM, Moritz Barsnick <barsnick@gmx.net> wrote:
Hi Kevin,
On Sat, Apr 25, 2015 at 20:42:12 -0700, kevin wrote:
The recorded audio is stuttering, breaks, or there is short bursts.
ffmpeg -f avfoundation -i "1:0" -r 25 -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 screen.mp4
What happens to the audio if you disable the capturing of video? (Something like "-vn".) Just an idea of something to test.
With -vn audio quality is great, no problem at all. Furthermore, as mentioned in my first email, with -i "0:0" [FaceTime camera and mic] both audio and video is great. The problem is only with -i "1:0". Furthermore, instead of using "-r", avfoundation should recently
support the input option "-framerate" (to be set before "-i"). This has nothing to do with your issue
If I add -framerate before "-i" and also before -f it exits with error message option not found: ffmpeg -f avfoundation -framerate 25 -i "1:0" -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 -vn screen.mp4 ffmpeg -framerate 25 -f avfoundation -i "1:0" -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 -vn screen.mp4 Option framerate not found. Full output at end of email.
I'm not at all sure any of this will help you though. I'm just thinking out loud.
Thank you very much for replying and helping, I really appreciate it. FFmpeg is amazing and so is the community around it. ffmpeg -f avfoundation -framerate 25 -i "1:0" -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 -vn screen.mp4 ffmpeg version 2.6.1 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: --prefix=/usr/local/Cellar/ffmpeg/2.6.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libfaac --enable-libass --enable-ffplay --enable-libfdk-aac --enable-openssl --enable-libopus --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [avfoundation @ 0x7fd77400da00] Selected pixel format (yuv420p) is not supported by the input device. [avfoundation @ 0x7fd77400da00] Supported pixel formats: [avfoundation @ 0x7fd77400da00] uyvy422 [avfoundation @ 0x7fd77400da00] yuyv422 [avfoundation @ 0x7fd77400da00] nv12 [avfoundation @ 0x7fd77400da00] 0rgb [avfoundation @ 0x7fd77400da00] bgr0 [avfoundation @ 0x7fd77400da00] Overriding selected pixel format to use uyvy422 instead. Option framerate not found.
On Sun, Apr 26, 2015 at 06:56:18 -0700, kevin wrote:
Furthermore, as mentioned in my first email, with -i "0:0" [FaceTime camera and mic] both audio and video is great. The problem is only with -i "1:0".
Just to confirm (though I know that's what "N:0" means): So you're using the same audio input in both cases?
With -vn audio quality is great, no problem at all.
Interesting. So it seems like a performance or sync problem, though I don't really see why. You might want to experiment whether a fast x264 preset changes anything.
Option framerate not found.
Okay, you version of ffmpeg is too old. I think this option was only added in March of this year, I don't know how that maps to ffmpeg releases like yours. Moritz
On Sun, Apr 26, 2015 at 9:05 AM, Moritz Barsnick <barsnick@gmx.net> wrote:
On Sun, Apr 26, 2015 at 06:56:18 -0700, kevin wrote:
Furthermore, as mentioned in my first email, with -i "0:0" [FaceTime camera and mic] both audio and video is great. The problem is only with -i "1:0".
Just to confirm (though I know that's what "N:0" means): So you're using the same audio input in both cases?
Yes, I am using same audio in put in both cases the built in microphone, and there are no other attached devices.
With -vn audio quality is great, no problem at all. Interesting. So it seems like a performance or sync problem, though I don't really see why. You might want to experiment whether a fast x264 preset changes anything.
Yes it does sound like a sync / performance problem. I -preset fast doesn't help also.
Le sextidi 6 floréal, an CCXXIII, kevin a écrit :
I am trying to do a basic screen capture in OS X [10.10.3] with audio from mic using avfoundation. The recorded audio is stuttering, breaks, or there is short bursts.
This is the command I use [ffmpeg installed with brew, config and output below]
ffmpeg -f avfoundation -i "1:0" -r 25 -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 screen.mp4
I had a similar issue with a different situation. Have you tried a different VIDEO codec as well, like plain mpeg4 with the native implementation? Regards, -- Nicolas George
On Sun, Apr 26, 2015 at 9:14 AM, Nicolas George <george@nsup.org> wrote:
Le sextidi 6 floréal, an CCXXIII, kevin a écrit :
I am trying to do a basic screen capture in OS X [10.10.3] with audio from mic using avfoundation. The recorded audio is stuttering, breaks, or there is short bursts.
This is the command I use [ffmpeg installed with brew, config and output below]
ffmpeg -f avfoundation -i "1:0" -r 25 -c:v libx264 -preset fast -crf 22 -c:a libfdk_aac -b:a 128k -ar 44100 -s 640x480 screen.mp4
I had a similar issue with a different situation. Have you tried a different VIDEO codec as well, like plain mpeg4 with the native implementation?
I am a novice, could you please give the command for me to try it? Happy to try it and give any information to fix it.
Le septidi 7 floréal, an CCXXIII, kevin a écrit :
I am a novice, could you please give the command for me to try it?
-c:v mpeg4 and remove all other options to the video codec (preset, crf). Regards, -- Nicolas George
On Sun, Apr 26, 2015 at 11:53 AM, Nicolas George <george@nsup.org> wrote:
Le septidi 7 floréal, an CCXXIII, kevin a écrit :
I am a novice, could you please give the command for me to try it?
-c:v mpeg4 and remove all other options to the video codec (preset, crf).
I tried first with fdk_aac, it sounds a little better but still skips a lot and sounds out of sync ffmpeg -f avfoundation -i "1:0" -r 25 -c:v mpeg4 -c:a libfdk_aac -b:a 128k -ar 44100 screen-default-mpeg4-fdk-aac.mp4 Here is output file https://www.dropbox.com/s/gizfnpofetfhvu6/screen-default-mpeg4-fdk-aac.mp4?d... I also tried without fdk_aac and similar output: skips a lot and sounds out of sync ffmpeg -f avfoundation -i "1:0" -r 25 -c:v mpeg4 screen-nofdk.mp4 Here is output file: https://www.dropbox.com/s/z9e3mes6a98vtd4/screen-default-mpeg4-nofdk.mp4?dl=...
On Sun, Apr 26, 2015 at 12:21 PM, kevin <kevincastiglione@gmail.com> wrote:
On Sun, Apr 26, 2015 at 11:53 AM, Nicolas George <george@nsup.org> wrote:
Le septidi 7 floréal, an CCXXIII, kevin a écrit :
I am a novice, could you please give the command for me to try it?
-c:v mpeg4 and remove all other options to the video codec (preset, crf).
I tried first with fdk_aac, it sounds a little better but still skips a lot and sounds out of sync
ffmpeg -f avfoundation -i "1:0" -r 25 -c:v mpeg4 -c:a libfdk_aac -b:a 128k -ar 44100 screen-default-mpeg4-fdk-aac.mp4
Here is output file
https://www.dropbox.com/s/gizfnpofetfhvu6/screen-default-mpeg4-fdk-aac.mp4?d...
I also tried without fdk_aac and similar output: skips a lot and sounds out of sync ffmpeg -f avfoundation -i "1:0" -r 25 -c:v mpeg4 screen-nofdk.mp4
Here is output file:
https://www.dropbox.com/s/z9e3mes6a98vtd4/screen-default-mpeg4-nofdk.mp4?dl=...
complete ffmpeg output/log of two commands ffmpeg -f avfoundation -i "1:0" -r 25 -c:v mpeg4 -c:a libfdk_aac -b:a 128k -ar 44100 screen-default-mpeg4-fdk-aac.mp4 ffmpeg version 2.6.1 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: --prefix=/usr/local/Cellar/ffmpeg/2.6.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libfaac --enable-libass --enable-ffplay --enable-libfdk-aac --enable-openssl --enable-libopus --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [avfoundation @ 0x7ffeb980da00] Selected pixel format (yuv420p) is not supported by the input device. [avfoundation @ 0x7ffeb980da00] Supported pixel formats: [avfoundation @ 0x7ffeb980da00] uyvy422 [avfoundation @ 0x7ffeb980da00] yuyv422 [avfoundation @ 0x7ffeb980da00] nv12 [avfoundation @ 0x7ffeb980da00] 0rgb [avfoundation @ 0x7ffeb980da00] bgr0 [avfoundation @ 0x7ffeb980da00] Overriding selected pixel format to use uyvy422 instead. [avfoundation @ 0x7ffeb980da00] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, avfoundation, from '1:0': Duration: N/A, start: 1.352485, 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 'screen-default-mpeg4-fdk-aac.mp4': Metadata: encoder : Lavf56.25.101 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1440x900, q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc56.26.100 mpeg4 Stream #0:1: Audio: aac (libfdk_aac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc56.26.100 libfdk_aac Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native)) Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help frame= 176 fps= 25 q=31.0 Lsize= 1488kB time=00:00:07.10 bitrate=1714.5kbits/s dup=69 drop=0 video:1391kB audio:89kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.524834% ffmpeg -f avfoundation -i "1:0" -r 25 -c:v mpeg4 screen-nofdk.mp4 ffmpeg version 2.6.1 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: --prefix=/usr/local/Cellar/ffmpeg/2.6.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libfaac --enable-libass --enable-ffplay --enable-libfdk-aac --enable-openssl --enable-libopus --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 [avfoundation @ 0x7ffb1a80da00] Selected pixel format (yuv420p) is not supported by the input device. [avfoundation @ 0x7ffb1a80da00] Supported pixel formats: [avfoundation @ 0x7ffb1a80da00] uyvy422 [avfoundation @ 0x7ffb1a80da00] yuyv422 [avfoundation @ 0x7ffb1a80da00] nv12 [avfoundation @ 0x7ffb1a80da00] 0rgb [avfoundation @ 0x7ffb1a80da00] bgr0 [avfoundation @ 0x7ffb1a80da00] Overriding selected pixel format to use uyvy422 instead. [avfoundation @ 0x7ffb1a80da00] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, avfoundation, from '1:0': Duration: N/A, start: 1.343998, 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 'screen-nofdk.mp4': Metadata: encoder : Lavf56.25.101 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1440x900, q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc56.26.100 mpeg4 Stream #0:1: Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s Metadata: encoder : Lavc56.26.100 libfaac Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native)) Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (libfaac)) Press [q] to stop, [?] for help frame= 159 fps= 25 q=31.0 Lsize= 1416kB time=00:00:06.36 bitrate=1824.2kbits/s dup=64 drop=2 video:1335kB audio:74kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.496789%
kevin <kevincastiglione <at> gmail.com> writes:
ffmpeg -f avfoundation -i "1:0" -r 25 -c:v mpeg4 -c:a libfdk_aac -b:a 128k -ar 44100 screen-default-mpeg4-fdk-aac.mp4 ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers
Please test current FFmpeg git head with "framerate" and please test if a smaller framerate makes a difference. While at it, please use "-acodec aac -strict -2" if it allows to reproduce the issue. Is -ar 44100 needed to reproduce the issue? If not, please remove it. Carl Eugen
On Sun, Apr 26, 2015 at 2:04 PM, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
kevin <kevincastiglione <at> gmail.com> writes:
ffmpeg -f avfoundation -i "1:0" -r 25 -c:v mpeg4 -c:a libfdk_aac -b:a 128k -ar 44100 screen-default-mpeg4-fdk-aac.mp4 ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers
Please test current FFmpeg git head with "framerate" and please test if a smaller framerate makes a difference.
While at it, please use "-acodec aac -strict -2" if it allows to reproduce the issue.
I tried 3 framerates: 30, 25, and 15. All three have the same problem. Here are the commands and the corresponding files produced. The complete output is at the end of this email. Please let me know if I should try any other command or with other options. framerate: 30 ./ffmpeg -f avfoundation -video_size 640x480 -framerate 30 -i "1:0" -c:v mpeg4 -c:a aac -strict -2 -r 30 ffmpeg-git-head-30.mp4 https://www.dropbox.com/s/hf6zqxwq7y394yd/ffmpeg-git-head-30.mp4?dl=1 framerate:25 ./ffmpeg -f avfoundation -video_size 640x480 -framerate 25 -i "1:0" -c:v mpeg4 -c:a aac -strict -2 -r 25 ffmpeg-git-head-25.mp4 https://www.dropbox.com/s/k1ijq5zyzfqgewf/ffmpeg-git-head-25.mp4?dl=1 framerate:15 ./ffmpeg -f avfoundation -video_size 640x480 -framerate 15 -i "1:0" -c:v mpeg4 -c:a aac -strict -2 -r 15 ffmpeg-git-head-15.mp4 https://www.dropbox.com/s/0zptd9e8alvf050/ffmpeg-git-head-15.mp4?dl=1 Is -ar 44100 needed to reproduce the issue? If not,
please remove it.
Removed this option. And still the same problem. Hardware info: MacBook Air (13-inch, Late 2010) Processor: 2.13 GHz Intel Core 2 Duo Memory: 4 GB 1067 MHz DDR3 FFmpeg output: Framerate 30: ./ffmpeg -f avfoundation -video_size 640x480 -framerate 30 -i "1:0" -c:v mpeg4 -c:a aac -strict -2 -r 30 ffmpeg-git-head-30.mp4 ffmpeg version N-71716-g7b94a2f-HootScreenCapture 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: --prefix=/Users/live/src/github/ffmpeg-static/target --arch=x86_64 --as=yasm --extra-version=HootScreenCapture --disable-shared --enable-static --enable-gpl --enable-nonfree --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libx264 --enable-bzlib --enable-zlib --enable-version3 --enable-libfdk-aac --enable-filters --enable-runtime-cpudetect --disable-sdl --enable-nonfree --enable-libfdk-aac 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 libpostproc 53. 3.100 / 53. 3.100 [avfoundation @ 0x7fb21980da00] Selected pixel format (yuv420p) is not supported by the input device. [avfoundation @ 0x7fb21980da00] Supported pixel formats: [avfoundation @ 0x7fb21980da00] uyvy422 [avfoundation @ 0x7fb21980da00] yuyv422 [avfoundation @ 0x7fb21980da00] nv12 [avfoundation @ 0x7fb21980da00] 0rgb [avfoundation @ 0x7fb21980da00] bgr0 [avfoundation @ 0x7fb21980da00] Overriding selected pixel format to use uyvy422 instead. [avfoundation @ 0x7fb21980da00] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, avfoundation, from '1:0': Duration: N/A, start: 11862.478333, 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-git-head-30.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= 270 fps= 30 q=31.0 Lsize= 2030kB time=00:00:09.06 bitrate=1835.8kbits/s video:1922kB audio:100kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.403519% Framerate:25 ./ffmpeg -f avfoundation -video_size 640x480 -framerate 25 -i "1:0" -c:v mpeg4 -c:a aac -strict -2 -r 25 ffmpeg-git-head-25.mp4 ffmpeg version N-71716-g7b94a2f-HootScreenCapture 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: --prefix=/Users/live/src/github/ffmpeg-static/target --arch=x86_64 --as=yasm --extra-version=HootScreenCapture --disable-shared --enable-static --enable-gpl --enable-nonfree --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libx264 --enable-bzlib --enable-zlib --enable-version3 --enable-libfdk-aac --enable-filters --enable-runtime-cpudetect --disable-sdl --enable-nonfree --enable-libfdk-aac 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 libpostproc 53. 3.100 / 53. 3.100 [avfoundation @ 0x7fcfe181bc00] Selected pixel format (yuv420p) is not supported by the input device. [avfoundation @ 0x7fcfe181bc00] Supported pixel formats: [avfoundation @ 0x7fcfe181bc00] uyvy422 [avfoundation @ 0x7fcfe181bc00] yuyv422 [avfoundation @ 0x7fcfe181bc00] nv12 [avfoundation @ 0x7fcfe181bc00] 0rgb [avfoundation @ 0x7fcfe181bc00] bgr0 [avfoundation @ 0x7fcfe181bc00] Overriding selected pixel format to use uyvy422 instead. [avfoundation @ 0x7fcfe181bc00] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, avfoundation, from '1:0': Duration: N/A, start: 11911.471833, 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-git-head-25.mp4': Metadata: encoder : Lavf56.31.100 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1440x900, q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 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= 232 fps= 25 q=31.0 Lsize= 1848kB time=00:00:09.31 bitrate=1625.5kbits/s video:1730kB audio:110kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.445773% Framerate:15 ./ffmpeg -f avfoundation -video_size 640x480 -framerate 15 -i "1:0" -c:v mpeg4 -c:a aac -strict -2 -r 15 ffmpeg-git-head-15.mp4 ffmpeg version N-71716-g7b94a2f-HootScreenCapture 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: --prefix=/Users/live/src/github/ffmpeg-static/target --arch=x86_64 --as=yasm --extra-version=HootScreenCapture --disable-shared --enable-static --enable-gpl --enable-nonfree --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libx264 --enable-bzlib --enable-zlib --enable-version3 --enable-libfdk-aac --enable-filters --enable-runtime-cpudetect --disable-sdl --enable-nonfree --enable-libfdk-aac 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 libpostproc 53. 3.100 / 53. 3.100 [avfoundation @ 0x7f8172009600] Selected pixel format (yuv420p) is not supported by the input device. [avfoundation @ 0x7f8172009600] Supported pixel formats: [avfoundation @ 0x7f8172009600] uyvy422 [avfoundation @ 0x7f8172009600] yuyv422 [avfoundation @ 0x7f8172009600] nv12 [avfoundation @ 0x7f8172009600] 0rgb [avfoundation @ 0x7f8172009600] bgr0 [avfoundation @ 0x7f8172009600] Overriding selected pixel format to use uyvy422 instead. [avfoundation @ 0x7f8172009600] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, avfoundation, from '1:0': Duration: N/A, start: 11987.682500, 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-git-head-15.mp4': Metadata: encoder : Lavf56.31.100 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1440x900, q=2-31, 200 kb/s, 15 fps, 15360 tbn, 15 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= 118 fps= 15 q=31.0 Lsize= 1188kB time=00:00:07.86 bitrate=1237.2kbits/s video:1076kB audio:106kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.533504%
kevin <kevincastiglione <at> gmail.com> writes:
I tried 3 framerates: 30, 25, and 15. All three have the same problem.
Would you say that "15" sounds better than "30"? (It think so.)
configuration: --prefix=/Users/live/src/github/ffmpeg-static/target --arch=x86_64 --as=yasm --extra-version=HootScreenCapture --disable-shared --enable-static --enable-gpl --enable-nonfree --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libx264 --enable-bzlib --enable-zlib --enable-version3 --enable-libfdk-aac --enable-filters --enable-runtime-cpudetect --disable-sdl --enable-nonfree --enable-libfdk-aac
Unrelated: Please remove the following options, they don't do what you think they do or are the default: --arch=x86_64 --as=yasm --disable-shared --enable-static --enable-pthreads --enable-postproc --enable-bzlib --enable-zlib --enable-filters --enable-runtime-cpudetect Carl Eugen
On Sun, Apr 26, 2015 at 7:05 PM, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
kevin <kevincastiglione <at> gmail.com> writes:
I tried 3 framerates: 30, 25, and 15. All three have the same problem.
Would you say that "15" sounds better than "30"? (It think so.)
No, they are both equally bad. "30" sounds sharper, but the problem is the stuttering and breaking. The problem is equally prevalent in both. Any suggestions on what I can do to fix this? https://www.dropbox.com/s/hf6zqxwq7y394yd/ffmpeg-git-head-30.mp4?dl=1 https://www.dropbox.com/s/0zptd9e8alvf050/ffmpeg-git-head-15.mp4?dl=1
configuration: --prefix=/Users/live/src/github/ffmpeg-static/target --arch=x86_64 --as=yasm --extra-version=HootScreenCapture --disable-shared --enable-static --enable-gpl --enable-nonfree --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libx264 --enable-bzlib --enable-zlib --enable-version3 --enable-libfdk-aac --enable-filters --enable-runtime-cpudetect --disable-sdl --enable-nonfree --enable-libfdk-aac
Unrelated: Please remove the following options, they don't do what you think they do or are the default: --arch=x86_64 --as=yasm --disable-shared --enable-static --enable-pthreads --enable-postproc --enable-bzlib --enable-zlib --enable-filters --enable-runtime-cpudetect
I wanted a standalone binary, and that is why I built with --enable-static, and didn't want it to depend on external library based from here: https://github.com/csparker247/ffmpeg-static.git Will removing these configure options help solve the problem? Thanks again for your help.
kevin <kevincastiglione <at> gmail.com> writes:
Unrelated: Please remove the following options, they don't do what you think they do or are the default: --arch=x86_64 --as=yasm --disable-shared --enable-static --enable-pthreads --enable-postproc --enable-bzlib --enable-zlib --enable-filters --enable-runtime-cpudetect
I wanted a standalone binary, and that is why I built with --enable-static,
--enable-static is the default but it will not build a static standalone binary.
and didn't want it to depend on external library based from here: https://github.com/csparker247/ffmpeg-static.git
The binary as built by you depends on the following dynamic libraries: lame, x264, libfdk and some system libraries that afaik you can't easily remove from your system.
Will removing these configure options help solve the problem?
No, it would just make it easier to see if there is a problem in your configure line (like using --enable-nonfree twice). Carl Eugen
On Sun, Apr 26, 2015 at 7:34 PM, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
kevin <kevincastiglione <at> gmail.com> writes:
Will removing these configure options help solve
the problem?
No, it would just make it easier to see if there is a problem in your configure line (like using --enable-nonfree twice).
OK, i will rebuild it again. Can you please tell what the configure options should be? Or should I not add any options at all?
On Mon, Apr 27, 2015 at 4:39 AM, kevin <kevincastiglione@gmail.com> wrote:
On Sun, Apr 26, 2015 at 7:34 PM, Carl Eugen Hoyos <cehoyos@ag.or.at> wrote:
kevin <kevincastiglione <at> gmail.com> writes:
Will removing these configure options help solve
the problem?
No, it would just make it easier to see if there is a problem in your configure line (like using --enable-nonfree twice).
OK, i will rebuild it again. Can you please tell what the configure options should be? Or should I not add any options at all?
Does reverting the following commit 1e9d035b91100b75edc964914df638863f188a4f helps you ? I've done a quick test using master and master with 1e9d035b91100b75edc964914df638863f188a4f reverted and both seems good to me (the audio is not stuttering). I've used the same command as you, ./ffmpeg -f avfoundation -video_size 640x480 -framerate 30 -i "1:0" -c:v mpeg4 -c:a aac -strict -2 -r 30 ffmpeg-git-head-30.mp4 My screen resolution is 1280x800 and ffmpeg has been compiled with only the --enable-gpl option. I'm using 10.10.2, I will update to 10.10.3 and keep you updated.
Matthieu Bouron <matthieu.bouron <at> gmail.com> writes:
Does reverting the following commit 1e9d035b91100b75edc964914df638863f188a4f helps you ?
I cannot find this revision... Carl Eugen
On Mon, Apr 27, 2015 at 1:49 PM, Carl Eugen Hoyos <cehoyos@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"
On Mon, Apr 27, 2015 at 5:11 AM, Matthieu Bouron <matthieu.bouron@gmail.com> wrote:
On Mon, Apr 27, 2015 at 1:49 PM, Carl Eugen Hoyos <cehoyos@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@loongson.cn> Date: Mon Apr 27 10:40:29 2015 +0800 makefile: add Loongson-3 support Signed-off-by: Michael Niedermayer <michaelni@gmx.at> commit 8a03d428f1759a7d3af505ab747662747360ea60
On Mon, Apr 27, 2015 at 6:12 AM, kevin <kevincastiglione@gmail.com> wrote:
On Mon, Apr 27, 2015 at 5:11 AM, Matthieu Bouron < matthieu.bouron@gmail.com> wrote:
On Mon, Apr 27, 2015 at 1:49 PM, Carl Eugen Hoyos <cehoyos@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
Not sure if this helps at all, but this is the latest binary that I compiled, with cf16b459a873b990efc10d93e9912ab01b8a0fba reverted: https://www.dropbox.com/s/furg7n7lhbkbr3r/ffmpeg.tar.bz2?dl=1
On Mon, Apr 27, 2015 at 6:12 AM, kevin <kevincastiglione@gmail.com> wrote:
On Mon, Apr 27, 2015 at 5:11 AM, Matthieu Bouron < matthieu.bouron@gmail.com> wrote:
On Mon, Apr 27, 2015 at 1:49 PM, Carl Eugen Hoyos <cehoyos@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
Any suggestions? Happy to help in anyway to fix this issue.
On Tue, Apr 28, 2015 at 10:08 PM, kevin <kevincastiglione@gmail.com> wrote:
On Mon, Apr 27, 2015 at 6:12 AM, kevin <kevincastiglione@gmail.com> wrote:
On Mon, Apr 27, 2015 at 5:11 AM, Matthieu Bouron < matthieu.bouron@gmail.com> wrote:
On Mon, Apr 27, 2015 at 1:49 PM, Carl Eugen Hoyos <cehoyos@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
Any suggestions? Happy to help in anyway to fix this issue.
I created a ticket, posting it here for reference https://trac.ffmpeg.org/ticket/4513
Am 30.04.15 um 00:08 schrieb kevin:
On Tue, Apr 28, 2015 at 10:08 PM, kevin <kevincastiglione@gmail.com> wrote:
On Mon, Apr 27, 2015 at 6:12 AM, kevin <kevincastiglione@gmail.com> wrote:
On Mon, Apr 27, 2015 at 5:11 AM, Matthieu Bouron < matthieu.bouron@gmail.com> wrote:
On Mon, Apr 27, 2015 at 1:49 PM, Carl Eugen Hoyos <cehoyos@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
Any suggestions? Happy to help in anyway to fix this issue.
I created a ticket, posting it here for reference
Thanks! -Thilo
participants (6)
-
Carl Eugen Hoyos -
kevin -
Matthieu Bouron -
Moritz Barsnick -
Nicolas George -
Thilo Borgmann