Sunday, September 23, 2012

Batch convert videos and reduce filesize

*Must have ffmpeg to run the code below
#!/bin/bash
for i in *.MPG
do 
    ffmpeg -i ${i/.*/}.MPG -qscale 2.5 ${i/.*/}.mp4
    # ffmpeg -i $i.MPG -sameq $i.mp4
done

No comments:

Post a Comment