[Mplayer-advusers] divx5 causes mplayer to open /dev/mga_vid twice

Attila Kinali kinali at gmx.net
Mon Apr 1 15:33:58 CEST 2002


Hi People,

I've got a nice effect: playing a divx5 file (episode 2 trailer)
causes mplayer to open mga_vid twice:

---schnipp---
$ grep open /tmp/strace.out | grep mga
open("/dev/mga_vid", O_RDWR|O_LARGEFILE) = 6
open("/dev/mga_vid", O_RDWR|O_LARGEFILE) = -1 EBUSY (Device or resource busy)
write(1, "Couldn\'t open /dev/mga_vid\nUsing"..., 167) = 167
---schnapp---

here the ouput of mplayer -v:
---schnipp---
$ mplayer -vo xmga ep2_clone_war_p640.avi  -v

MPlayer CVS-020331-18:51-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Type: 6, Stepping: 2)
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile mplayer from sources with --disable-runtime-cpudetection
CommandLine:Reading /home/attila/.mplayer/codecs.conf: 30 audio & 80 video codecs
get_path('font/font.desc') -> '/home/attila/.mplayer/font/font.desc'
 '-vo' 'xmga' 'ep2_clone_war_p640.avi' '-v'
Linux RTC init error: Permission denied
Using usleep() timing
Font /home/attila/.mplayer/font/font.desc loaded successfully! (140 chars)
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
Falling back on default (hardcoded) config
Playing ep2_clone_war_p640.avi
Can't open IFO file: No such file or directory
File size is 11242496 bytes
Not an URL!
Detected AVI file format!
==> Found video stream: 0
list_end=0x146
======= AVI Header =======
us/frame: 33333  (fps=30.000)
max bytes/sec: 185754
padding: 0
MainAVIHeader.dwFlags: (2064) HAS_INDEX TRUST_CKTYPE
frames  total: 4337   initial: 22
streams: 2
Suggested BufferSize: 17746
Size:  640 x 272
list_end=0xD4
found 'bih', 40 bytes of 40
======= STREAM Header =======
Type: vids   FCC: DIVX (58564944)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 30/1 = 30.000
Start: 0   Len: 4334
Suggested BufferSize: 17746
Quality 0
Sample size: 0
==> Found audio stream: 1
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 272
  biPlanes 1
  biBitCount 24
  biCompression 808802372='DX50'
  biSizeImage 522240
===========================
list_end=0x146
found 'wf', 30 bytes of 20
======= STREAM Header =======
Type: auds   FCC: U (55)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 22
Rate: 16000/1 = 16000.000
Start: 0   Len: 2312794
Suggested BufferSize: 16559
Quality 0
Sample size: 1
Broken chunk?  chunksize=1702  (id=JUNK)
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 16000
Block align: 1
bits/sample: 0
cbSize: 12
Found movie at 0x800 - 0xAA72F2
list_end=0xAA72F2
Reading INDEX block, 4480 chunks for 4337 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 4480 chunks for 4337 frames
stream_seek: WARNING! Can't seek to 0xABEED4 !
AVI index offset: 0x7FC (movi=0x800 idx0=0x4 idx1=0x1B90)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
Detected NON-INTERLEAVED AVI file-format!
AVI: Searching for audio stream (id:1)
XXX initial  v_pts=0.000  a_pos=0 (0.000) 
AVI video length=8819872
VIDEO:  [DX50]  640x272  24bpp  30.00 fps  488.4 kbps (59.6 kbyte/s)
[V] filefmt:3  fourcc:0x30355844  size:640x272  fps:30.00  ftime:=0.0333
get_path('sub/') -> '/home/attila/.mplayer/sub/'
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
Initializing audio codec...
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
Selecting Audio Decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: srate=44100  chans=2  bps=2  sfmt=0x10  ratio: 16000->176400
CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Type: 6, Stepping: 2)
mp3lib: made decode tables with MMX optimization
init layer2&3 finished, tables done
mp3lib: using MMX optimized decore!

MPEG 1.0, Layer III, 44100 Hz 128 kbit Joint-Stereo, BPF: 418
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
==========================================================================
INFO: libavcodec init OK!
Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec: CPU flags: mmx
VDec: vo config request - 640 x 272, Planar YV12  
Movie-Aspect is undefined - no prescaling applied.
VO: [xmga] 640x272 => 640x272 Planar YV12 
VO: Description: X11 (Matrox G200/G4x0/G550 overlay in window using /dev/mga_vid)
VO: Author: Zoltan Ponekker <pontscho at makacs.poliod.hu>
video_out->init(640x272->640x272,flags=0,'MPlayer',0x32315659)
[xmga] x: 0 y: 0 w: 640 h: 272
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 272
[xmga] x: 0 y: 0 w: 640 h: 272
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 272
Detected video codec: [ffodivx] drv:5 prio:0 (FFmpeg MPEG-4)
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 bits/pixel (":0.0" => local display)
Disabling DPMS
stat: 1
==========================================================================
AO: [oss] 44100Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
couldn't open/init audio device -> NOSOUND
Audio: no sound!!!
ao2: 44100 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
Can't open audio device /dev/dsp: Device or resource busy  -> no sound
Freeing 0 unused audio chunks
Start playing...
VDec: vo config request - 640 x 272, Planar YV12  
This file was encoded with DivX500 Build413
WARNING: this version of DivX is not MPEG4 compatible, trying to workaround these bugs...
Movie-Aspect is undefined - no prescaling applied.
VO: [xmga] 640x272 => 640x272 Planar YV12 
VO: Description: X11 (Matrox G200/G4x0/G550 overlay in window using /dev/mga_vid)
VO: Author: Zoltan Ponekker <pontscho at makacs.poliod.hu>
video_out->init(640x272->640x272,flags=0,'MPlayer',0x32315659)
open: Device or resource busy
FATAL: Cannot initialize video driver!
[xmga] x: 0 y: 0 w: 640 h: 272
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 272
V:   0.0    1   0%  0%  0.0% 0 0 0%
Couldn't open /dev/mga_vid
Using MMX Optimized OnScreenDisplay
X11 Window 6x27-640x272
X11 Window 6x27-640x272
Error in mga_vid_config ioctl (wrong mga_vid.o version?)
V:   0.0    2   0%  0%  0.0% 0 0 0%
V:   0.1    3   0%  0%  0.0% 0 0 0%
Exiting... (Quit)

*** free_stream() called ***
Successfully enabled DPMS
vo: uninit!
---schnapp---


		Attila Kinali


-- 
I am a moslem, i am a terrorist.



More information about the MPlayer-advusers mailing list