Created
August 8, 2018 05:57
-
-
Save Cazzar/951cdba7d38c32d45c9d2c925bffcd2b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i $1 -vn -acodec libvorbis -ab 128k -dash 1 $2/audio.webm | |
ffmpeg -i $1 -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 $2/video_160x90_250k.webm \ | |
-an -vf scale=320:180 -b:v 500k -dash 1 $2/video_320x180_500k.webm \ | |
-an -vf scale=640:360 -b:v 750k -dash 1 $2/video_640x360_750k.webm \ | |
-an -vf scale=640:360 -b:v 1000k -dash 1 $2/video_640x360_1000k.webm \ | |
-an -vf scale=1280:720 -b:v 1500k -dash 1 $2/video_1280x720_1500k.webm \ | |
-an -vf scale=1920:1080 -b:v 5300k -dash 1 $2/video_1920x1080_5300k.webm | |
pushd $2 | |
ffmpeg \ | |
-f webm_dash_manifest -i video_160x90_250k.webm \ | |
-f webm_dash_manifest -i video_320x180_500k.webm \ | |
-f webm_dash_manifest -i video_640x360_750k.webm \ | |
-f webm_dash_manifest -i video_1280x720_1500k.webm \ | |
-f webm_dash_manifest -i video_1920x1080_5300k.webm \ | |
-f webm_dash_manifest -i audio.webm \ | |
-c copy \ | |
-map 0 -map 1 -map 2 -map 3 -map 4 -map 5 \ | |
-f webm_dash_manifest \ | |
-adaptation_sets "id=0,streams=0,1,2,3,4 id=1,streams=5" \ | |
my_video_manifest.mpd | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment