Tutorial about converting flv to mp3 format in Linux or Windows, using ffmpeg.
Get ffmpeg:
If you are using windows then you have to get it from here. It's a bit harder than in Linux. Linux users can get it from repos, by using yum, apt-get or package manager. Example:Source code viewer
sudo apt-get install ffmpegProgramming Language: Bash
Convert flv to mp3
Flv files contain audio with mp3 encoding, so we just need to get the file. Then we need to make the audio file.
Flv files contain audio with mp3 encoding, so we just need to get the file. Then we need to make the audio file.
Source code viewer
cd folder/of/flv/files ffmpeg -i input_file_name.flv -acodec copy output_file_name.mp3Programming Language: Bash
You can also use ffmpeg to convert audio to other formats, but then you need right libs. Example:
Source code viewer
user@unknown:~$ cd Videos/ user@unknown:~/Videos$ ffmpeg -i FlashXXZuL8ki -acodec copy flash.mp3 FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 4 2010 12:35:30, gcc: 4.4.3 Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (24000/1001) Input #0, flv, from 'FlashXXZuL8ki': Duration: 00:43:53.74, start: 0.105000, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 416x224 [PAR 21:22 DAR 39:22], 23.98 tbr, 1k tbn, 47.95 tbc Stream #0.1: Audio: aac, 48000 Hz, stereo, s16 Output #0, mp3, to 'flash.mp3': Stream #0.0: Audio: 0x0000, 48000 Hz, stereo, s16 Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding size= 30864kB time=2633.66 bitrate= 96.0kbits/s video:0kB audio:30864kB global headers:0kB muxing overhead 0.000101% user@unknown:~/Videos$Programming Language: Bash
You have successfully completed this tutorial.