Hi franklovecchio,
Originally Posted by
franklovecchio
I have tried winff, a few scripts, and plain 'ol ffmpeg one file at a time; but for the life of me, I can't seem to convert an flv file to an mp3 file.
It should not be too difficult as the standard low quality flv usually has mp3 sound in the first place. Cam I give a demonstration? Below are the details of a standard flv, these results are from 'ffmpeg -i panda.flv':
Code:
Input #0, flv, from 'panda.flv':
Duration: 00:00:16.06, start: 0.000000, bitrate: 64 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240, 57.92 tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s
So to copy the sound to mp3 the following is required:
Code:
andrew@skamandros~/samples$ ffmpeg -i panda.flv -acodec copy test.mp3
FFmpeg version SVN-r18929, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --mandir=/usr/man --disable-debug
--enable-shared --disable-static --enable-postproc --enable-avfilter
--enable-pthreads --enable-libtheora --enable-libvorbis --enable-x11grab
--enable-libmp3lame --enable-libx264 --enable-libschroedinger
--enable-libfaac --enable-libfaad --enable-libamr-wb --enable-libamr-nb
--enable-libgsm --enable-libspeex --enable-zlib --enable-nonfree --enable-gpl
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.29. 0 / 52.29. 0
libavformat 52.33. 0 / 52.33. 0
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 0. 5. 0 / 0. 5. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on May 24 2009 21:28:23, gcc: 4.2.4
[flv @ 0x8069440]skipping flv packet: type 18, size 294, flags 0
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 57.92 (695/12)
Input #0, flv, from 'panda.flv':
Duration: 00:00:16.06, start: 0.000000, bitrate: 64 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240, 57.92 tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s
Output #0, mp3, to 'test.mp3':
Stream #0.0: Audio: libmp3lame, 22050 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Press [q] to stop encoding
size= 126kB time=16.09 bitrate= 64.0kbits/s
video:0kB audio:126kB global headers:0kB muxing overhead 0.024858%
It all depends on the makeup of the flv which can vary a little but it does not get too much harder than that.
Andrew
Bookmarks