Posted By

ping_ch on 02/24/09


Tagged

Bash video convert ffmpeg


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

matpolster


Batch convert video with ffmpeg


 / Published in: Bash
 

  1. #!/bin/bash
  2. for i in *MPG;
  3. do
  4. ORIGINAL=`basename $i .MPG`
  5. NEWNAME=${ORIGINAL}-S.mpg
  6. ffmpeg -i $i -f mp4 -b 1024k -vcodec mpeg4 -acodec libmp3lame -ar 44100 $NEWNAME
  7. done

Report this snippet  

You need to login to post a comment.