<p>Use</p>

<p><code>ffmpeg -i top.avi -i bottom.avi -filter_complex vstack,il=l=i:c=i -c:v ffv1 il.avi</code></p>

<p>See docs for <a href="http://www.ffmpeg.org/ffmpeg-filters.html#vstack" rel="nofollow noreferrer">http://www.ffmpeg.org/ffmpeg-filters.html#vstack</a> and <a href="http://www.ffmpeg.org/ffmpeg-filters.html#il" rel="nofollow noreferrer">http://www.ffmpeg.org/ffmpeg-filters.html#il</a></p>

CC BY-SA 4.0
2019-04-29T10:37:19.910Z
Thank you so much Gyan, that is exactly what I was looking for.
gamrest
CC BY-SA 4.0
2019-12-28T16:48:07.107Z
Could anyone please explain this a bit?
Ondra Žižka
CC BY-SA 4.0
2019-04-29T10:28:43.980Z
2019-04-29T10:28:43.980Z
Gyan
<p>I have two separate video fields (<em>top.avi</em> and <em>bottom.avi</em>) and I would like to merge them to create an interlaced video.</p>

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

<p><strong>ffmpeg log:</strong></p>

<pre><code>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
</code></pre>

CC BY-SA 4.0
2019-04-29T10:06:50.477Z
Share the log of `ffmpeg -i top.avi -i bottom.avi`
Gyan
CC BY-SA 4.0
2019-04-29T10:24:45.690Z
@Gyan Ok, here you go.
gamrest
<video><ffmpeg><windows><filter><linux>
Combining two video fields into one (to create an interlaced video)
gamrest
# Combining two video fields into one (to create an interlaced video)

(Asked by: username_0 on 2019-04-29)

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

**Tags:** video, ffmpeg, windows, filter, linux

> **Comments:**
> **username_1**: Share the log of `ffmpeg -i top.avi -i bottom.avi`  
> **username_0**: @username_1 Ok, here you go.  

---

## 1 answers

### Answer by username_1 on 2019-04-29. Score: 1 | Accepted answer

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>

> **Comments:**
> **username_0**: Thank you so much username_1, that is exactly what I was looking for.  
> **username_2**: Could anyone please explain this a bit?  

---

