Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.91 KB | None | 0 0
  1.           exec("ffmpeg -i $video -vn -acodec libvorbis -ab 128k -dash 1 " . $create . "_audio.webm");
  2.  
  3.           exec("ffmpeg -i $video -c:v libvpx-vp9 -keyint_min 150 \
  4.                -g 150 -tile-columns 4 -frame-parallel 1  -f webm -dash 1 \
  5.                -an -vf scale=160:190 -b:v 250k -dash 1 ".$create."_160x90_250k.webm \
  6.                -an -vf scale=320:180 -b:v 500k -dash 1 ".$create."_320x180_500k.webm ");
  7.  
  8.           unlink( $video );
  9.  
  10.           exec('ffmpeg \
  11.                -f webm_dash_manifest -i '.$create.'_160x90_250k.webm \
  12.                -f webm_dash_manifest -i '.$create.'_320x180_500k.webm \
  13.                -f webm_dash_manifest -i '.$create.'_audio.webm \
  14.                -c copy -map 0 -map 1 -map 2\
  15.                -f webm_dash_manifest \
  16.                -adaptation_sets "id=0,streams=0,1 id=1,streams=2" \
  17.                '.upload_customer( $upload['dir'] . '/manifest' ).'.mpd');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement