mencoder crashes during encoding an mpeg file

Bug report and feature request
Post Reply
endmarsfr
Beginner
Beginner
Posts: 9
Joined: Sun Jul 13, 2008 5:18 pm

mencoder crashes during encoding an mpeg file

Post by endmarsfr » Sun Jul 13, 2008 5:51 pm

Hi everybody,

Could you please download this little file (less than 512 Kb).
http://rapidshare.com/files/129313759/bug.mpg.html

When i used mediacoder Version 0.6.1 build 4135 to convert this bug.mpg movie to an xvid avi using settings indicated below (in command lines), mencoder crashes.
FYI, when i disabled resizing, mencoder not crashed. I think the crash occurs because it's unable to resize the video.

Thanks you for your help.

Here are the command lines generated by mediacoder :

MediaCoder Version 0.6.1 build 4135 (built on Jul 11 2008, 01:25:54)

MediaCoder is a free software distributed under MPL license.
(C)2005-08 Stanley Huang <stanleyhuangyc@gmail.com>. All Rights Reserved.

Processor: Intel(R) Pentium(R) 4 CPU 3.00GHz (2772Mhz)
Processor Cores: 2

# ".\codecs\mencoder.exe" -channels 2 -subcp cp1252 -sub-fuzziness 1 -subfont-au
toscale 3 -subfont-blur 2 -subfont-outline 2 -vf crop=720:576:0:0,scale=512:384:
0:0:0.00:0.50,harddup -sws 2 -idx "E:\tv enregistrÚe\bug.mpg" -passlogfile "D:\T
EMP\mcpass3492.log" -of rawvideo -ovc xvid -xvidencopts threads=2:autoaspect:tre
llis:chroma_me:chroma_opt:hq_ac:quant_type=h263:bquant_ratio=150:bquant_offset=1
00:bvhq=1:me_quality=6:vhq=1:max_bframes=0:bitrate=1060:turbo=1:pass=1 -nosound
-o NUL

MEncoder dev-SVN-rUNKNOWN-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 4, Stepping: 3)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0 data: 0x0 - 0x7c000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 15000.0 kbps (1875.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.000 ftime:=0.0400
xvid: using library version 1.2.-127 (build xvid-1.2.0-dev)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=512 h=384 interlaced=0 chr-drop=0 param=0.00 para
m2=0.50]
Opening video filter: [crop w=720 h=576 x=0 y=0]
Crop: 720 x 576, 0 ; 0
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 7 -> 8
SwScaler: reducing / aligning filtersize 7 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6
[swscaler @ 0pc858cc]BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0pc858cc]using 8-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0pc858cc]using 8-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0pc858cc]using n-tap MMX scaler for vertical scaling (YV12 like)
[swscaler @ 0pc858cc]720x576 -> 512x384
videocodec: XviD (512x384 fourcc=44495658 [XVID])
xvid: par=1/1 (ext), displayed=512x384, sampled=512x384
xvid: bitrate setting is ignored during first pass
xvid: 2Pass Rate Control -- 1st pass
New_Face failed. Maybe the font path is wrong.n 0mb A-V:0.000 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[mpeg2video @ 0pc9b390]00 motion_type at 40 23n 0mb A-V:0.000 [0:0]

# ".\codecs\mencoder.exe" -channels 2 -subcp cp1252 -sub-fuzziness 1 -subfont-au
toscale 3 -subfont-blur 2 -subfont-outline 2 -vf crop=720:576:0:0,scale=512:384:
0:0:0.00:0.50,harddup -sws 2 -idx "E:\tv enregistrÚe\bug.mpg" -passlogfile "D:\T
EMP\mcpass3492.log" -ovc xvid -xvidencopts threads=2:autoaspect:trellis:chroma_m
e:chroma_opt:hq_ac:quant_type=h263:bquant_ratio=150:bquant_offset=100:bvhq=1:me_
quality=6:vhq=1:max_bframes=0:pass=2:bitrate=1060 -oac mp3lame -lameopts cbr:br=
96 -o "E:\tv enregistrÚe\bug.avi"

