[FFmpeg-user] Two videos within one movie alongside each other

Oliver Seitz info at vtnd.de
Mon Jun 18 08:10:50 CEST 2012


On 18.06.2012 02:38, Lou wrote:
>
>
> On Sat, Jun 16, 2012, at 04:45 PM, Andrew Gora wrote:
>> Hi,
>>
>>
>> Would someone advice how it is possible to place two videos alongside?
>> For example, to demonstrate deshake filter.
>>
>> I try many combinations, but...
>> For example, i thought that this should work:
>>
>> ffmpeg -i video_one -vf pad=2w:h:w:0:violet -i video_two -filter_complex
>> 'overlay=0:0'
>>
>>
>> Thank You in advance,
>> Andrew
>
> Clément Bœsch recently added this to libavfilter documentation for
> overlay:
>
> # play an original video and a filtered version (here with the deshake
> filter)
> # side by side
> ffplay input.avi -vf 'split[a][b]; [a]pad=iw*2:ih[src];
> [b]deshake[filt]; [src][filt]overlay=w'
>
> # the previous example is the same as:
> ffplay input.avi -vf 'split[b], pad=iw*2[src], [b]deshake,
> [src]overlay=w'

For two independent videos, I've loaded the second one via "movie" 
filter and overlayed it on the padded first video.

Greets,
Kiste



More information about the ffmpeg-user mailing list