[MEncoder-users] Cojoin two videos into one.

Moritz Barsnick barsnick at gmx.net
Thu May 12 16:01:52 CEST 2011


Hi Ivan,

On Tue, May 10, 2011 at 17:23:06 -0600, Ivan Sy, Jr. wrote:
> On the left side will be feed from CameraA and the right side is feed from
> CameraB and saved in one file. Its like a split screen video of some sort -
> and if feed from any of the camera is shut, then it will just have a black
> blank screen on its side.

Interesting scenario! I have been thinking of ways to do similar stuff
as well.

In the recent mencoder (unmaintained) vs. ffmpeg (not yet nearly as
flexible) discussions, I have missed the mention of other tool chains
such as gstreamer. Please tell me if I'm flamebait and need to duck!
;-) (I'm no gstreamer advocate, I have hardly used it, except for
trying out such examples.)

I mention gstreamer because it _basically_ supports such things. I have
bookmarked this article:
http://mairin.wordpress.com/2009/08/26/open-source-portable-usability-testing-lab/
The same should be possible with v4l sources - if you manage to figure
out the gstreamer pipeline stuff.

That article in turn refers to this one:
http://blogs.gnome.org/halfline/2009/10/11/video-4-way-split-screen-gstreamer-pipeline/
which point out this shell code:
http://git.gnome.org/browse/usability-lab/tree/eb1304-to-ogg.sh#n93

(But recently I have learned that it's probably nicer to write that as a
C programming using the gstreamer API. A matter of taste.)

Hope this helps,
let us know if and how you figure it out,
Moritz


More information about the MEncoder-users mailing list