FORUMS: list search recent posts

"libvo_aacenc" creates longer sound

COW Forums : FFmpeg

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Thomas Demirian
"libvo_aacenc" creates longer sound
on Aug 11, 2014 at 9:10:15 am

Im trying to figure why ffmpeg "libvo_aacenc" always creates longer sound. Have someone else noticed this?

The video when converting to mp4 is always spot on ( if i use "-x264opts b-pyramid=0" ). But the sound is always approximately 0.2-0-4 secs to long.


Return to posts index

Jim Sustacek
Re: "libvo_aacenc" creates longer sound
on Aug 12, 2014 at 12:12:52 pm

Longer sound, like the whole thing is stretched? Or longer, like it starts late?

Probably going to need the full ffmpeg console output, if not a link to a sample file too.


Return to posts index

Thomas Demirian
Re: "libvo_aacenc" creates longer sound
on Aug 12, 2014 at 12:48:04 pm

It makes the audio longer than the video. The Video exports as 20 seconds and the Audio as 20.38. Both should be 20. If I export with wav or mp3 sound the sound length is correct.

My ffmpeg 2pass command:
ffmpeg -y -i x_sd.mov -pix_fmt yuv420p -direct-pred auto -aspect 16:9 -s 1024x576 -vcodec libx264 -bufsize 2500k -b:v 2500k -vmaxrate 3000k -vminrate 200k -vprofile baseline -level 3.1 -g 100 -bf 3 -x264opts b-pyramid=0 -coder 0 -movflags faststart -pass 1 -an -f rawvideo /dev/null && \
ffmpeg -y -i x_sd.mov -pix_fmt yuv420p -direct-pred auto -aspect 16:9 -s 1024x576 -vcodec libx264 -bufsize 2500k -b:v 2500k -vmaxrate 3000k -vminrate 200k -vprofile baseline -level 3.1 -g 100 -bf 3 -x264opts b-pyramid=0 -coder 0 -movflags faststart -acodec libvo_aacenc -ar 48000 -b:a 128000 -aprofile aac_low -ac 2 -f mp4 -preset slow -pass 2 \
high1.mp4


The Console output:

