Let’s say you want to extract sound track of you .flv file and save it under .mp3 format.
It should be very easy if you follow these steps:
- ensure ffmpeg package is installed (audio/video converter) along with libavcodec-extra-52 package (which contains mp4 codec)
sudo apt-get install ffmpeg libavcodec-extra-52
- run the following command:
ffmpeg -i video1.flv -f mp3 track1.mp3
That’s it!
Your file should be converted by now.
Note
At first, I had the following error when running ffmpeg:
Unsupported codec for output stream #0.0
This was solved by installing ”libavcodec-extra-52” package as suggested above.
[...] ensure ffmpeg is installed with appropriate codecs (see convert .flv file into .mp3 file (ie. extract sound from .flv file) [...]