Batch convert video with ffmpeg


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.