Template:Merging two y4m videos side-by-side: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Merging two y4m videos side-by-side | == Merging two y4m videos side-by-side == | ||
To combine two y4m videos into a single video (with the input videos displayed side-by-side), do: | |||
<pre> | <pre> | ||
ffmpeg -i | ffmpeg -i left.y4m -i right.y4m -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw*2:ih[bg]; \ | ||
[1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" a_b_compare.y4m | [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" a_b_compare.y4m | ||
</pre> | </pre> | ||
Substitute <code>ffmpeg</code> with <code>avconv</code> if needed. |
Latest revision as of 13:53, 17 June 2015
Merging two y4m videos side-by-side
To combine two y4m videos into a single video (with the input videos displayed side-by-side), do:
ffmpeg -i left.y4m -i right.y4m -filter_complex "[0:v]setpts=PTS-STARTPTS, pad=iw*2:ih[bg]; \ [1:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=w" a_b_compare.y4m
Substitute ffmpeg
with avconv
if needed.