Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Feb 2011 08:55:36 +0100
From:      David Demelier <demelier.david@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   VESA and SDL in tty terminal
Message-ID:  <4D50F6F8.6070100@gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
Hello,

The SDL's pkg-message says we can use video driver in tty terminal.

  To do this you have to load the vesa kernel module or enable it in your
  kernel, and set environment variable "SDL_VIDEODRIVER=vgl".

I tried it with mplayer :

$ SDL_VIDEODRIVER=vgl; export SDL_VIDEODRIVER
$ mplayer -vo sdl <the file here>

And that's what happened :

AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
[aviheader] Audio stream found, -aid 2
VIDEO:  [XVID]  656x368  12bpp  25.000 fps  854.5 kbps (104.3 kbyte/s)
Clip info:
  Software: VirtualDubMod 1.5.4.1 (build 2178/release)
[VO_SDL] Using driver: vgl.
vo: couldn't open the X11 display ()!
Opening video filter: [scale]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0xc6d2e0]using unscaled yuv420p -> yuv420p special converter
VO: [sdl] 656x368 => 656x368 Planar YV12
[VO_SDL] Set_fullmode: SDL_SetVideoMode failed: Unable to switch to 
requested mode.
[VO_SDL] Failed to set video mode: Unable to switch to requested mode.
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [sdl] 656x368 => 656x368 Planar YV12

[message repeated a lot of time]

Do you have any idea? I of course compiled my kernel with the following 
options :

options VESA
options X86BIOS
options SC_PIXEL_MODE

and my terminal is set to the mode 496 (0x1f0) 0x0000001f G 1366x768x32 
D   8x16  0xa0000 64k 64k 0xc0000000 4128k

Cheers,

-- 
David Demelier



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4D50F6F8.6070100>