MEncoder dev-SVN-rUNKNOWN-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 4, Stepping: 3)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0 data: 0x0 - 0x7c000
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 15000.0 kbps (1875.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x576 fps:25.000 ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
xvid: using library version 1.2.-127 (build xvid-1.2.0-dev)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=512 h=384 interlaced=0 chr-drop=0 param=0.00 para
m2=0.50]
Opening video filter: [crop w=720 h=576 x=0 y=0]
Crop: 720 x 576, 0 ; 0
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
MP3 audio selected.
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 7 -> 8
SwScaler: reducing / aligning filtersize 7 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6
[swscaler @ 0pc858cc]BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0pc858cc]using 8-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0pc858cc]using 8-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0pc858cc]using n-tap MMX scaler for vertical scaling (YV12 like)
[swscaler @ 0pc858cc]720x576 -> 512x384
videocodec: XviD (512x384 fourcc=44495658 [XVID])
xvid: par=1/1 (ext), displayed=512x384, sampled=512x384
xvid: 2Pass Rate Control -- 2nd pass -- bitrate=1060kbit/s
New_Face failed. Maybe the font path is wrong.n 0mb A-V:0.000 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...
ODML: vprp aspect is 4:3.
Writing header...
ODML: vprp aspect is 4:3.
[mpeg2video @ 0pc9b390]00 motion_type at 40 23in 0mb A-V:0.076 [0:0]
File E:\tv enregistrÚe\bug.avi is scheduled to be added into container as type 2
.
File E:\tv enregistrÚe\bug.avi is scheduled to be added into container as type 1
.

B!ink
Expert
Expert
Posts: 1275
Joined: Sun Nov 26, 2006 9:08 am

Post by B!ink » Mon Jul 14, 2008 6:26 am

Under Video Tab, uncheck auto select box next to source. Select MPlayer as source.

Mencoder will no longer crash.

endmarsfr
Beginner
Beginner
Posts: 9
Joined: Sun Jul 13, 2008 5:18 pm

Post by endmarsfr » Tue Jul 15, 2008 3:09 am

Thank you B!ink for for your help.

I tried, to used mplayer as source instead of mencoder, but i had an another error (error code 013, no file is outputed) a the end of file, even if the source file can be played well by mplayer

endmarsfr
Beginner
Beginner
Posts: 9
Joined: Sun Jul 13, 2008 5:18 pm

Post by endmarsfr » Sun Jul 20, 2008 7:50 am

Thank you B!ink again for for your help

As i said before i tried the solution you had suggested (mplayer as source), but it failed.

But i tried to use ffmpeg as source and it worked fine, but the encoding is 2 time slower than using mencoder.

For me there is no issue for mediacoder and this topic is closed because the problem has been solved. The issue is only due to mencoder.

Thank you B!ink & Stanley for your job.

:)

stanley
Site Admin
Site Admin
Posts: 4135
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Post by stanley » Tue Jul 22, 2008 2:32 am

Keep an eye on the up-coming updates, it is quote possible the mencoder in a certain update might have the problem solved. The MPlayer/MEncoder folks work very hard.
When things work together, things work.

endmarsfr
Beginner
Beginner
Posts: 9
Joined: Sun Jul 13, 2008 5:18 pm

Post by endmarsfr » Mon Aug 11, 2008 6:59 pm

Thank you Stanley,

I have new clues about this problem.

I tried to add "pp=ha/va/dr" to the mencoder command and mencoder has not crashed.

I used an older version of mediacoder (0.6.1 build 4075) and I found that "pp=ha/va/dr" was generated at this time.

I found that :
1/if any post processing (pp=ci or pp=ha) filter is enabler mencoder didn't crashes.

2/ if no post processing are enabled, the command line should look like that : "-vf crop=720:576:0:0,pp=,scale=512:384:0:0:0.00:0.50"

if command look like "-vf crop=720:576:0:0, scale=512:384:0:0:0.00:0.50", mencoder crashes.

Could you please tell me what do you think about that ? and if it could be taken as a new issue ?



Best regards

damker
Beginner
Beginner
Posts: 4
Joined: Sun Dec 30, 2007 9:03 am

Post by damker » Sat Sep 06, 2008 3:02 pm

Regarding the mencoder.exe issue I just unchecked the auto select boxes but left the choices MEncoder active (did not change to another Source or Encoder).
It seams that the system requires to be told what encoder to select.
After that no problem.
Cheerio.
D.

Post Reply