[MEncoder-users] different resolution or colorspace, while encoding 2 video files into single one.

Grozdan Nikolov microchip at chello.be
Tue Aug 7 12:22:52 CEST 2007


On Tuesday 07 August 2007 11:32, Samuel Lu wrote:
> Hi all mencoder fans,
>
> if i've 2 mpgs, whose file format listed below:

you cannot merge 2 files together which have different resolutions. The only 
way to merge them together, is to encode for example the second one with the 
same resolution as the first one

your first mpg (c2-25a.mpg) has a resolution of 352x240 while your second one 
(c2-27.mpg) has a resolution of 320x240. Also both mpgs have a different 
frame rate (first one 29.97, second one 25fps). you can't merge them unless 
they both have the same FPS

first mpg:

> ID_FILENAME=c2-25a.mpg
> ID_VIDEO_WIDTH=352
> ID_VIDEO_HEIGHT=240
> ID_VIDEO_FPS=29.970

second mpg: 


> ID_FILENAME=c2-27.mpg
> ID_VIDEO_WIDTH=320
> ID_VIDEO_HEIGHT=240
> ID_VIDEO_FPS=25.000

>
> As i would like to merge these 2 mpgs into a single one MPEG file, the
> mencoder give me the following fatal message:
>
> VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
> [PP] Using external postprocessing filter, max q = 6.
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
>
> New video file has different resolution or colorspace than the previous
> one. FATAL: Cannot initialize video driver.
>
> Exiting...
>
>
> This is my cmd:
>
> /usr/bin/mencoder -o BallBouncingInertia.mpg -oac mp3lame -ovc lavc
> -lavcopts aspect=16/9 vcodec=msmpeg4v2:vbitrate=800   -vf spp,scale
> c2-25a.mpg c2-27.mpg
>
> And i'd think that mencoder may need other more options to avoid this
> problem, who can help me doing with this?
>
>
> Best Regards,
> ---------------------
> samuel at Taiwan
> Department of Physics
> National Taiwan University
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users



More information about the MEncoder-users mailing list