[FFmpeg-user] Number of stream maps must match number of output streams - having trouble with the syntax

Matt Goble mattgoble at gmail.com
Fri Jul 20 11:16:49 CEST 2012


I have a video file which appears to have a video / audio offset which is
causing my client some issues.

I've tried to google a solution, but I seem to be having an issue with
getting the syntax correct.

ffmpeg

-i "T:\INPUT.mov"
-itsoffset 0.48 -i "T:\INPUT.mov"
-map 1:0
-map 0:1
-map 0:2
-map 0:3
-map 0:4
-map 0:5
-vcodec copy
-acodec copy
"T:\OUTPUT.mov" -vcodec copy -newvideo -newaudio

FFmpeg version SVN-r25512, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct 18 2010 04:06:45 with gcc 4.4.2
  configuration: --enable-gpl --enable-version3 --enable-libgsm
--enable-pthread
s --enable-libvorbis --enable-libtheora --enable-libspeex
--enable-libmp3lame --
enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb
--enable-
libopencore_amrnb --enable-libvpx --arch=x86 --enable-runtime-cpudetect
--enable
-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp
--ext
ra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32
--enable-avisyn
th --cross-prefix=i686-mingw32- --cc='ccache i686-mingw32-gcc'
--enable-memalign
-hack
  libavutil     50.32. 3 / 50.32. 3
  libavcore      0. 9. 1 /  0. 9. 1
  libavcodec    52.92. 0 / 52.92. 0
  libavformat   52.83. 0 / 52.83. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.52. 0 /  1.52. 0
  libswscale     0.12. 0 /  0.12. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\INPUT.mov':
  Duration: 00:32:55.60, start: 0.480000, bitrate: 58351 kb/s
    Stream #0.0(eng): Video: mpeg2video, yuv422p, 1920x1080 [PAR 1:1 DAR
16:9],
50000 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc
    Stream #0.1(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.2(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.3(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.4(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #0.5(eng): Data: tmcd / 0x64636D74
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'T:\INPUT.mov':
  Duration: 00:32:55.60, start: 0.480000, bitrate: 58351 kb/s
    Stream #1.0(eng): Video: mpeg2video, yuv422p, 1920x1080 [PAR 1:1 DAR
16:9],
50000 kb/s, 25 fps, 25 tbr, 2500 tbn, 50 tbc
    Stream #1.1(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #1.2(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #1.3(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #1.4(eng): Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s
    Stream #1.5(eng): Data: tmcd / 0x64636D74

Number of stream maps must match number of output streams

Any help greatly appreciated.

Thanks

Matt


More information about the ffmpeg-user mailing list