[MPlayer-users] Cropping causes black video

Uwe Pross keinFruehstuecksfleisch at gmx.net
Thu Dec 9 16:16:07 CET 2010


Hi there,

I am trying to reencode a rip from a dvd. I want to cut out a 16:9 rectangle and save it as mpeg4. The encoding works only without cropping:

This one works:
mencoder movie.mpg -o movie.avi -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000:autoaspect

This one produces a video with black contents:
mencoder movie.mpg -o movie.avi -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=5000:autoaspect -vf crop=544:416:88:80 

While:
mplayer movie.mpg -vf crop=544:416:88:80 
does exactly what I want.

This is the output of mplayer:
mplayer movie.mpg -vf crop=544:416:88:80
MPlayer SVN-r31918 (C) 2000-2010 MPlayer Team
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing movie.mpg.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7500.0 kbps (937.5 kbyte/s)
Opening video filter: [crop w=544 h=416 x=88 y=80]
Crop: 544 x 416, 88 ; 80
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [gl2] 544x416 => 773x416 Planar YV12 
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
[mpeg2video @ 0x8ab6bc0]warning: first frame is no keyframe
[VD_FFMPEG] DRI failure.
....

Any hints?

Thanks in advance, Uwe
-- 
GRATIS! Movie-FLAT mit über 300 Videos. 
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome


More information about the MPlayer-users mailing list