Sound stops playing after recorded pause

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Sound stops playing after recorded pause

Denny Ferrassoli
I'm using QuickTime to record a video and FFMpeg to encode the video to an
FLV. While recording I pause the recorder for a few moments and then
continue recording. After finishing I take the MOV file and run it through
FFMpeg with the following commands:


ffmpeg.exe -r 1 -i "" -b 600k -r 25 -s 480x360 -ar 11025 -ab 32k


I play my flash file and test it on VLC Media Player as well as a Flash
Based Video Player on a website. What happens is that I lose my audio right
after the pause. The video continues to play but without audio. I believe it
is because there are 3 audio streams. On another video I tested, without a
pause, there is only 1 audio stream and it comes after the video stream.
Whereas my video with a pause has 3 audio streams that come first followed
by the video stream.


Below is the configuration of my FFMpeg and the output from FFMpeg when
trying to convert the video with a pause:



FFmpeg version UNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.

  configuration: --enable-memalign-hack --enable-gpl --cpu=i686

r --enable-w32threads --enable-libx264 --disable-ffplay --disable-ffserver

ra-cflags=-I/local/include --extra-ldflags=-L/local/lib

  libavutil version: 49.6.0

  libavcodec version: 51.49.0

  libavformat version: 52.2.0

  built on Dec 13 2007 17:30:03, gcc: 4.2.1-sjlj (mingw32-2)


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '':

  Duration: 00:00:36.5, start: 0.000000, bitrate: 30514 kb/s

    Stream #0.0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s

    Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s

    Stream #0.2(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s

    Stream #0.3(eng): Video: dvvideo, yuv411p, 720x480 [PAR 0:1 DAR 0:1],

    Stream #0.4(eng): Data: tmcd / 0x64636D74


File '_video.flv' already exists. Overwrite ? [y/N] y


Output #0, flv, to '_video.flv':

    Stream #0.0(eng): Video: flv, yuv420p, 480x360 [PAR 0:1 DAR 0:1],
q=2-31, 600 kb/s, 27.00 tb(c)

    Stream #0.1(eng): Audio: adpcm_swf, 11025 Hz, stereo, 32 kb/s

Stream mapping:

  Stream #0.3 -> #0.0

  Stream #0.0 -> #0.1

Press [q] to stop encoding

frame=  986 fps= 87 q=2.6 Lsize=    2929kB time=14.4 bitrate=1667.0kbits/s

video:2752kB audio:157kB global headers:0kB muxing overhead 0.705252%




It looks like it is only mapping one audio stream to the output. So if this
is my issue how can I get FFMpeg to map all audio streams to the output?




ffmpeg-user mailing list
[hidden email]