2

I have two separate video fields (top.avi and bottom.avi) and I would like to merge them to create an interlaced video.

Is it possible to do this with ffmpeg? (or any other tool for Windows or Linux)

ffmpeg log:

Input #0, avi, from 'top.avi':
  Metadata:
    encoder         : Lavf58.20.100
  Duration: 00:03:16.03, start: 0.000000, bitrate: 13509 kb/s
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv420p, 640x224, 13506 kb/s, SAR 1:1 DAR 20:7, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc

Input #1, avi, from 'bottom.avi':
  Metadata:
    encoder         : Lavf58.20.100
  Duration: 00:03:16.03, start: 0.000000, bitrate: 13507 kb/s
    Stream #0:0: Video: ffv1 (FFV1 / 0x31564646), yuv420p, 640x224, 13503 kb/s, SAR 1:1 DAR 20:7, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
2
  • Share the log of ffmpeg -i top.avi -i bottom.avi
    – Gyan
    Commented Apr 29, 2019 at 10:06
  • @Gyan Ok, here you go.
    – gamrest
    Commented Apr 29, 2019 at 10:24

1 Answer 1

1

Use

ffmpeg -i top.avi -i bottom.avi -filter_complex vstack,il=l=i:c=i -c:v ffv1 il.avi

See docs for http://www.ffmpeg.org/ffmpeg-filters.html#vstack and http://www.ffmpeg.org/ffmpeg-filters.html#il

2
  • Thank you so much Gyan, that is exactly what I was looking for.
    – gamrest
    Commented Apr 29, 2019 at 10:37
  • Could anyone please explain this a bit? Commented Dec 28, 2019 at 16:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.