You are not logged in.

#1 2021-11-23 21:07:57

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,333
Website

mix two 1080p videos into a new 3840x1080 video [solved]

I have two 1920x1080x30fps videos from two different security cameras. I would like put them in a new 3840x1080 video (cam1 on left and cam2 on right).

I have been playing with kdenlive and found that I can use two "Composite" compositions but I have to make each one 50% size to arrange them side-by-side. That means there is a a 1920x540 black space above them. Any video editors reading this know how can I make kdenlive treat the final project as 3840x1080 and have it compose the two next to each other without resizing them?  If not kdenlive, I am open to using other tools.  Thanks.

Last edited by graysky (2021-11-24 09:42:55)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2021-11-23 21:35:58

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,675
Website

Re: mix two 1080p videos into a new 3840x1080 video [solved]


Back on Arch
--- ugjka.net ---
"Learning the hard way is the only way for many."

Offline

#3 2021-11-24 09:42:43

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,333
Website

Re: mix two 1080p videos into a new 3840x1080 video [solved]

Thanks for the link, ugjka.  I got this reply from my post in the kde forums.

berndmj wrote:

You cannot do this in kdenlive directly but in ffmpeg CLI. Here is what you need to do:

  • Put the clips into the timeline V1 and V2

  • Apply a transform effect to both

  • In each transform effect
       

    • Check the Distort box and set size to 50%

    • Change the H value to, say, 1080

    • Align the clips by clicking on align left/right respectively, and center vertically

  • Render the project with the default settings

  • Open a terminal (cmd.exe in Windows) and navigate to the directory where you saved the rendered file

  • Enter

    ffmpeg -i <your_render_filename> -s 3840x540 -aspect 4:1 <output_filename>

Voila!

Using this method offered me a way to align the two videos as they were not of equal lengths nor runtimes.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB