[FFmpeg-trac] #5033(undetermined:new): Incorrect duration when converting WAV/MP3 files to AAC
FFmpeg
trac at avcodec.org
Tue Nov 24 02:14:40 CET 2015
#5033: Incorrect duration when converting WAV/MP3 files to AAC
-------------------------------------+-------------------------------------
Reporter: ausjjtkd | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: aac | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by ausjjtkd):
Here is my testing of MP4:
{{{
# -f lavfi -i sine, 60 secs
$ /tmp/ffmpeg-git-20151120-64bit-static/ffmpeg -y -framerate 1 -r 1 -loop
1 -i /tmp/in.jpg -f lavfi -i sine=duration=60 -c:v libx264 -preset
veryfast -tune stillimage -c:a aac -ab 32k -ar 16000 -strict experimental
-shortest -pix_fmt yuv420p -movflags faststart -f mp4 /tmp/out.mp4
# 60 seconds of audio, then only image
$ mpv /tmp/out.mp4
...
AV: 00:01:22 / 00:01:23 (98%) A-V: 0.000 Cache: 0s+0KB
# -f s16le -i /dev/zero, 60 secs
$ /tmp/ffmpeg-git-20151120-64bit-static/ffmpeg -y -framerate 1 -r 1 -loop
1 -i /tmp/in.jpg -f s16le -t 60 -i /dev/zero -c:v libx264 -preset veryfast
-tune stillimage -c:a aac -ab 32k -ar 16000 -strict experimental -shortest
-pix_fmt yuv420p -movflags faststart -f mp4 /tmp/out.mp4
$ mpv /tmp/out.mp4
...
AV: 00:01:22 / 00:01:23 (98%) A-V: 0.000 Cache: 0s+0KB
# -f lavfi -i sine=duration=60
$ ffmpeg -y -framerate 1 -r 1 -loop 1 -i /tmp/in.jpg -f lavfi -i
sine=duration=60 -c:v libx264 -preset veryfast -tune stillimage -c:a aac
-ab 32k -ar 16000 -strict experimental -shortest -pix_fmt yuv420p
-movflags faststart -f mp4 /tmp/out.mp4
#same as above, 60 seconds of audio, then only image
$ mpv /tmp/out.mp4
...
AV: 00:01:22 / 00:01:23 (98%) A-V: 0.000 Cache: 0s+0KB
# -f s16le -t 60 -i /dev/zero
$ ffmpeg -y -framerate 1 -r 1 -loop 1 -i /tmp/in.jpg -f s16le -t 60 -i
/dev/zero -c:v libx264 -preset veryfast -tune stillimage -c:a aac -ab 32k
-ar 16000 -strict experimental -shortest -pix_fmt yuv420p -movflags
faststart -f mp4 /tmp/out.mp4
$ mpv /tmp/out.mp4
...
AV: 00:01:22 / 00:01:23 (98%) A-V: 0.000 Cache: 0s+0KB
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5033#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list