Last login: Tue Aug 12 14:40:11 on ttys000
Thomas-MacBook-Pro:~ Thomas$ cd /Users/Thomas/Desktop/Redmine_and_Others/2001_Proxy_for_ecexpress/Download
Thomas-MacBook-Pro:Download Thomas$ ffmpeg -y -i x_sd.mov -pix_fmt yuv420p -direct-pred auto -aspect 16:9 -s 1024x576 -vcodec libx264 -bufsize 2500k -b:v 2500k -vmaxrate 3000k -vminrate 200k -vprofile baseline -level 3.1 -g 100 -bf 3 -x264opts b-pyramid=0 -coder 0 -movflags faststart -pass 1 -an -f rawvideo /dev/null && \
> ffmpeg -y -i x_sd.mov -pix_fmt yuv420p -direct-pred auto -aspect 16:9 -s 1024x576 -vcodec libx264 -bufsize 2500k -b:v 2500k -vmaxrate 3000k -vminrate 200k -vprofile baseline -level 3.1 -g 100 -bf 3 -x264opts b-pyramid=0 -coder 0 -movflags faststart -acodec libvo_aacenc -ar 48000 -b:a 128000 -aprofile aac_low -ac 2 -f mp4 -preset slow -pass 2 \
> high1.mp4
ffmpeg version 2.2.4-tessus Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 29 2014 16:35:46 with clang version 3.3 (tags/RELEASE_33/final)
configuration: --cc=/opt/local/bin/clang-mp-3.3 --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-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 --enable-runtime-cpudetect
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'x_sd.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2014-08-04 15:21:15
Duration: 00:00:20.00, start: 0.000000, bitrate: 237885 kb/s
Stream #0:0(eng): Video: rawvideo (2vuy / 0x79757632), uyvy422, 1024x576, 235929 kb/s, SAR 1024:1024 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
[libx264 @ 0x102025400] using SAR=1/1
[libx264 @ 0x102025400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x102025400] profile Constrained Baseline, level 3.1
Output #0, rawvideo, to '/dev/null':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf55.33.100
Stream #0:0(eng): Video: h264 (libx264), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=-1--1, pass 1, 2500 kb/s, 90k tbn, 25 tbc (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libx264)
Press [q] to stop, [?] for help
frame= 500 fps=206 q=-1.0 Lsize= 6190kB time=00:00:20.00 bitrate=2535.6kbits/s
video:6190kB audio:0kB subtitle:0 data:0 global headers:0kB muxing overhead 0.000000%
[libx264 @ 0x102025400] frame I:12 Avg QP:14.29 size: 62738
[libx264 @ 0x102025400] frame P:488 Avg QP:16.61 size: 11447
[libx264 @ 0x102025400] mb I I16..4: 37.7% 0.0% 62.3%
[libx264 @ 0x102025400] mb P I16..4: 16.4% 0.0% 0.0% P16..4: 62.1% 0.0% 0.0% 0.0% 0.0% skip:21.5%
[libx264 @ 0x102025400] coded y,uvDC,uvAC intra: 30.6% 61.8% 38.7% inter: 26.1% 28.1% 0.8%
[libx264 @ 0x102025400] i16 v,h,dc,p: 67% 13% 15% 5%
[libx264 @ 0x102025400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 14% 14% 8% 8% 10% 6% 10% 6%
[libx264 @ 0x102025400] i8c dc,h,v,p: 59% 15% 22% 5%
[libx264 @ 0x102025400] kb/s:2535.62
ffmpeg version 2.2.4-tessus Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 29 2014 16:35:46 with clang version 3.3 (tags/RELEASE_33/final)
configuration: --cc=/opt/local/bin/clang-mp-3.3 --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-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 --enable-runtime-cpudetect
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'x_sd.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2014-08-04 15:21:15
Duration: 00:00:20.00, start: 0.000000, bitrate: 237885 kb/s
Stream #0:0(eng): Video: rawvideo (2vuy / 0x79757632), uyvy422, 1024x576, 235929 kb/s, SAR 1024:1024 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
[libx264 @ 0x103004e00] using SAR=1/1
[libx264 @ 0x103004e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x103004e00] profile Constrained Baseline, level 3.1
[libx264 @ 0x103004e00] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=0 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=100 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=2500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 vbv_maxrate=3000 vbv_bufsize=2500 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'high1.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
encoder : Lavf55.33.100
Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=-1--1, pass 2, 2500 kb/s, 12800 tbn, 25 tbc (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
Stream #0:1(eng): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, s16, 128 kb/s (default)
Metadata:
creation_time : 2014-08-04 15:21:15
handler_name : Apple Alias Data Handler
timecode : 00:08:31:02
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo -> libx264)
Stream #0:1 -> #0:1 (pcm_s16le -> libvo_aacenc)
Press [q] to stop, [?] for help
[mp4 @ 0x103004800] Starting second pass: moving the moov atom to the beginning of the file
frame= 500 fps= 27 q=-1.0 Lsize= 6414kB time=00:00:20.00 bitrate=2627.2kbits/s
video:6088kB audio:313kB subtitle:0 data:0 global headers:0kB muxing overhead 0.191578%
[libx264 @ 0x103004e00] frame I:12 Avg QP:14.34 size: 67781
[libx264 @ 0x103004e00] frame P:488 Avg QP:17.10 size: 11107
[libx264 @ 0x103004e00] mb I I16..4: 23.7% 0.0% 76.3%
[libx264 @ 0x103004e00] mb P I16..4: 1.1% 0.0% 0.4% P16..4: 52.4% 20.5% 9.0% 0.0% 0.0% skip:16.6%
[libx264 @ 0x103004e00] coded y,uvDC,uvAC intra: 66.9% 86.5% 74.6% inter: 19.1% 37.8% 2.2%
[libx264 @ 0x103004e00] i16 v,h,dc,p: 64% 12% 9% 16%
[libx264 @ 0x103004e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 5% 7% 14% 16% 16% 11% 14% 8%
[libx264 @ 0x103004e00] i8c dc,h,v,p: 55% 15% 20% 10%
[libx264 @ 0x103004e00] ref P L0: 58.8% 18.6% 12.4% 5.4% 4.8%
[libx264 @ 0x103004e00] kb/s:2493.51
[libvo_aacenc @ 0x103015c00] 1 frames left in the queue on closing
Thomas-MacBook-Pro:Download Thomas$


Return to posts index


Lou Logan
Re: "libvo_aacenc" creates longer sound
on Aug 27, 2014 at 7:12:19 pm

Does this also occur with the native FFmpeg AAC encoder? Also, libvo_aacenc is often considered the worst AAC encoder supported by FFmpeg, but you don't always have much choice unless you can compile.

Replace "-acodec libvo_aacenc" with "-acodec aac -strict experimental" Also, you can remove "-aprofile aac_low". I don't think either of these encoders can support anything else anyway but I may be incorrect.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]