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
| # losslessly concat mp4 files | |
| ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts | |
| ffmpeg -i input2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts | |
| ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4 | |
| # concat files with the same format | |
| # 1. create a file list | |
| file '/path/to/file1' | |
| file '/path/to/file2' | |
| file '/path/to/file3' |
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
| #!/bin/bash | |
| #sudo -i | |
| cd /tmp | |
| printf "Add repositories" | |
| sudo apt-get install software-properties-common | |
| sudo sudo apt-get install python-software-properties | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
| sudo add-apt-repository ppa:nginx/stable | |
| sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db |
NewerOlder