Skip to content

Instantly share code, notes, and snippets.

@lg3bass
Last active April 16, 2020 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lg3bass/ad65309e79e8d9a730f9acef345856c7 to your computer and use it in GitHub Desktop.
Save lg3bass/ad65309e79e8d9a730f9acef345856c7 to your computer and use it in GitHub Desktop.
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