[FFmpeg-user] side by side videos
Lorenzo Perone
lorenzo.perone at gmail.com
Mon Mar 25 17:30:59 CET 2013
Hi Teemu,
I've tried your suggestion and I've used this string:
ffmpeg.exe -i realtime_test1.mp4 -filter_complex "[in] scale=642:1050,
> pad=1284:1050 [left]; movie=realtime_test2.mp4, scale=642:1050;
> [left][right] overlay=642:0 [out]" Output.mp4
here is my output (if it could be usefull in my previous post there is a
link to my test files):
C:\Temp\ffmpeg\bin>ffmpeg.exe -i realtime_test1.mp4 -filter_complex "[in]
> scale=
> 642:1050, pad=1284:1050 [left]; movie=realtime_test2.mp4, scale=642:1050;
> [left]
> [right] overlay=642:0 [out]" Output.mp4
> ffmpeg version N-51211-ge0e8c20 Copyright (c) 2000-2013 the FFmpeg
> developers
> built on Mar 22 2013 09:01:53 with gcc 4.7.2 (GCC)
> configuration: --enable-gpl --enable-version3 --disable-w32threads
> --enable-av
> isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
> --enab
> le-libass --enable-libbluray --enable-libcaca --enable-libfreetype
> --enable-libg
> sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb
> --enable-libo
> pencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp
> --enable-li
> bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
> --enable-lib
> twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
> --enabl
> e-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
> libavutil 52. 22.101 / 52. 22.101
> libavcodec 55. 1.100 / 55. 1.100
> libavformat 55. 0.100 / 55. 0.100
> libavdevice 55. 0.100 / 55. 0.100
> libavfilter 3. 48.100 / 3. 48.100
> libswscale 2. 2.100 / 2. 2.100
> libswresample 0. 17.102 / 0. 17.102
> libpostproc 52. 2.100 / 52. 2.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'realtime_test1.mp4':
> Metadata:
> major_brand : mp42
> minor_version : 1
> compatible_brands: mp42mp41
> creation_time : 2013-03-25 13:48:36
> Duration: 00:02:41.86, start: 0.000000, bitrate: 93 kb/s
> Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 /
> 0x31637661), yu
> v420p, 642x1050, 92 kb/s, 2.43 fps, 2.43 tbr, 2428 tbn, 4856 tbc
> Metadata:
> creation_time : 2013-03-25 13:48:36
> handler_name : Apple Video Media Handler
> [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000023cd5c0] Invalid stream specifier: in.
> Last message repeated 1 times
> Stream specifier 'in' in filtergraph description [in] scale=642:1050,
> pad=1284:1
> 050 [left]; movie=realtime_test2.mp4, scale=642:1050; [left][right]
> overlay=642:
> 0 [out] matches no streams.
Bye.
lorenzo
Lorenzo Perone
photoblog: http://lorenzoperone.wordpress.com
website: http://blog.spaziogis.it
GEO+ geomatica in Italia *http://bit.ly/GEOplus*
2013/3/25 Teemu Likonen <tlikonen at iki.fi>
> Lorenzo Perone [2013-03-25 15:54:23 +0100] wrote:
>
> >> Simple filtergraph '[in] scale=642:1050, pad=1284:1050 [left];
> >> movie=realtime_te
> >> st2.mp4, scale=642:1050; [left][right] overlay=642:0 [out]' does not
> have
> >> exactl
> >> y one input and output.
>
> > I'm a little bit confused...
>
> You should use -filter_complex instead of -vf for such complex
> filtergraphs with multiple inputs.
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list