scale960:720 Scaling the video slightly to bring it back to your original 720p, the 960 is to keep it at a nice 4x3 ratio.
preset slow -movflags +faststart 'Stille Tage inĬlichy_c_3_scale_1_2_hqdn3d_2_1_12_slow.mp4'įfmpeg -i input.mp4 forgot the quotation mark " at the end of the filter chain:įfmpeg -i input.mp4 can be omitted if there is only one crop filter in the filter chain. Quick explanation: cropiw-400:ih-40 Cropping 400 from the input width (iw) (2x200 left/right) Cropping 40 from the input height (ih) (2x20 top/bottom) You can cut a little more off if you want a 'crisper' edge. I was successful with this approach:įfmpeg -i 'Stille Tage in Clichy.mpg' -vf Nice if I could use -duration, but that does not work sadly.īy the way: how should I do it when I want to use five parts of the video?įfmpeg-user mailing unsubscribe, visit link above, or with subject "unsubscribe". The minor problem is that I have to calculate the offset. The major problem is that I do not have audio from the second part of Sometimes I have to cut parts out of a video. Iw, ih These are the same as in_w and in_h.Am um 16:30 schrieb Cecil Westerhof via ffmpeg-user:Īm um 15:33 schrieb Cecil Westerhof via ffmpeg-user:Īm um 13:47 schrieb Cecil Westerhof via ffmpeg-user:
In_h and out_h are the width and height of the original / input video. If you want to cut the top NUMBER of pixels (and none at the bottom) you have to do crop=in_w:in_h-NUMBER:0:in_h-out_h If the input height is 800 and the output height if 600, y will default to (800-600)/2 = 100, which means the box of height 600 will start 100 pixels down from the top edge (you end up cutting 100 pixels from the top and 100 from the bottom). Y The vertical position, in the input video, of the top edge of the output video. X The horizontal position, in the input video, of the left edge of the output video. It sets x and y to center the (smaller) crop area on the original image by default (ie it will take out the center of the image with the size you passed to crop). But I didn't understand why there were not 4 axis.