[FFmpeg-user] side by side videos

Lorenzo Perone lorenzo.perone at gmail.com
Sun Mar 24 17:31:02 CET 2013


Hi,
I need a little help :)
I'm trying to do a video screencast of a web page showing the real time
position of a pair of devices. In this video I would insert a second one
showing the screencasts of two devices monitor.
So now I've three videos: the web screencast and the screencasts of a pair
of devices.
The first step is to merge, side by side the two screencasts of the
devices. I'm using Mac osx so they are mov files (H.264) both of them are
large 622 pixels and 1036 pixels heigt.
I'd like to merge them in a 4:3 video, 1381 pixels large and height 1036
pixels.
The position on the X axis of the video would be like this:
0-34 pixel black band;

34 => 34+622 video1;

34+622 => 34+622+69 black band;

34+622+69 => 34+622+69+622 video2;

34+622+69+622 =>3 4+622+69+622+34 black band.

I'm using ffmpeg 1.2 in mac osx, I've tryed a little test with the string:

*ffmpeg -i realtime_test1.mov -vf "movie=realtime_test2.mov; scale=622;
> [in] pad=1244:max(1036, 1036):0:0; overlay=622:0" test.avi
> **ffmpeg version 1.2-tessus Copyright (c) 2000-2013 the FFmpeg developers
> **  built on Mar 15 2013 01:18:55 with llvm-gcc 4.2.1 (LLVM build
> 2336.1.00)
> **  configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm
> --extra-version=tessus --disable-shared --enable-static --disable-ffplay
> --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame
> --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
> --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb
> --enable-libopencore-amrwb --enable-libxavs --enable-version3
> --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx
> --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype
> --enable-libass --enable-filters --enable-runtime-cpudetect
> **  libavutil      52. 18.100 / 52. 18.100
> **  libavcodec     54. 92.100 / 54. 92.100
> **  libavformat    54. 63.104 / 54. 63.104
> **  libavdevice    54.  3.103 / 54.  3.103
> **  libavfilter     3. 42.103 /  3. 42.103
> **  libswscale      2.  2.100 /  2.  2.100
> **  libswresample   0. 17.102 /  0. 17.102
> **  libpostproc    52.  2.100 / 52.  2.100
> **[mov,mp4,m4a,3gp,3g2,mj2 @ 0x102016400] max_analyze_duration 5000000
> reached at 5238569 microseconds
> **[mov,mp4,m4a,3gp,3g2,mj2 @ 0x102016400] decoding for stream 0 failed
> **Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'realtime_test1.mov':
> **  Metadata:
> **    major_brand     : qt
> **    minor_version   : 0
> **    compatible_brands: qt
> **    creation_time   : 2013-03-21 12:12:39
> **  Duration: 00:10:17.68, start: -4.833333, bitrate: 59 kb/s
> **    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
> 1680x1050 [SAR 1:1 DAR 8:5], 56 kb/s, 1.15 fps, 60 tbr, 6k tbn, 12k tbc
> **    Metadata:
> **      creation_time   : 2013-03-21 12:12:39
> **      handler_name    : Core Media Data Handler
> **File 'test.avi' already exists. Overwrite ? [y/N] y
> **Failed to avformat_open_input 'realtime_test2.mov'
> **[AVFilterGraph @ 0x101b00920] Error initializing filter 'movie' with
> args 'realtime_test2.mov'
> **Error opening filters!*

What's wrong? I need to install another package?
Do you think thats my target is reasonable?
Thanks.
Bye.

Lorenzo Perone


More information about the ffmpeg-user mailing list