Skip to content

Instantly share code, notes, and snippets.

@gizmola
Created May 23, 2013 20:34
Show Gist options
  • Select an option

  • Save gizmola/5639226 to your computer and use it in GitHub Desktop.

Select an option

Save gizmola/5639226 to your computer and use it in GitHub Desktop.
php--ffmpeg skeleton
<?php
$ffmpeg
->setthreads(2)
->setProber($ffprober)
->setTimeout(3600);
echo 'ffmpeg timeout set to: ' . $ffmpeg->getTimeout() . "\n";
$x264->setResizeMode(X264::RESIZEMODE_SCALE_WIDTH)
->setDimensions(1, $targetheight)
->setKiloBitrate($vbr)
->setAudioCodec('libfaac');
$ffmpeg->open($this->_localAsset)
->encode($x264, $targetAsset)
->close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment