Thursday, November 1, 2012

convert mov to avi and flac to mp3 with ffmpeg

# mov to avi

for m in $(find -name *.mov); do ffmpeg -i $m -sameq `basename $m .mov`.avi; done

or eventually if the sound does non work add: 

-acodec copy

# flac to mp3

for f in ./*.flac; do  avconv -i "${f}" -ab 300k -ac 2 -ar 48000  "`basename "${f}" .flac`.mp3"; done

ffmpeg -i input.flac -ab 196k -ac 2 -ar 48000 output.mp3

No comments:

Post a Comment