[FFmpeg-user] problem with audio/video sync after conversion
Arlo Leach
lists at arlomedia.com
Wed Jun 27 09:31:31 CEST 2012
> DEA D aac Advanced Audio Coding
> D A D aac_latm AAC LATM (Advanced Audio Codec LATM syntax)
I have these two, but when I tried to use aac I got the error "Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height" (complete output is below). This is with the following command:
/usr/bin/ffmpeg -i infile.mp4 -f mp4 -vcodec libx264 -vpre medium -acodec aac -b:v 360k -s 512x288 -ac 1 outfile.mp4 2>&1
Is there something else I need to do to make this other AAC codec work? I did some web searching, but I don't really know what I'm looking for.
> so which numbers work and which don't? does 30 work?
I tried 10, 15, 20, 25, 29.97 and 30 fps. To my eyes and ears, 29.97 and 30 produced a good sync, and the others did not.
> The real answer to your question is "only adobe knows..." (maybe you
> should ask their mailing lists, as well).
I'll do that.
Thanks,
-Arlo
_______________________________
ffmpeg version N-41797-g3821632 Copyright (c) 2000-2012 the FFmpeg developers
built on Jun 21 2012 10:22:20 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enab libavutil 51. 59.100 / 51. 59.100
libavcodec 54. 29.100 / 54. 29.100
libavformat 54. 10.100 / 54. 10.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 2. 82.100 / 2. 82.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'infile.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2012-06-08 20:01:51
Duration: 00:00:15.82, start: 0.000000, bitrate: 1677 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1575 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc
Metadata:
creation_time : 2012-06-08 20:01:51
handler_name : Mainconcept MP4 Video Media Handler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 93 kb/s
Metadata:
creation_time : 2012-06-08 20:01:51
handler_name : Mainconcept MP4 Sound Media Handler
[buffer @ 0x1e88ba0] w:1280 h:720 pixfmt:yuv420p tb:1/29970 fr:2997/100 sar:1/1 sws_param:flags=2
[ffmpeg_buffersink @ 0x1e899e0] No opaque field provided
[scale @ 0x1e89640] w:1280 h:720 fmt:yuv420p sar:1/1 -> w:512 h:288 fmt:yuv420p sar:1/1 flags:0x4
[aformat @ 0x1ebc8c0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'aformat'
[auto-inserted resampler 0 @ 0x1ebd6a0] chl:stereo fmt:s16 -> chl:mono fmt:flt
[libx264 @ 0x1e66c20] using SAR=1/1
[libx264 @ 0x1e66c20] using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
[libx264 @ 0x1e66c20] profile High, level 2.1
[libx264 @ 0x1e66c20] 264 - core 119 r2106 07efeb4 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 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=6 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=2 keyint=15 keyint_min=8 Codec is experimental but experimental codecs are not enabled, try -strict -2
Output #0, mp4, to 'outfile.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2012-06-08 20:01:51
Stream #0:0(eng): Video: h264, yuv420p, 512x288 [SAR 1:1 DAR 16:9], q=10-51, 360 kb/s, 90k tbn, 15 tbc
Metadata:
creation_time : 2012-06-08 20:01:51
handler_name : Mainconcept MP4 Video Media Handler
Stream #0:1(eng): Audio: none, 22050 Hz, mono, flt, 48 kb/s
Metadata:
creation_time : 2012-06-08 20:01:51
handler_name : Mainconcept MP4 Sound Media Handler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> aac)
Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
More information about the ffmpeg-user
mailing list