[FFmpeg-devel] Compositing streams side by side
stefasab at gmail.com
Thu Nov 17 00:18:03 CET 2011
On date Wednesday 2011-11-16 13:11:25 -0500, compn encoded:
> On Wed, 16 Nov 2011 18:43:05 +0100, Stefano Sabatini wrote:
> >On date Wednesday 2011-11-16 06:39:12 -0500, compn encoded:
> >> On Wed, 3 Aug 2011 10:25:27 -0400, Matthew Brown wrote:
> >> >I have a video conferencing application I am working on, and we need
> >> >to take the two input streams as received by the Wowza (Flash-type)
> >> >server and join them together side-by-side, saving that new joined
> >> >video out to a new file for archive. The Wowza folks point us over to
> >> >ffmpeg for accomplishing such a thing. Is ffmpeg the answer on this one?
> >> there are instructions for using mencoder here:
> >> http://www.mtbs3d.com/phpBB/viewtopic.php?f=27&t=4521&start=30
> >> and ffmpeg + imagemagick and some voodoo here:
> >> http://linux-tipps.blogspot.com/2011/06/create-side-by-side-or-top-bottom-3d.html
> >> a way to do this in one step would be useful. :)
> >libavfilter + pad + overlay, although a more convenient compose filter
> >would be nice.
> could you make a full working example command line out of two streams
> for us libavfi newbs?
Completely untested, supposing the first video has size w1xh1, the
second video has size w2xh2:
ffmpeg -i input1 -vf
"movie=input2; scale=w2xh2 [right_side]; [in] pad=iw+w2:max(ih, h2):0:0 [left_side];
[left_side][right_side]overlay=w1:0 [out]" output
> maybe put it on the wiki:
Or maybe here:
so every user can do that.
FFmpeg = Fundamental Faithful Majestic Puristic Evangelical Goblin
More information about the ffmpeg-devel