[FFmpeg-user] Using FFmpeg for horizontal video stitching for 3D video

Kevin Bergemann kjberg at umich.edu
Mon Jun 8 23:37:46 CEST 2015


Hello,

I'm trying to use ffmpeg to stitch two videos into a stereoscopic vid for
use on Oculus.  I'm using the current binary for Mac, following the
tutorial at
http://www.kolor.com/wiki-en/action/view/Autopano_Video_-_How_to_create_3D_360_videos_v2

The over/under stitching works with this command, slightly edited for use
on a Mac instead of Linux:

./ffmpeg -i left.mp4 -strict -2 -vf "[in] pad=iw:2*ih [left];
movie=right.mp4 [right];[left][right] overlay=0:main_h/2 [out]" output.mp4;

But I need left/right stitching.  Editing the left/right stitching command
in the same manner, so

./ffmpeg -i left.mp4 -strict -2 -vf "[in] pad=2*iw:ih [left];
movie=right.mp4 [right];[left][right] overlay=main_w/2:0 [out]” output.mp4;

is not working, and I'm uncertain why.  Thanks in advance for the help.

Full output follows:

ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl
--enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx
--disable-decoder=libvpx --enable-libmp3lame --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-avfilter
--enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters
--enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc
--arch=x86_64 --enable-runtime-cpudetect
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'left.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2015-05-27 23:03:11
  Duration: 00:02:55.80, start: 0.000000, bitrate: 28945 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz,
stereo, fltp, 156 kb/s (default)
    Metadata:
      creation_time   : 2015-05-27 23:03:14
      handler_name    : Mainconcept MP4 Sound Media Handler
    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
bt709), 4096x2048 [SAR 1:1 DAR 2:1], 28789 kb/s, 30 fps, 30 tbr, 30k tbn,
60 tbc (default)
    Metadata:
      creation_time   : 2015-05-27 23:03:14
      handler_name    : Mainconcept MP4 Video Media Handler
      encoder         : AVC Coding
[NULL @ 0x7ffe04854a00] Unable to find a suitable output format for
'pad=2*iw:ih'
pad=2*iw:ih: Invalid argument
-bash: [right]: command not found
-bash: [left][right]: command not found


More information about the ffmpeg-user mailing list