View Single Post
  #2  
Old 04-16-2006, 03:09 AM
Stream Recorder
 
Posts: n/a
Default

ffmpeg: How to convert FLV to MP3 without losing any quality (demux/extract MP3)


Here is how to extract MP3 from FLV files residing in the directory and all its subdirectories:
Code:
find ./ -name '*.flv' -type f -exec ffmpeg -i {} -vn -acodec copy {}.mp3 \;
input.flv.mp3 will be extracted from input.flv
MP3 files will be saved into the same directory.


Shell script for extracting MP3s from FLV files using ffmpeg:
Code:
#!/bin/bash
for i in $(find -iname *.flv); do
filename='basename "$i" .flv'
echo "Extracting MP3 from $i"
ffmpeg -i $i -vn -acodec copy "$filename".mp3
Reply With Quote