Last active
April 26, 2019 09:12
-
-
Save stultus/0fc0af989a77af4368b50e2040c535de to your computer and use it in GitHub Desktop.
This file contains 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
rm -rf 246 | |
rm -rf 426 | |
rm -rf 858 | |
rm -rf 1280 | |
rm -rf 1920 | |
mkdir 246 | |
mkdir 426 | |
mkdir 858 | |
mkdir 1280 | |
mkdir 1920 | |
mkdir audio | |
ffmpeg -i sample.mp4 -vf scale=246:-2 -x264opts 'keyint=59:min-keyint=59:no-scenecut' -strict -2 -r 30000/1001 246/sample.mp4 -y | |
ffmpeg -i sample.mp4 -vf scale=426:-2 -x264opts 'keyint=59:min-keyint=59:no-scenecut' -strict -2 -r 30000/1001 426/sample.mp4 -y | |
ffmpeg -i sample.mp4 -vf scale=858:-2 -x264opts 'keyint=59:min-keyint=59:no-scenecut' -strict -2 -r 30000/1001 858/sample.mp4 -y | |
ffmpeg -i sample.mp4 -vf scale=1280:-2 -x264opts 'keyint=59:min-keyint=59:no-scenecut' -strict -2 -r 30000/1001 1280/sample.mp4 -y | |
ffmpeg -i sample.mp4 -vf scale=1920:-2 -x264opts 'keyint=59:min-keyint=59:no-scenecut' -strict -2 -r 30000/1001 1920/sample.mp4 -y | |
cp 1920/sample.mp4 audio/sample.mp4 | |
cd 246; MP4Box -dash 2000 -frag 2000 -rap -frag-rap -profile onDemand sample.mp4#video; cd .. | |
cd 426; MP4Box -dash 2000 -frag 2000 -rap -frag-rap -profile onDemand sample.mp4#video; cd .. | |
cd 858; MP4Box -dash 2000 -frag 2000 -rap -frag-rap -profile onDemand sample.mp4#video; cd .. | |
cd 1280; MP4Box -dash 2000 -frag 2000 -rap -frag-rap -profile onDemand sample.mp4#video; cd .. | |
cd 1920; MP4Box -dash 2000 -frag 2000 -rap -frag-rap -profile onDemand sample.mp4#video; cd .. | |
cd audio; MP4Box -dash 2000 -frag 2000 -rap -frag-rap -profile onDemand sample.mp4#audio; cd .. | |
<Now we need to merge the different MPD files into One> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment