
Cropping and Trimming Videos w/ ffmpeg or avconv
Trim Video: Take 5 seconds starting at second 2
sudo ffmpeg -y -i input.mp4 -vf trim=2:7 trimmedOutput.mp4
Crop Video: Take area with size 1536x864 at position (192,108)
sudo ffmpeg -y -i input.mp4 -vf crop=1536:864:192:108 croppedOutput.mp4
Trim & Crop Video: Take area with size 1536x864 at position (192,108) for 5 seconds starting at second 2
sudo ffmpeg -y -i input.mp4 -vf trim=2:7,crop=1536:864:192:108 trimmedAndCroppedOutput.mp4