FFMPEG

  • Remove audio with the -an flag
  • -c copy: This is an option meaning trimming video via stream copy, which is fast and will not re-encode video.

Compress Images

ffmpeg -i file.jpg -q:v 10 file-compressed.jpg

Cutting audio

ffmpeg -ss 00:01:40 -to 00:02:00 -i original.mp3 output.mp4
 
ffmpeg -i "concat:input1|input2" -codec copy output.mkv

Cutting videos

ffmpeg -i video.mkv -ss 00:01:40 -to 00:02:00 -c copy output.mp4

Joining videos

for f in *.mp4 ; do echo file \'$f\' >> fileList.txt; done
ffmpeg -f concat -safe 0 -i fileList.txt -c copy output.mp4