Ffmpeg/Cheatsheet

From braindump
Revision as of 21:45, 20 June 2014 by Uroesch (talk | contribs) (Created page with "== Converting from m4a to ogg == Converting a bunch of file from <tt>.m4a</tt> to <tt>.ogg</tt> under ksh or bash. for file in *m4a; do [[ -f ${file%.m4a}.ogg ]] || ff...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Converting from m4a to ogg

Converting a bunch of file from .m4a to .ogg under ksh or bash.

for file in *m4a; do 
    [[ -f  ${file%.m4a}.ogg ]] || ffmpeg -i "$file" -acodec libvorbis "${file%.m4a}.ogg"; 
done