Ffmpeg/Cheatsheet

From braindump
Revision as of 21:53, 20 June 2014 by Uroesch (talk | contribs) (→‎Converting from m4a to ogg)
(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. After the work has been completed delet the orignial. File deletion can be commented out if required.

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