How can I clip a video spatially using FFMPEG, with no border added, and no quality degradation? So basically I just need to split the video into 4 parts to separate the videos, like the frame below:
-
1What I see is tiling a video in a 2x2 layout. If that's what you want, it's not possible without re-encoding.– GyanJun 17, 2016 at 6:32
-
I see. So is there a way to do that at least without quality degradations?– Tina JJun 17, 2016 at 14:25
-
1@Mulvya could be done using HEVC tiles + some encoding constraints. Which is for sure not possible in this case but just wanted to mention this.– Dimitri PodborskiJun 20, 2016 at 18:29
-
re-encoding is fine! How can I use a tile command?– Tina JJun 20, 2016 at 18:33
-
I just don't want to decrease quality or get a huge file size-wise!– Tina JJun 20, 2016 at 18:33
Add a comment
|
1 Answer
I found an answer which worked perfectly for me, and the quality is almost intact:
ffmpeg -i input_320x240.avi -vf crop=<w>:<h>:<x>:<y> output_300x220.avi
w = Output width
h = Output height
x = X co-ordinate of output image in the input image
y = Y co-ordinate of output image in the input image
-
Obviously I, and others, have misinterpreted what you actually wanted to do in your question.– lloganJun 21, 2016 at 0:28
-