[MPlayer-users] Howto Patch LibSDL for Ascii Color

aladdin2k3 at netcourrier.com aladdin2k3 at netcourrier.com
Fri Dec 26 23:24:07 CET 2003


I have to try to patch libSDL, but it seems to not work.

I have downloaded libsdl1.2.6.tar.gz
cd libsdl1.2.6
cp ../patch-SDL-1.2.6-deb-caca.diff
patch -p1 < patch-SDL-1.2.6-deb-caca.diff
./configure --enable-video-caca
make && make install as root
I have set SDL_VIDEODRIVER with export SDL_VIDEODRIVER='caca mplayer'

then I have recompiled Mplayer but when I launch a video


mplayer didn't find it :

MPlayer 1.0pre3-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1401 MHz (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/aladdin/.mplayer/config
Reading /home/aladdin/.mplayer/codecs.conf: Can't open '/home/aladdin/.mplayer/codecs.conf': No such file or directory
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' '-vo' 'sdl:caca' 'goonies.mov'
get_path('font/font.desc') -> '/home/aladdin/.mplayer/font/font.desc'
Font /home/aladdin/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/aladdin/.mplayer/input.conf'
Can't open input config file /home/aladdin/.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('goonies.mov.conf') -> '/home/aladdin/.mplayer/goonies.mov.conf'

Playing goonies.mov.
[file] File size is 22161602 bytes
STREAM: [file] goonies.mov
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x85b2438
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x85b2438
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x85b2438
Checking for REAL
DEMUXER: freeing demuxer at 0x85b2438
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x85b2438
DEMUXER: freeing demuxer at 0x85b2dd8
DEMUXER: freeing demuxer at 0x85b2dd8
Searching demuxer type for filename goonies.mov ext: .mov
Trying demuxer 7 based on filename extension
Checking for MOV
MOV: Movie header found!
MOV: 'WIDE' chunk found!
MOV: Movie DATA found!
QuickTime/MOV file format detected.
Compressed header uses zlib algo!
Compressed header size: 16284 / 32542
MOV:   Movie header (100 bytes): tscale=600  dur=97800
Compressed header size: 16284 / 32542
MOV:   Movie header (100 bytes): tscale=600  dur=97800
--------------
MOV: Track #0:
MOV:    Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=97800 lay=0 vol=0
MOV:    Edit atom!
MOV:     Edit list table (1 entries) (ver:0,flags:0)
MOV:       entry#0: duration: 97800  start time: 0  speed: 1.0x
MOV:    Media stream!
MOV:     Media header!
MOV:     Handler header: mhlr/vide (appl) Apple Video Media Handler
MOV:     Media info!
MOV:      Video header!
MOV:      Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV:      Sample info!
MOV:       Description list! (cnt:1)
MOV:        desc #0: SVQ3  (95 bytes)
MOV:       Sample duration table! (1 blocks)
MOV:       Syncing samples (keyframes) table! (177 entries) (ver:0,flags:0)
MOV:       Sample->Chunk mapping table!  (648 blocks) (ver:0,flags:0)
MOV:       Sample size table! (entries=3912 ss=0) (ver:0,flags:0)
MOV:       Chunk offset table! (650 chunks)
MOV track #0: 650 chunks, 3912 samples
pts=97800  scale=600  time=163.000
EL#0: pts=0  1st_sample=0  frames=3912 (163.000s)  pts_offs=0
==> Found video stream: 0
MOV: Found unknown movie atom SMI  (21)!
Image size: 480 x 272 (32 bpp)
Display size: 480 x 272
Fourcc: SVQ3  Codec: 'Sorenson Video 3'
--------------
MOV: Track #1:
MOV:    Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=97800 lay=0 vol=255
MOV:    Edit atom!
MOV:     Edit list table (1 entries) (ver:0,flags:0)
MOV:       entry#0: duration: 97800  start time: 0  speed: 1.0x
MOV:    Media stream!
MOV:     Media header!
MOV:     Handler header: mhlr/soun (appl) Apple Sound Media Handler
MOV:     Media info!
MOV:      Sound header!
MOV:      Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV:      Sample info!
MOV:       Description list! (cnt:1)
MOV:        desc #0: QDM2  (128 bytes)
MOV:       Sample duration table! (1 blocks)
MOV:       Sample->Chunk mapping table!  (250 blocks) (ver:0,flags:0)
MOV:       Sample size table! (entries=7188480 ss=1) (ver:0,flags:0)
MOV:       Sample->Chunk mapping table!  (250 blocks) (ver:0,flags:0)
MOV:       Sample size table! (entries=7188480 ss=1) (ver:0,flags:0)
MOV:       Chunk offset table! (326 chunks)
MOV track #1: 326 chunks, 0 samples
pts=7188480  scale=44100  time=163.004
==> Found audio stream: 1
Audio bits: 16  chans: 1  rate: 44100
Audio header: samp/pack=4096 bytes/pack=371 bytes/frame=742 bytes/samp=2
Audio extra header: len=92  fcc=0x77617665
MOV: Found unknown audio atom Fourcc: QDM2
--------------
Quicktime Clip Info:
 Name: Movie-List Presents: The Goonies
 Copyright: ? Warner Bros
 Comment: Encoded By Guiboche  --  Presented By Movie-List
MOV: longest streams: A: #1 (326 samples)  V: #0 (3912 samples)
[V] filefmt:7  fourcc:0x33515653  size:480x272  fps:24.00  ftime:=0.0417
Clip info:
 name: Movie-List Presents: The Goonies
 copyright: ? Warner Bros
 comments: Encoded By Guiboche  --  Presented By Movie-List
get_path('sub/') -> '/home/aladdin/.mplayer/sub/'
get_path('default.sub') -> '/home/aladdin/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [qtaudio] QuickTime Audio Decoder
win32 libquicktime loader (c) Sascha Sommer
Standard init done you may now call supported functions
loader_init DONE???
loader_init DONE!
get_path('registry') -> '/home/aladdin/.mplayer/registry'
External func COMCTL32.dll:17
External func COMCTL32.dll:16
QuickTime6 DLLs found
QuickTime.qts patched!!! old entry=0x6693b330
theQuickTimeDispatcher catched -> 0x6693b330
Win32 Warning: Accessed uninitialized Critical Section (0x66bc4210)!
WARNING! Invalid Ptr handle!
Win32 Warning: Accessed uninitialized Critical Section (0x66bc41f8)!

### Searching for QuickTime plugins (*.qtx) at /usr/lib/win32...
### FindNext: BeHereiVideo.qtx
### FindNext: Indeo4.qtx
### FindNext: On2_VP3.qtx
### FindNext: ZyGoVideo.qtx
### FindNext: QuickTimeEssentials.qtx
### FindNext: 3ivX.qtx
### FindNext: QuickTimeInternetExtras.qtx
theQuickTimeDispatcher catched -> 0x6693b330
theQuickTimeDispatcher catched -> 0x6693b330
InitializeQTML:0
SoundConverterOpen:0
SSoundConverterOpen:0
SoundConverterSetInfo:0
SoundConverterGetBufferSizes:65536
WantedBufferSize = 88200
InputBufferSize  = 7420
OutputBufferSize = 81924
FramesToGet = 10
FrameSize: 742 -> 8192
SoundConverterBeginConversion:0
dec_audio: Allocating 7420 bytes for input buffer.
dec_audio: Allocating 81924 + 65536 = 147460 bytes for output buffer.
AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 3994->88200 (32.0 kbit)
Selected audio codec: [qdmc] afm:qtaudio (Quicktime QDMC/QDM2 audio decoders)
==========================================================================
Error opening/initializing the selected video_out (-vo) device.
SDL: Initializing of SDL failed: No available video device.

uninit audio: qtaudio
SoundConverterEndConversion:0
SoundConverterClose:0
DEMUXER: freeing demuxer at 0x85b2dd8
DEMUXER: freeing sh_video at 0x85dcd28
DEMUXER: freeing sh_audio at 0x85df538
vo: x11 uninit called but X11 not inited..

Exiting... (End of file)

maybe I have done someting wrong ?

Thank you for your help.

P.S = I have installed Libcaca and aalib on the system.

-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,16 € TTC/min)




More information about the MPlayer-users mailing list