New submission from tripp <[EMAIL PROTECTED]>:
Can't copy external mp3 audio into flv container,
tried both vbr and cbr mp3
two failing command lines follow
ffmpeg -loop_input -i video.png -r 1 -i audio.mp3 -acodec copy -vcodec flv
-qscale 2 -g 5 -cmp 3 -subcmp 3 -mbd 2 -flags trell final.flv -shortest
FFmpeg version SVN-r11306, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-pp --enable-swscaler --enable-g
pl --enable-liba52 --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enab
le-libfaad --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libvorbi
s --enable-libtheora --enable-libxvid --enable-libx264 --disable-ffserver --disa
ble-ffplay --enable-avisynth --enable-small --enable-pthreads --extra-ldflags=-s
tatic --extra-cflags=-O4 -mtune=pentium4 -mfpmath=sse -msse -fno-strict-aliasing
libavutil version: 49.6.0
libavcodec version: 51.49.0
libavformat version: 52.3.0
built on Dec 23 2007 11:11:23, gcc: 4.2.2
Input #0, image2, from 'video.png':
Duration: 00:00:00.0, start: 0.000000, bitrate: N/A
Stream #0.0: Video: png, rgb24, 480x360 [PAR 0:1 DAR 0:1], 25.00 tb(r)
mdb:467, lastbuf:0 skipping granule 0
mdb:467, lastbuf:0 skipping granule 0
mdb:467, lastbuf:0 skipping granule 1
mdb:467, lastbuf:0 skipping granule 1
Input #1, mp3, from 'audio.mp3':
Duration: 00:00:45.9, start: 0.000000, bitrate: 128 kb/s
Stream #1.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, flv, to 'final.flv':
Stream #0.0: Video: flv (hq), yuv420p, 480x360 [PAR 0:1 DAR 0:1], q=2-31, 20
0 kb/s, 1.00 tb(c)
Stream #0.1: Audio: libmp3lame, 44100 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press [q] to stop encoding
error, non monotone timestamps 26 >= 0
av_interleaved_write_frame(): Error while opening file
This simple one also fails:
ffmpeg -i fl.avi -vcodec copy -i audio.mp3 -acodec copy final2.flv
FFmpeg version SVN-r11306, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-memalign-hack --enable-pp --enable-swscaler --enable-g
pl --enable-liba52 --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enab
le-libfaad --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libvorbi
s --enable-libtheora --enable-libxvid --enable-libx264 --disable-ffserver --disa
ble-ffplay --enable-avisynth --enable-small --enable-pthreads --extra-ldflags=-s
tatic --extra-cflags=-O4 -mtune=pentium4 -mfpmath=sse -msse -fno-strict-aliasing
libavutil version: 49.6.0
libavcodec version: 51.49.0
libavformat version: 52.3.0
built on Dec 23 2007 11:11:23, gcc: 4.2.2
Input #0, avi, from 'fl.avi':
Duration: 00:00:46.0, start: 0.000000, bitrate: 16 kb/s
Stream #0.0: Video: flv, yuv420p, 480x360 [PAR 0:1 DAR 0:1], 1.00 tb(r)
mdb:467, lastbuf:0 skipping granule 0
mdb:467, lastbuf:0 skipping granule 0
mdb:467, lastbuf:0 skipping granule 1
mdb:467, lastbuf:0 skipping granule 1
Input #1, mp3, from 'audio.mp3':
Duration: 00:00:45.9, start: 0.000000, bitrate: 128 kb/s
Stream #1.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, flv, to 'final2.flv':
Stream #0.0: Video: flv, yuv420p, 480x360 [PAR 0:1 DAR 0:1], q=2-31, 1.00 t
b(c)
Stream #0.1: Audio: libmp3lame, 44100 Hz, stereo, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press [q] to stop encoding
error, non monotone timestamps 26 >= 0
av_interleaved_write_frame(): Error while opening file
These methods work:
encoding to avi container then remuxing to flv:
ffmpeg -loop_input -i video.png -r 1 -i audio.mp3 -acodec copy -vcodec flv
-qscale 2 -g 5 -cmp 3 -subcmp 3 -mbd 2 -flags trell final.avi -shortest
ffmpeg -i final.avi -vcodec copy -acodec copy final2.flv
and with mencoder:
mencoder mf://video.png -mf fps=1/45:type=png -audiofile audio.mp3 -ovc lavc
-oac copy -vf harddup -lavcopts vcodec=flv:vqscale=2:keyint=5 -ofps 1 -of lavf
-o Fin.flv
ty
tripp
----------
messages: 1322
nosy: tripp
priority: normal
status: new
substatus: new
title: Can't copy external mp3 audio into flv container
type: bug
______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue307>
______________________________________________________