I have 4096x2048 resolution jpg image.
I want to divide the image into even odd line.
So, image pixel coordinate (1,1),(1,2)....(1,4096) and (3,1),(3,2)...(3,4096) ... are made into odd line image. And the new image file resolution will be 4096x1024.
I search many ffmpeg code.But i can't find that kind of code..
ffmpeg -i in.mp4 \
-filter_complex "[0]il=l=d:c=d,split[o][e];\
[o]crop=iw:ih/2:0:0[odd];\
[e]crop=iw:ih/2:0:ih/2[even]" \
-map "[odd]" -f rawvideo odd.yuv \
-map "[even]" -f rawvideo even.yuv
it is what i do for dividing the images(video) into even odd part.
how can i make it?