[FFmpeg-user] Two videos within one movie alongside each other
Lou
lou at lrcd.com
Mon Jun 18 02:38:48 CEST 2012
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'
More information about the ffmpeg-user
mailing list