[MPlayer-dev-eng] WTF?! mga_vid
Attila Kinali
kinali at gmx.net
Sun Mar 24 20:59:40 CET 2002
On Sun, 24 Mar 2002 11:15:08 +0100
Gabucino <gabucino at mplayer.dev.hu> wrote:
> Anyone can play http://mplayerhq.hu/~gabucino/test/mpeg4-bug/mpeg4.avi with
> mga_vid kernelmodule ?
> strace shows mplayer tries to open /dev/mga_vid _two_ times, then prints:
Seems to be something in interaction with avcodec, as odvix works fine:
too slow:
---schnipp---
attila at pc-attila:/tmp# ~/src/mplayer/main/mplayer -vo xmga mpeg4.avi -vfm 5 -v
MPlayer CVS-020324-20:32-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU vendor name: GenuineIntel max cpuid level: 2
CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Type: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile mplayer from sources with --disable-runtime-cpudetection
Reading /home/attila/.mplayer/codecs.conf: 30 audio & 80 video codecs
CommandLine: '-vo' 'xmga' 'mpeg4.avi' '-vfm' '5' '-v'
get_path('font/font.desc') -> '/home/attila/.mplayer/font/font.desc'
Font /home/attila/.mplayer/font/font.desc loaded successfully! (140 chars)
Linux RTC init error: Permission denied
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
Falling back on default (hardcoded) config
Playing mpeg4.avi
Not an URL!
File size is 1531912 bytes
Detected AVI file format!
list_end=0xD4
======= AVI Header =======
us/frame: 40000 (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames total: 300 initial: 0
streams: 1
Suggested BufferSize: 0
Size: 640 x 360
list_end=0xD4
==> Found video stream: 0
======= STREAM Header =======
Type: vids FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 250000/10000 = 25.000
Start: 0 Len: 300
Suggested BufferSize: 17883
Quality 0
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 360
biPlanes 1
biBitCount 24
biCompression 1482049860='DIVX'
biSizeImage 691200
===========================
Regenerating keyframe table for DIVX 4 video
Broken chunk? chunksize=1828 (id=JUNK)
list_end=0x174D40
Found movie at 0x80C - 0x174D40
Reading INDEX block, 300 chunks for 300 frames
Broken chunk? chunksize=0 (id=idx1)
Reading INDEX block, 300 chunks for 300 frames
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0xA1A)
Auto-selected AVI video ID = 0
AVI_NI: No Audio stream found... ->nosound
AVI: Searching for audio stream (id:-1)
AVI: No Audio stream found... ->nosound
AVI video length=1522652
VIDEO: [DIVX] 640x360 24bpp 25.00 fps 1015.1 kbps (123.9 kbyte/s)
[V] filefmt:3 fourcc:0x58564944 size:640x360 fps:25.00 ftime:=0.0400
get_path('sub/') -> '/home/attila/.mplayer/sub/'
==========================================================================
Trying to force video codec driver family 5 ...
Opening Video Decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec: CPU flags: mmx
INFO: libavcodec init OK!
VDec: vo config request - 640 x 360, Planar YV12
Movie-Aspect is undefined - no prescaling applied.
VO: [xmga] 640x360 => 640x360 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(640x360->640x360,flags=0,'MPlayer',0x32315659)
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)
[xmga] x: 0 y: 0 w: 640 h: 360
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 360
[xmga] x: 0 y: 0 w: 640 h: 360
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 360
Detected video codec: [ffodivx] drv:5 prio:0 (FFmpeg OpenDivX)
==========================================================================
Error in mga_vid_config ioctl(): Invalid argument
Could not get luma values from the kernel module!
Audio: no sound!!!
Freeing 0 unused audio chunks
Start playing...
VDec: vo config request - 640 x 360, Planar YV12
Movie-Aspect is 1.00:1 - prescaling to correct movie aspect.
VO: [xmga] 640x360 => 640x640 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(640x360->640x640,flags=0,'MPlayer',0x32315659)
open: Device or resource busy
Couldn't open /dev/mga_vid
FATAL: Cannot initialize video driver!
Using MMX Optimized OnScreenDisplay
X11 Window 6x27-640x360
X11 Window 6x27-640x360
[xmga] x: 0 y: 0 w: 640 h: 360
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 360
Error in mga_vid_config ioctl (wrong mga_vid.o version?)V: 0.0 2 0% 0% ds_fill_buffer: EOF reached (stream: video)
EOF code: 1
vo: uninit!
*** free_stream() called ***
Exiting... (End of file)
---schnapp---
fast enough:
---schnipp---
attila at pc-attila:/tmp# ~/src/mplayer/main/mplayer -vo xmga mpeg4.avi -v
MPlayer CVS-020324-20:32-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)
CPU vendor name: GenuineIntel max cpuid level: 2
CPU: Intel Celeron Covington/Pentium II Deschutes,Tonga/Pentium II Xeon (Type: 6, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To get best performance, recompile mplayer from sources with --disable-runtime-cpudetection
Reading /home/attila/.mplayer/codecs.conf: 30 audio & 80 video codecs
CommandLine: '-vo' 'xmga' 'mpeg4.avi' '-v'
get_path('font/font.desc') -> '/home/attila/.mplayer/font/font.desc'
Font /home/attila/.mplayer/font/font.desc loaded successfully! (140 chars)
Linux RTC init error: Permission denied
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
Falling back on default (hardcoded) config
Playing mpeg4.avi
Not an URL!
File size is 1531912 bytes
Detected AVI file format!
list_end=0xD4
======= AVI Header =======
us/frame: 40000 (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames total: 300 initial: 0
streams: 1
Suggested BufferSize: 0
Size: 640 x 360
list_end=0xD4
==> Found video stream: 0
======= STREAM Header =======
Type: vids FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 250000/10000 = 25.000
Start: 0 Len: 300
Suggested BufferSize: 17883
Quality 0
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 360
biPlanes 1
biBitCount 24
biCompression 1482049860='DIVX'
biSizeImage 691200
===========================
Regenerating keyframe table for DIVX 4 video
Broken chunk? chunksize=1828 (id=JUNK)
list_end=0x174D40
Found movie at 0x80C - 0x174D40
Reading INDEX block, 300 chunks for 300 frames
Broken chunk? chunksize=0 (id=idx1)
Reading INDEX block, 300 chunks for 300 frames
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0xA1A)
Auto-selected AVI video ID = 0
AVI_NI: No Audio stream found... ->nosound
AVI: Searching for audio stream (id:-1)
AVI: No Audio stream found... ->nosound
AVI video length=1522652
VIDEO: [DIVX] 640x360 24bpp 25.00 fps 1015.1 kbps (123.9 kbyte/s)
[V] filefmt:3 fourcc:0x58564944 size:640x360 fps:25.00 ftime:=0.0400
get_path('sub/') -> '/home/attila/.mplayer/sub/'
==========================================================================
Opening Video Decoder: [odivx] DivX4Linux lib (odivx mode)
INFO: OpenDivX video codec init OK!
VDec: vo config request - 640 x 360, Planar YV12
Movie-Aspect is undefined - no prescaling applied.
VO: [xmga] 640x360 => 640x360 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(640x360->640x360,flags=0,'MPlayer',0x32315659)
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)
[xmga] x: 0 y: 0 w: 640 h: 360
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 360
[xmga] x: 0 y: 0 w: 640 h: 360
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 360
Detected video codec: [odivx] drv:3 prio:0 (OpenDivX (MPEG-4 v2))
==========================================================================
Error in mga_vid_config ioctl(): Invalid argument
Could not get luma values from the kernel module!
Audio: no sound!!!
Freeing 0 unused audio chunks
Start playing...
Using MMX Optimized OnScreenDisplay
X11 Window 6x27-640x360
X11 Window 6x27-640x360
[xmga] x: 0 y: 0 w: 640 h: 360
[xmga] dcx: 6 dcy: 27 dx: 0 dy: 0 dw: 640 dh: 360
ds_fill_buffer: EOF reached (stream: video)
EOF code: 1
vo: uninit!
*** free_stream() called ***
Exiting... (End of file)
---schnapp---
HTH
Attila Kinali
--
I am a moslem, i am a terrorist.
More information about the MPlayer-dev-eng
mailing list