The command below will convert a directory of .flac files into .mp3s:
for f in *.flac; do ffmpeg -i "$f" -acodec libmp3lame -ab 320k "${f%.flac}.mp3"; done
To convert videos, we could use this command:
for f in *.flv; do ffmpeg -i "$f" "${f%.flv}.avi"; done
This converts a directory of .flv video files into .avi files.
Source: http://ubuntuforums.org/showthread.php?t=1096665
No comments:
Post a Comment