Originally Posted by
MrsUser
I really like how efficient the results are with the command line. I wouldn't use it for stuff like cropping though
Cropping via command line is easy once you try it a few times, and you can use ffplay to get a quick preview. Imagine this input is 640x480 and I want to remove 40 pixels: 20 from the top and 20 from the bottom to make an output of 640x440:
Code:
ffplay -i input -vf crop=iw:ih-40
Is same as:
Code:
ffplay -i input -vf crop=640:480-40
Is same as:
Code:
ffplay -i input -vf crop=640:440
Then you can use ffmpeg to crop and re-encode the video and copy the audio stream since you don't need to process it which can preserve quality and is faster than encoding:
Code:
ffmpeg -i input -vf crop=iw:ih-40 -codec:v libx264 -crf 23 -preset medium -codec:a copy output.mkv
See the filtering introduction and crop documentation for more examples.
Bookmarks