[MEncoder-users] "New video file has different resolution or colorspace" when concatenating and scaling files

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed Apr 28 21:19:38 CEST 2010


On Tue, Apr 27, 2010 at 04:37:51PM -0500, stattik wrote:
> Concatenating multiple files works fine as long as there is no scaling
> involved.  When scaling is involved, I get the following error:
> 
> [swscaler @ 02518c80]Lanczos scaler, from yuv420p to yuv420p using MMX2
> New video file has different resolution or colorspace than the previous one.
> FATAL: Cannot initialize video driver.
> 
> Both files are from the same camera and so should have all the same
> audio/video properties.
> I've uploaded the test samples to
> ftp://upload.mplayerhq.hu/MPlayer/incoming/Concatenating_and_scaling_error/
> 
> Here's the output:
> 
> mencoder.exe -mc 2 "Z:\Video\Capture\testfiles\00011-part1.MTS"
> "Z:\Video\Capture\testfiles\00011-part2.MTS"  -sws 9 -lavdopts
> threads=2 -ovc x264 -x264encopts
> bitrate=3000:level_idc=40:frameref=1:bframes=4:b_adapt=2:weight_b:b_pyramid=normal:deblock=-1,-1:direct_pred=auto:subq=2:trellis=0:partitions=none:me=dia:threads=auto:mbtree=no:nopsnr:force-cfr
>  -oac pcm -af volnorm -vf scale=640:272, -fps 60000/1001 -ofps
> 30000/1001  -o "Z:\Video\Capture\testfiles\00011-part1.avi"

No surprise, you are only scaling the second video.
If you want an option to apply to all videos, you must put the options before all input files.


More information about the MEncoder-users mailing list