[libav-api] encoding .mp4

Aaron San Filippo aaronflippo at gmail.com
Fri Nov 4 15:27:37 CET 2011


Hey all, I'm trying to encode a video with audio in the .mp4 format, using
avconv from the commandline, using a recent win32 build.

I'm getting an error telling me that the 'aac' format is experimental and
that I should use '-strict experimental' if I want to use it.
However adding this switch doesn't fix the problem, at least with the
switches I'm using.

Is there a workaround for this - perhaps a different audio encoder I
can/should use with this format?

My complete command line:

avconv -strict experimental -i Audio.wav   -pix_fmt bgr24 -s 640x480 -f
rawvideo -r 25.5 -i RawMovie -vcodec libx264 -y -vf "vflip" movie.mp4

And the complete output:

avconv version v0.7-1645-g0217099, Copyright (c) 2000-2011 the Libav
developers
  built on Oct 31 2011 15:47:25 with gcc 4.5.2
[wav @ 003e9e20] max_analyze_duration reached
Input #0, wav, from 'Audio.wav':
  Duration: 00:00:35.88, bitrate: 705 kb/s
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[rawvideo @ 00df0180] Estimating duration from bitrate, this may be
inaccurate
Input #1, rawvideo, from 'RawMovie':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #1.0: Video: rawvideo, bgr24, 640x480, 25.50 tbr, 25.50 tbn,
25.50 tb
c
Incompatible pixel format 'bgr24' for codec 'libx264', auto-selecting
format 'yu
v420p'
[buffer @ 00dd9a60] w:640 h:480 pixfmt:bgr24
[vflip @ 00dfea60] auto-inserting filter 'auto-inserted scaler 0' between
the fi
lter 'src' and the filter 'Parsed filter 0 vflip'
[scale @ 00e30da0] w:640 h:480 fmt:bgr24 -> w:640 h:480 fmt:yuv420p
flags:0x4
[libx264 @ 00e06280] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE
4.1 Cache64
[libx264 @ 00e06280] profile Main, level 3.0
[libx264 @ 00e06280] 264 - core 118 - H.264/MPEG-4 AVC codec - Copyleft
2003-201
1 - http://www.videolan.org/x264.html - options: cabac=1 ref=3
deblock=1:0:0 ana
lyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0
me_range=16 chr
oma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1
chroma_qp_offset=-
2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constr
ained_intra=0 bframes=3 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=0
open_g
op=1 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0
rc_lookahead
=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4
ip_ratio=1.25
aq=1:1.00
encoder 'aac' is experimental and might produce bad results.
Add '-strict experimental' if you want to use it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-api/attachments/20111104/000a70df/attachment.html>


More information about the libav-api mailing list