combining ffmpeg commands for batch conversion
Quote:
|
Something like
Code:
find . -iregex '.*\.\(m4a\|opus\|webm\|ogg\)$' -execdir bash -c 'NAME="{}" && ffmpeg -y -i "$NAME" -ab 360k "${NAME%.*}.mp3" && rm "$NAME"' \; Code:
shopt -s globstar extglob nullglob |
i'm not sure what you are trying to achieve (regular, automated conversions? one shot?) but i think you should write yourself a proper shell script for this, instead of angling for a one-liner (why?).
also, the && assumes that the previous find command returns true, keep that in mind. |
Quote:
|
All times are GMT -5. The time now is 06:02 PM. |