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

stattik stattik at gmail.com
Tue Apr 27 23:37:51 CEST 2010


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"
MEncoder Sherpya-SVN-r31027-4.2.5 (C) 2000-2010 MPlayer Team
success: format: 0  data: 0x0 - 0xbca000
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)!  PROGRAM N. 1
FPS seems to be: 59.940060
[V] filefmt:29  fourcc:0x10000005  size:1280x720  fps:59.940  ftime:=0.0167
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Slow
x264 [info]: profile High, level 4.0
Fontconfig error: Cannot load default config file
Fontconfig failed to select a font. Trying without fontconfig...
Fontconfig failed to select a font. Trying without fontconfig...
Pos:   0.0s      1f ( 8%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
Skipping frame!
Pos:   0.0s      3f ( 8%)  0.00fps Trem:   0min   0mb  A-V:-0.006 [0:0]
Skipping frame!
Pos:   0.0s      5f ( 8%)  0.00fps Trem:   0min   0mb  A-V:-0.017 [0:0]
Skipping frame!
Pos:   0.0s      7f ( 8%)  0.00fps Trem:   0min   0mb  A-V:-0.032 [0:0]
Skipping frame!
Pos:   0.0s     13f ( 8%)  0.00fps Trem:   0min   0mb  A-V:-0.029 [0:0]
Skipping frame!
Pos:   0.0s     25f (13%)  0.00fps Trem:   0min   0mb  A-V:-0.033 [0:0]
Skipping frame!
Writing header...1f (16%) 17.83fps Trem:   0min   0mb  A-V:-0.061 [0:0]
ODML: vprp aspect is 16:9.
Setting audio delay to 0.067s.
Writing header...
ODML: vprp aspect is 16:9.
Setting audio delay to 0.067s.
Pos:   2.3s     99f (51%)  9.68fps Trem:   0min   2mb  A-V:-0.033 [3064:1536]
Skipping frame!
Pos:   3.9s    150f (78%)  9.61fps Trem:   0min   2mb  A-V:-0.067 [3059:1536]
1 duplicate frame(s)!
success: format: 0  data: 0x0 - 0x90f000:   0min   3mb  A-V:-0.030 [3033:1536]
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) NO SUBS (yet)!  PROGRAM N. 1
FPS seems to be: 59.940060
[V] filefmt:29  fourcc:0x10000005  size:1280x720  fps:59.940  ftime:=0.0167
Input fps will be interpreted as 59.940 instead.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=640 h=272]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
[h264 @ 01ea0260]Cannot parallelize deblocking type 1, decoding such
frames in sequential order
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 025259a0]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.

Exiting...


Any help is greatly appreciated.

-- 
stattik


More information about the MEncoder-users mailing list