Last active
December 15, 2015 09:38
-
-
Save topher6345/5239360 to your computer and use it in GitHub Desktop.
A bash shell script using ffmpeg to encode all the .mov files in the current directory to Motion-Jpeg, to use in MaxMSP/Jitter.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script using ffmpeg to convert all the .mov files in the current | |
# directory to "Motion Jpeg".mov codec | |
# Remember to $chmod | |
for ff in *.mov; | |
do | |
filename=$(basename $ff) | |
extension=${filename##*.} | |
filename=${filename%.*} | |
mkdir converted | |
#echo "ffmpeg -i ${ff} -an -pix_fmt yuvj420p -vcodec mjpeg -f mov -y ${filename}vj.mov" # test | |
ffmpeg -i ${ff} -an -pix_fmt yuvj420p -vcodec mjpeg -f mov -y converted/${filename}vj.mov | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment