Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- exec("ffmpeg -i $video -vn -acodec libvorbis -ab 128k -dash 1 " . $create . "_audio.webm");
- exec("ffmpeg -i $video -c:v libvpx-vp9 -keyint_min 150 \
- -g 150 -tile-columns 4 -frame-parallel 1 -f webm -dash 1 \
- -an -vf scale=160:190 -b:v 250k -dash 1 ".$create."_160x90_250k.webm \
- -an -vf scale=320:180 -b:v 500k -dash 1 ".$create."_320x180_500k.webm ");
- unlink( $video );
- exec('ffmpeg \
- -f webm_dash_manifest -i '.$create.'_160x90_250k.webm \
- -f webm_dash_manifest -i '.$create.'_320x180_500k.webm \
- -f webm_dash_manifest -i '.$create.'_audio.webm \
- -c copy -map 0 -map 1 -map 2\
- -f webm_dash_manifest \
- -adaptation_sets "id=0,streams=0,1 id=1,streams=2" \
- '.upload_customer( $upload['dir'] . '/manifest' ).'.mpd');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement