Recording
Sometimes I want to record the whole screen, but without any fancy tools.
Record 0:0 main screen with size X in x11 and save it to file Y.
ffmpeg -f x11grab -s 1920x1080 -i :0.0 out.mkv
Cutting
ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4 ffmpeg -ss 00:01:00 -to 00:02:00 -i input.mp4 -c copy output.mp4 $ ffmpeg -i input.mp4 -ss 00:05:20 -t 00:10:00 -c:v copy -c:a copy output1.mp4 $ ffmpeg -i input.mp4 -ss 00:05:10 -to 00:15:30 -c:v copy -c:a copy output2.mp4
Cut end
$ ffmpeg -sseof -600 -i input.mp4 -c copy output5.mp4 $ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output6.mp4
Merge
# videos.txt file 'input1.mp4' file 'input2.mp4' file 'input3.mp4' $ ffmpeg -f concat -i videos.txt -c copy output.mp4