Хочу смерджить 3 *.avi файла в один. Пишу в косоли следующую последовательность команд:
jcdenton@unatco-pc$ cat file1.avi file2.avi file3.avi > file.avi
jcdenton@unatco-pc$ mencoder -forceidx -oac copy -ovc xvid -xvidencopts chroma_opt:vhq=2:bvhq=1:quant_type=mpeg:bitrate=1500 -noskip -mc 0 -vf crop=592:448:0:0 file.avi -o file_.avi
После чего получаю следующее:
MEncoder svn r34540 (Ubuntu), built with gcc-4.7 (C) 2000-2012 MPlayer Team
success: format: 0 data: 0x0 - 0xbd8bc000
libavformat version 53.21.0 (external)
Mismatching header version 53.19.0
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
Generating Index: 99 %
AVI: Generated index table for 505325 chunks!
VIDEO: [XVID] 592x448 12bpp 25.000 fps 2292.0 kbps (279.8 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:592x448 fps:25.000 ftime:=0.0400
xvid: using library version 1.3.2 (build xvid-1.3.2)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [crop w=592 h=448 x=0 y=0]
Crop: 592 x 448, 0 ; 0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.35.0 (external)
Mismatching header version 53.32.2
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
audiocodec: framecopy (format=55 chans=2 rate=48000 bits=0 B/s=13136 sample-1)
Movie-Aspect is 1.32:1 - prescaling to correct movie aspect.
videocodec: XviD (592x448 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=592x448, sampled=592x448
xvid: CBR Rate Control -- bitrate=1500kbit/s
Pos: 0.0s 1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Writing header...
ODML: vprp aspect is 16384:12398.
Setting audio delay to 0.040s.
Writing header...
ODML: vprp aspect is 16384:12398.
Setting audio delay to 0.040s.
Pos:1916.9s 47924f (22%) 21.88fps Trem: 126min 1642mb A-V:0.000 [1498:105]
Movie-Aspect is 1.35:1 - prescaling to correct movie aspect.
New video file has different resolution or colorspace than the previous one.
FATAL: Cannot initialize video driver.
Exiting...
Я так понимаю, у файлов разное разрешение кадра и из-за этого Mencoder не может нормально переиндексировать итоговый файл. Как поправить данную проблему?