liquidkda.blogg.se

How to batch convert with ffmpeg mac
How to batch convert with ffmpeg mac












how to batch convert with ffmpeg mac

(again hope no typos and the date format probably needs verification - reference "bash shell on osx") $ for f in `find /Volumes/Media/myproject -name "take-*.mp4" -after "Jun 1 2019" -print` do cp $f /Volumes/pendrive/$f done $ for f in (*.mp4) do (put your command here using $f as each filename) doneĪnd you can do more powerful things like feed one command into another one, like using the FIND command to find every mp4 on the entire drive for example with additional qualifications like filesize or file date. Yes it is similar on a mac which uses the Real Unix(tm) shell, except the command shell is a real language in itself, not a bunch of faked-pseudo-commands like in windows (msdos 2.0 really) if it is not, then you must know the location of the ffmpeg program and specify that full directory to it (or copy it to C:\data or add it to PATH which is not something I will explain in this msg) Note: this assumes ffmpeg is in your PATH so stupid junky windows knows what the command ffmpeg means. edit: here's a link to microsoft's help area where they explain more about their stupid junk shell's FOR command hopefully I didnt make a typo because I dont use windows anymore.īy the way did i mention, windows is stupid junk. You can also type HELP FOR at the prompt I believe and it will tell you some tips.

how to batch convert with ffmpeg mac

now you know how to do many file operations in a batch. (windows' stupid junk command shell, essentially unimproved from QDOS)Ĭ:\data> for %f in (*.mp4) do ffmpeg -i %f.mp4 -vn -c:a copy new/%f.m4a I'm pretty sure you can write a script for FFmpeg (or use it in some kind of script), but I've never done it and with only 88 files it would be easier just to jump-in and do it manually.














How to batch convert with ffmpeg mac