[FFmpeg-user] multiple inputs into a single frame

JULIAN GARDNER joolzg at btinternet.com
Tue Sep 18 21:58:45 CEST 2012


Ok im trying to take 3 videos and produce a single video with all 3 side by side, with no audio

I took a demo command line for 2 videos and tried adding a 3rd but i get an error stating the video is out of range

2 across
ffmpeg -i 1.avi -vf "[in] scale=128:128, pad=720:576 [left]; movie=3.avi, scale=128:128 [right]; [left][right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.t

3 across
ffmpeg.exe -i 1.ts -vf "[in] scale=128:128, pad=720:576 [left]; movie=2.ts, scale=128:128 [middle]; movie=2.ts, scale=128:128 [right]; [left][middle] overlay=160:16, [right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.ts

encoder at encoder0:~/Vod$ ffmpeg -i 1.avi -vf "[in] scale=128:128, pad=720:576 [left]; movie=2.avi, scale=128:128 [middle]; movie=3.avi, scale=128:128 [right]; [left][middle] overlay=160:16, [right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.ts
ffmpeg version N-44223-gc5278cb Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep  7 2012 00:48:04 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libx264 --extra-libs=/usr/lib/libssl.so.0.9.8 --extra-libs=/usr/lib/libcrypto.so.0.9.8
  libavutil      51. 72.100 / 51. 72.100
  libavcodec     54. 55.100 / 54. 55.100
  libavformat    54. 25.105 / 54. 25.105
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3. 15.104 /  3. 15.104
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[avi @ 0x34a8240] non-interleaved AVI
Input #0, avi, from '1.avi':
  Metadata:
    encoder         : VirtualDubMod 1.5.4.1 (build 2178/release)
    IAS1            : English
  Duration: 01:38:26.44, start: 0.000000, bitrate: 1589 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x416 [SAR 1:1 DAR 45:26], 23.98 tbr, 23.98 tbn, 23.98 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 256 kb/s
[avi @ 0x34ce660] non-interleaved AVI
[mpeg4 @ 0x34ceea0] Invalid and inefficient vfw-avi packed B frames detected
[avi @ 0x350ba60] non-interleaved AVI
[mpeg4 @ 0x3514a60] Invalid and inefficient vfw-avi packed B frames detected
[Parsed_overlay_7 @ 0x3542a40] Overlay area (204,16)<->(924,592) not within the main area (0,0)<->(128,128) or zero-sized
[auto-inserted scaler 0 @ 0x3544d80] Failed to configure input pad on Parsed_overlay_7
Error opening filters!

Also 1 extra question, how do i place the 1st video at offset 16,16.

joolz


More information about the ffmpeg-user mailing list