[MPlayer-users] black squares in encoded film

gaddo marco.gaddoni at teknolab.net
Wed May 12 19:12:14 CEST 2004


Hello!

I am seeing black squares in my encoding from dvd with mencoder.
(please see attacched image to see an example). The black squares
should be white ...

here is part of my encoding script ..

LAVCOPTS='vcodec=mpeg4:vbitrate=1350:mbd=2:vqmin=1:lmin=1:v4mv:pbias=-16:cmp=2:subcmp=2:psnr:vmax_b_frames=1:acodec=ac3:abitrate=224:trell:cbp'
 
mencoder -o test-p1.avi dvd://$TITLENUM -dvd-device $DVD -vf 
'crop=720:424:0:76,scale=640:288' -ovc lavc -lavcopts 
$LAVCOPTS:'vpass=1' -oac lavc -channels 6 -alang it
mencoder -o test-p2.avi dvd://$TITLENUM -dvd-device $DVD -vf 
'crop=720:424:0:76,scale=640:288' -ovc lavc -lavcopts 
$LAVCOPTS:'vpass=2' -oac lavc -channels 6 -alang it

i have tryed to isolate the minimus set of options and the minimum slice of
film but is hard to do because the effect is somewhat related to the
bitrate and the complexity of the images; I have seen the effect
without ac3, cbp and lmin=1.

in the first pass the images are _very_  blocky  but i can't  see the black
squares.

thanks in advance
ciao, marco.

$h/video/xxx/dvd/matrix > gcc --version
gcc (GCC) 3.2.3 (Debian)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
$h/video/xxx/dvd/matrix > uname -a
Linux enterprise 2.6.3 #1 Fri Feb 27 22:28:47 CET 2004 i686 GNU/Linux

here is a sample run of the second pass...

mencoder -o test-p2.avi dvd://1 -dvd-device 
../THE_MATRIX_REVOLUTIONS_D1-DONE/ -vf 'crop=720:424:0:76,scale=640:288' 
-ovc lavc -lavcopts 
'vcodec=mpeg4:vbitrate=1350:mbd=2:vqmin=1:lmin=1:v4mv:pbias=-16:cmp=2:subcmp=2:psnr:vmax_b_frames=1:acodec=ac3:abitrate=224:trell:cbp:cbp:vpass=2' 
-oac lavc -channels 6 -alang it
MEncoder dev-CVS--3.3.3 (C) 2000-2004 MPlayer Team
 
CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1394 MHz 
(Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
 
Reading /home/gaddo/.mplayer/codecs.conf: 58 audio & 148 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/gaddo/.mplayer/mencoder: No such file or directory
Font /home/gaddo/.mplayer/font/font.desc loaded successfully! (206 chars)
libdvdread: Couldn't find device name.
Reading disc structure, please wait...
There are 7 titles on this DVD.
There are 33 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
success: format: 0  data: 0x7EB800 - 0x5E2D8000
Selected DVD audio channel: 129 language: it
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7500.0 kbps (937.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 6 ch, 16 bit (0x10), ratio: 56000->576000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [scale w=640 h=288]
Opening video filter: [crop w=720 h=424 x=0 y=76]
Crop: 720 x 424, 0 ; 76
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg12] vfm:ffmpeg (FFmpeg MPEG 1/2)
==========================================================================
Building audio filter chain for 48000Hz/6ch/16bit -> 48000Hz/6ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not 
writing vprp header.
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6
 
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (640x288 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Pos:   0.0s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0.004 [0:0]
1 duplicate frame(s)!
Pos:   0.0s      3f ( 0%)   0fps Trem:   0min   0mb  A-V:0.008 [0:0]
1 duplicate frame(s)!
Pos:   1.4s     35f ( 0%)   1fps Trem:   0min   0mb  A-V:0.081 [21:223]
Skipping frame!
ODML: Starting new RIFF chunk at 1023MiB.6min 1299mb  A-V:0.044 [1228:224]
Pos:7437.7s 185944f (100%)  15fps Trem:   0min 1403mb  A-V:0.049 [1349:223]
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 16384:6789.
 
Video stream: 1349.877 kbit/s  (168734 bps)  size: 1254993872 bytes  
7437.680 secs  185944 frames
 
Audio stream:  224.000 kbit/s  (27999 bps)  size: 208258176 bytes  
7437.792 secsPSNR: Y:41.93, Cb:44.43, Cr:45.68, All:42.74

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xx.jpg
Type: image/jpeg
Size: 7352 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20040512/67bd0e51/attachment.jpg>


More information about the MPlayer-users mailing list