[MPlayer-users] SVGAlib output doesn't work with libavcodec

Bernardo Silveira bernardojts at fln.terra.com.br
Thu Oct 10 02:38:02 CEST 2002


Hi,
I've tried using SVGAlib with MPlayer and since version 0.60 and
I couldn't do it. After some investigation I discovered that
with Win32 DLL's I could make it, but with libavcodec I couldn't.
Looking at the output of MPlayer, I discovered that SVGAlib was
complaining about using 32bpp (using libavcodec here), and when
using it with Win32 DLL's, it used 24bpp, which is supported by
my video card (SiS 5598). My question is: can I use SVGAlib with
libavcodec since, in my case, SVGAlib just works with 24bpp?

Note: I've tried using -bpp 24, but when playing, the screen starts
to blink and plays nothing.
Thanks in advance,

Bernardo Silveira
bernardojts at ig.com.br

PS: I was trying to use mencoder to transform the file in a 24bpp
file, but then I saw in a discussion in the list that bpp wasn't
in the file =].

QOTD: "I WANNA PLAY HEAVY MS-MPEG4 VIDEOS IN MY 233MHZ 32RAM!!!"

MPlayer's output with svgalib and win32 dll's
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer CVS-021007-23:30-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium MMX P55C (Family: 5, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading /home/beastieb/.mplayer/codecs.conf: 38 audio & 107 video codecs
CommandLine: '-vc' 'divx' '-framedrop' '-vo' 'svga' '-dr' '-v' '/mnt/mp/usr/share/mplayer/Operation Takedown.avi'
get_path('font/font.desc') -> '/home/beastieb/.mplayer/font/font.desc'
font: can't open file: /home/beastieb/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz)
get_path('input.conf') -> '/home/beastieb/.mplayer/input.conf'

Playing /mnt/mp/usr/share/mplayer/Operation Takedown.avi
Not an URL!
File size is 706809856 bytes
Detected AVI file format!
list_end=0x2292
======= AVI Header =======
us/frame: 40000  (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 137550   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 400
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25/1 = 25,000
Start: 0   Len: 137550
Suggested BufferSize: 120154
Quality 5000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 400
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 768000
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x2186
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 16000/1 = 16000,000
Start: 0   Len: 88032000
Suggested BufferSize: 8000
Quality -1
Sample size: 1
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=384
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
list_end=0x2292
Broken chunk?  chunksize=1382  (id=JUNK)
list_end=0x29DDE120
Found movie at 0x280C - 0x29DDE120
Reading INDEX block, 275089 chunks for 137550 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 275089 chunks for 137550 frames
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x1F4C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=612163988
VIDEO:  [DIV3]  640x400  24bpp  25,00 fps  890,1 kbps (108,7 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:640x400  fps:25,00  ftime:=0,0400
get_path('sub/') -> '/home/beastieb/.mplayer/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
init layer2&3 finished, tables done
mp3lib: using MMX optimized decore!

MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo_svga: preinit - maxframes=0
==========================================================================
Forced video codec: divx
Opening video decoder: [vfw] Win32/VfW video codecs
======= Win32 (VFW) VIDEO Codec init =======
Loading codec DLL: 'divxc32.dll'
Loaded DLL driver divxc32.dll
ICDecompressGetFormatSize ret: 40
ICDecompressGetFormat OK
VDec: vo config request - 640 x 400 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9
Using SIS driver, 4096KB. Chiptype=5
svgalib 1.4.3
VDec: using BGR 24-bit as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x400->640x400,flags=0,'MPlayer',0x42475218)
VO: [svga] 640x400 => 640x400 BGR 24-bit 
VO: Description: SVGAlib
VO: Author: Zoltan Mark Vician <se7en at sch.bme.hu>
vo_svga: vo_dbpp == 0, bpp: 24
vo_svga: Looking for the best resolution...
vo_svga: req_w: 640, req_h: 400, bpp: 24
vo_svga: vid_mode: 4, 640x480 4bpp
vo_svga: vid_mode: 9, 640x480 1bpp
vo_svga: vid_mode: 10, 640x480 8bpp
vo_svga: vid_mode: 11, 800x600 8bpp
vo_svga: vid_mode: 12, 1024x768 8bpp
vo_svga: vid_mode: 17, 640x480 15bpp
vo_svga: vid_mode: 18, 640x480 16bpp
vo_svga: vid_mode: 19, 640x480 24bpp
vo_svga: vid_mode: 20, 800x600 15bpp
vo_svga: vid_mode: 21, 800x600 16bpp
vo_svga: vid_mode: 22, 800x600 24bpp
vo_svga: vid_mode: 23, 1024x768 15bpp
vo_svga: vid_mode: 24, 1024x768 16bpp
vo_svga: vid_mode: 25, 1024x768 24bpp
vo_svga: vid_mode: 39, 1152x864 8bpp
vo_svga: vid_mode: 40, 1152x864 15bpp
vo_svga: vid_mode: 41, 1152x864 16bpp
vo_svga: vid_mode: 42, 1152x864 24bpp
vo_svga: vid_mode: 65, 960x720 8bpp
vo_svga: vid_mode: 66, 960x720 15bpp
vo_svga: vid_mode: 67, 960x720 16bpp
vo_svga: vid_mode: 68, 960x720 24bpp
vo_svga: vid_mode: 80, 640x400 8bpp
vo_svga: vid_mode: 81, 640x400 15bpp
vo_svga: vid_mode: 82, 640x400 16bpp
vo_svga: vid_mode: 83, 640x400 24bpp
vo_svga: vid_mode: 90, 720x540 8bpp
vo_svga: vid_mode: 91, 720x540 15bpp
vo_svga: vid_mode: 92, 720x540 16bpp
vo_svga: vid_mode: 93, 720x540 24bpp
vo_svga: vid_mode: 100, 1072x600 8bpp
vo_svga: vid_mode: 101, 1072x600 15bpp
vo_svga: vid_mode: 102, 1072x600 16bpp
vo_svga: vid_mode: 103, 1072x600 24bpp
vo_svga: vid_mode: 83
vo_svga: SVGAlib resolution: 640x400 24bpp - No video scaling
ICDecompressQuery OK
Input format:
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 400
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 768000
===========================
Output format:
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight -400
  biPlanes 1
  biBitCount 24
  biCompression 0=''
  biSizeImage 768000
===========================
INFO: Win32 video codec init OK!
Selected video codec: [divx] vfm:vfw (DivX ;-) (MS MPEG-4 v3))
==========================================================================
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:  64/64  (1024 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian)
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 = 0x00000010 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000010 and bps = 2
Start playing...
*** [vo] Direct Rendering mp_image_t, 640x400x24bpp BGR packed, 768000 bytes
A:   0,1 V:   0,0 A-V:  0,118 ct:  0,000    1/  1   0%  0%  0,0% 0 0 0%
XXX initial  v_pts=0,000  a_pos=8000 (0,500) 
A:   0,2 V:   0,0 A-V:  0,141 ct:  0,004    2/  2   0%  0%  0,0% 0 0 0%
A:   0,2 V:   0,1 A-V:  0,129 ct:  0,008    3/  3   0%  0%  0,0% 1 0 0%
A:   0,2 V:   0,1 A-V:  0,130 ct:  0,012    4/  4   0%  0%  0,0% 1 0 0%
A:   0,3 V:   0,2 A-V:  0,100 ct:  0,016    5/  5   0%  0%  0,0% 2 0 0%
A:   0,3 V:   0,2 A-V:  0,093 ct:  0,020    6/  6   0%  0%  0,0% 2 0 0%
A:   0,3 V:   0,2 A-V:  0,063 ct:  0,024    7/  7   0%  0%  0,0% 2 0 0%
A:   0,3 V:   0,3 A-V:  0,027 ct:  0,027    8/  8   0%  0%  0,0% 2 0 0%
A:   0,3 V:   0,3 A-V: -0,008 ct:  0,026    9/  9   0%  0%  0,0% 2 0 0%
A:   0,3 V:   0,4 A-V: -0,025 ct:  0,023   10/ 10   0%  0%  0,0% 2 0 0%
A:   0,4 V:   0,4 A-V: -0,023 ct:  0,021   11/ 11   0%  0%  0,0% 2 0 0%
A:   0,4 V:   0,4 A-V: -0,020 ct:  0,019   12/ 12   0%  0%  0,0% 2 0 0%
A:   0,5 V:   0,5 A-V: -0,018 ct:  0,017   13/ 13   0%  0%  0,0% 2 0 0%
A:   0,5 V:   0,5 A-V: -0,017 ct:  0,016   14/ 14  62%  0% 16,8% 2 0 0%
A:   0,5 V:   0,6 A-V: -0,015 ct:  0,014   15/ 15  60%
   0% 16,5% 2 0 0%
A:   0,6 V:   0,6 A-V: -0,013 ct:  0,013   16/ 16  59%  0% 15,9% 2 0 0%
Uninit audio filters...
uninit audio: mp3lib  
uninit video: vfw  
get_path('registry') -> '/home/beastieb/.mplayer/registry'
Total Unfree 0 bytes cnt 0 [(nil),0]
DEMUXER: freeing demuxer at 0x83b4968  
vo: x11 uninit called but X11 not inited..

Exiting... (Quit)

MPlayer's output with svgalib and libavcodec:
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer CVS-021007-23:30-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium MMX P55C (Family: 5, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Reading /home/beastieb/.mplayer/codecs.conf: 38 audio & 107 video codecs
CommandLine: '-vc' 'ffdivx' '-framedrop' '-vo' 'svga' '-dr' '-v' '/mnt/mp/usr/share/mplayer/Operation Takedown.avi'
get_path('font/font.desc') -> '/home/beastieb/.mplayer/font/font.desc'
font: can't open file: /home/beastieb/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz)
get_path('input.conf') -> '/home/beastieb/.mplayer/input.conf'

Playing /mnt/mp/usr/share/mplayer/Operation Takedown.avi
Not an URL!
File size is 706809856 bytes
Detected AVI file format!
list_end=0x2292
======= AVI Header =======
us/frame: 40000  (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 137550   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 400
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: div3 (33766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25/1 = 25,000
Start: 0   Len: 137550
Suggested BufferSize: 120154
Quality 5000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 400
  biPlanes 1
  biBitCount 24
  biCompression 861292868='DIV3'
  biSizeImage 768000
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x2186
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 16000/1 = 16000,000
Start: 0   Len: 88032000
Suggested BufferSize: 8000
Quality -1
Sample size: 1
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=384
mp3.nFramesPerBlock=1
mp3.nCodecDelay=1393
list_end=0x2292
Broken chunk?  chunksize=1382  (id=JUNK)
list_end=0x29DDE120
Found movie at 0x280C - 0x29DDE120
Reading INDEX block, 275089 chunks for 137550 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 275089 chunks for 137550 frames
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x1F4C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=612163988
VIDEO:  [DIV3]  640x400  24bpp  25,00 fps  890,1 kbps (108,7 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:640x400  fps:25,00  ftime:=0,0400
get_path('sub/') -> '/home/beastieb/.mplayer/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
init layer2&3 finished, tables done
mp3lib: using MMX optimized decore!

MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo_svga: preinit - maxframes=0
==========================================================================
Forced video codec: ffdivx
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
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:  64/64  (1024 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian)
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 = 0x00000010 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000010 and bps = 2
Start playing...
VDec: vo config request - 640 x 400 (preferred csp: Planar YV12)
Using SIS driver, 4096KB. Chiptype=5
svgalib 1.4.3
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x400->640x400,flags=0,'MPlayer',0x32315659)
VO: [svga] 640x400 => 640x400 Planar YV12 
VO: Description: SVGAlib
VO: Author: Zoltan Mark Vician <se7en at sch.bme.hu>
vo_svga: vo_dbpp == 0, bpp: 32
vo_svga: Haven't found video mode which fit to: 640x400 32bpp
vo_svga: Maybe you should try -bpp
init_vo failed
Uninit audio filters...
uninit audio: mp3lib  
uninit video: ffmpeg  
DEMUXER: freeing demuxer at 0x83b4968  
vo: x11 uninit called but X11 not inited..




More information about the MPlayer-users mailing list