[MPlayer-dev-eng] [PATCH] ae_lavc: set nBlockAlign like libavformat

Nicolas George nicolas.george at normalesup.org
Sat Aug 27 19:10:01 CEST 2011


Le decadi 10 fructidor, an CCXIX, compn a écrit :
> hmm. at least ffmpeg reports aac encoder is experimental:
> ffmpeg -i some.avi -acodec aac out.avi
> encoder 'aac' is experimental and might produce bad results.
> Add '-strict experimental' if you want to use it.

That is not the problem: it is flagged as experimental because it has poor
quality, but AFAIK the packets it produces are technically correct.

And the result is the same for all three AAC encoders: ffmpeg produces
broken AVI files:

sox -t s16 -r 48000 -c 2 /dev/zero -t s16 - synth | \
ffmpeg -t 10 -f s16le -ar 48000 -ac 2 -i - -acodec aac -y /tmp/ffmpeg-aac.avi

And then:

ffprobe -show_packets /tmp/ffmpeg-aac.avi | grep pts_time

shows it:

pts_time=0.000000
pts_time=1.642667
pts_time=3.520000
<snip>
pts_time=853.226667
pts_time=854.997333
pts_time=856.874667

The result is roughly the same with libvo_aacenc or aac -strict
experimental, although the exact timestamps change a little.

And it is AVI-speciffic, the result is correct with a .mkv, a .mp4 or a
.nut.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110827/505e44d0/attachment.asc>


More information about the MPlayer-dev-eng mailing list