Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FFMPEG - Convert all videos in a directory (Examples)
//Convert all videos in a directory FLV > M4V (don't care bout quality)
for FILENM in *; do ffmpeg -y -i $FILENM ${FILENM%.*}.m4v; done;
//Converts all legacy .mov files in a directory to .mp4
//"-max_muxing_queue_size" source: https://trac.ffmpeg.org/ticket/6375
for FILENM in *;do ffmpeg -y -i $FILENM -crf 5 -max_muxing_queue_size 400 ${FILENM%.*}.mp4;done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment