[Mplayer-advusers] [BUG] hardframedrop doesn't work

Attila Kinali kinali at gmx.net
Sun Dec 14 17:51:16 CET 2003


On Wed, 10 Dec 2003 10:47:22 +0100
Gabucino <gabucino at localhost.localdomain> wrote:

> -hardframedrop button has no effect.
> Anyone?

Well, tried to reproduce it and it had an effect: sig11 ^^'

---
(gdb) run -v /tmp/HDTV_Wishing_on_the_same_star.mpg -hardframedrop
Starting program: /home/attila/src/mplayer/main/mplayer -v /tmp/HDTV_Wishing_on_the_same_star.mpg -hardframedrop
[New Thread 16384 (LWP 9197)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale

MPlayer dev-CVS-030228-14:06-2.95.4  (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Duron Spitfire 953.0 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/attila/.mplayer/config
Reading /home/attila/.mplayer/codecs.conf: This codecs.conf is too old and incompatible with this MPlayer release! at line 6
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '/tmp/HDTV_Wishing_on_the_same_star.mpg' '-hardframedrop'
init_freetype
get_path('font/font.desc') -> '/home/attila/.mplayer/font/font.desc'
Font /home/attila/.mplayer/font/font.desc loaded successfully! (140 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
get_path('input.conf') -> '/home/attila/.mplayer/input.conf'
Can't open input config file /home/attila/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('HDTV_Wishing_on_the_same_star.mpg.conf') -> '/home/attila/.mplayer/HDTV_Wishing_on_the_same_star.mpg.conf'

Playing /tmp/HDTV_Wishing_on_the_same_star.mpg.
[file] File size is 340656132 bytes
STREAM: [file] /tmp/HDTV_Wishing_on_the_same_star.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8542c48  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8542c48  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8542c48  
Checking for REAL
DEMUXER: freeing demuxer at 0x8542c48  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8542c48  
DEMUXER: freeing demuxer at 0x85435e8  
DEMUXER: freeing demuxer at 0x85435e8  
Searching demuxer type for filename /tmp/HDTV_Wishing_on_the_same_star.mpg ext: .mpg
Checking for MOV
DEMUXER: freeing demuxer at 0x85435e8  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x85435e8  
DEMUXER: freeing demuxer at 0x85435e8  
DEMUXER: freeing demuxer at 0x85435e8  
DEMUXER: freeing demuxer at 0x85435e8  
DEMUXER: freeing demuxer at 0x85435e8  
DEMUXER: freeing demuxer at 0x85435e8  
DEMUXER: freeing demuxer at 0x85435e8  
Checking for PVA
DEMUXER: freeing demuxer at 0x85435e8  
Checking for MPEG-TS...
TRIED UP TO POSITION 72784, FOUND 47, packet_size= 0, SEEMS A TS? 0
DEMUXER: freeing demuxer at 0x85435e8  
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851704
LMLM4 Stream Format not found
DEMUXER: freeing demuxer at 0x85435e8  
system stream synced at 0xD (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
size restrictions for MP at ML or MPEG1 exceeded! (1024x576)
VIDEO:  MPEG2  1024x576  (aspect 3)  29.970 fps  15000.0 kbps (1875.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:1024x576  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/attila/.mplayer/sub/'
get_path('default.sub') -> '/home/attila/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 48000 Hz 224 kbit Stereo, BPF: 672
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 28000->192000 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours LAYER FULLSCREEN X atoms
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1024 x 576 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
Starting playback...
VDec: vo config request - 1024 x 576 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (1024x576->1024x576,flags=0,'MPlayer',0x32315659)
VO: [xmga] 1024x576 => 1024x576 Planar YV12 
VO: Description: Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)
VO: Author: Zoltan Ponekker <pontscho at makacs.poliod.hu>
[mga] Using 3 buffers.
Using colorkey: ff00
[xmga] x: 64 y: 144 w: 1024 h: 576
[xmga] dcx: 64 dcy: 144 dx: 0 dy: 0 dw: 1024 dh: 576
*** [vo] Allocating mp_image_t, 1024x576x12bpp YUV planar, 884736 bytes
[xmga] x: 0 y: 0 w: 1024 h: 576
[xmga] dcx: 64 dcy: 144 dx: 0 dy: 0 dw: 1024 dh: 576
*** [vo] Allocating mp_image_t, 1024x576x12bpp YUV planar, 884736 bytes

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 9197)]
(gdb) bt
#0  0x0814c28b in mpeg2_set_buf (mpeg2dec=0x8559910, buf=0x85a0bd0, 
    id=0x85a0bb0) at decode.c:383
#1  0x081041bf in decode (sh=0x8545f90, data=0x85a0bd0, len=139827472, flags=0)
    at vd_libmpeg2.c:147
#2  0x080fef73 in decode_video (sh_video=0x8545f90, start=0x85a0bb0 "", 
    in_size=140118960, drop_frame=0) at dec_video.c:304
#3  0x080acf89 in main (argc=4, argv=0xbffff7b4) at mplayer.c:2087
(gdb) l
378         fbuf->buf[0] = buf[0];
379         fbuf->buf[1] = buf[1];
380         fbuf->buf[2] = buf[2];
381         fbuf->id = id;
382         // HACK! FIXME! At first I frame, copy pointers to prediction frame too!
383         if (mpeg2dec->custom_fbuf && !mpeg2dec->fbuf[1]->buf[0]){
384             mpeg2dec->fbuf[1]->buf[0]=buf[0];
385             mpeg2dec->fbuf[1]->buf[1]=buf[1];
386             mpeg2dec->fbuf[1]->buf[2]=buf[2];
387             mpeg2dec->fbuf[1]->id=NULL;
(gdb) p mpeg2dec->fbuf   
$2 = {0x8559cb0, 0x0, 0x8559cd0}
(gdb) up
#1  0x081041bf in decode (sh=0x8545f90, data=0x85a0bd0, len=139827472, flags=0)
    at vd_libmpeg2.c:147
147                 mpeg2_set_buf(mpeg2dec, mpi->planes, mpi);
(gdb) l
142                                 MP_IMGFLAG_DRAW_CALLBACK:0)
143                     : (MP_IMGFLAG_PRESERVE|MP_IMGFLAG_READABLE),
144                     (info->sequence->picture_width+15)&(~15),
145                     (info->sequence->picture_height+15)&(~15) );
146                 if(!mpi) return 0; // VO ERROR!!!!!!!!
147                 mpeg2_set_buf(mpeg2dec, mpi->planes, mpi);
148                 if (info->current_picture->flags&PIC_FLAG_TOP_FIELD_FIRST)
149                     mpi->fields |= MP_IMGFIELD_TOP_FIRST;
150                 else mpi->fields &= ~MP_IMGFIELD_TOP_FIRST;
151                 if (info->current_picture->flags&PIC_FLAG_REPEAT_FIRST_FIELD)
(gdb) p mpi->planes
$3 = {0x0, 0x0, 0x0, 0x0}
---

The file is a hdtv rip and works fine w/o -hardframedrop and also with -framedrop
It seems to be that mplayer crashes when it musst drop a frame

If anyone wants the file, i can upload it tomorrow.

			Attila Kinali

			Attila Kinali

-- 
egp ist vergleichbar mit einem ikea bausatz fuer flugzeugtraeger
			-- reeler in +kaosu



More information about the MPlayer-advusers mailing list