Jump to content

batch file ffmpeg


shage

Recommended Posts

In bash..

for f in *.avi ; do
  ffmpeg -i /var/videos/incoming/$f -s 320x240 -ar 44100 -r 12 /var/videos/flv/${f%.*}.flv
done

 

and php...

<?php

  foreach(glob(*.avi) as $f) {
    exec("ffmpeg -i /var/videos/incoming/$f -s 320x240 -ar 44100 -r 12 /var/videos/flv/" . substr($f,0,strpos($f,'.')-1) . ".flv");
  }

?>

Link to comment
https://forums.phpfreaks.com/topic/81928-batch-file-ffmpeg/#findComment-416270
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.