Skip to content

Instantly share code, notes, and snippets.

View zinzinday's full-sized avatar
🏠
Working from home

Nghia Nguyen zinzinday

🏠
Working from home
View GitHub Profile
@zinzinday
zinzinday / ffmpeg.sh
Created September 30, 2016 19:23 — forked from charlee/ffmpeg.sh
ffmpeg tips
# 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'
#!/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