Originally Posted by
shantiq
so cool Fake how would you modify the syntax here [i tried and failed] to divide crop and splice horizontally [the other way] ?
I find breaking up the command so each filterchain is on its own line makes filtering easier to follow:
Code:
ffmpeg -i input -filter_complex \
"[0:v]crop=iw/3:ih:0:0[l]; \
[0:v]crop=iw/3:ih:iw-ow:0[r]; \
[l][r]hstack" \
output
The 4 colon separated parts of crop consist of:
Code:
crop=width:height:x position:y position
Imagine a 640x480 input. The second crop in the example:
Code:
crop=iw/3:ih:iw-ow:0
would be the same as:
Code:
crop=640/3:480:640-(640/3):0
which is the same as (approximately since I rounded):
From the 640x480 sized input this will make a 213x480 sized output. The 426 means the starting position from the crop will be 426 pixels over to the right.
See the crop filter documentation for info on each of those options.
Originally Posted by
coldraven
...he uses ffmpeg to butter his toast in the mornings
Thank you for the kind words, but butter sometimes gives me gas. To borrow andrew.46's signature:
Originally Posted by
Morpheus
You think that's air you're breathing now?
Originally Posted by
shantiq
...he probably could run a dating site with it :]
"Likes: filtergraphs, stream specifiers, muxing."
Ladies, please form an orderly queue.
Bookmarks