From owner-freebsd-questions@FreeBSD.ORG Tue Feb 8 07:55:57 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A6E0F106566B for ; Tue, 8 Feb 2011 07:55:57 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 36A218FC16 for ; Tue, 8 Feb 2011 07:55:56 +0000 (UTC) Received: by wyf19 with SMTP id 19so5613384wyf.13 for ; Mon, 07 Feb 2011 23:55:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=/NnmENBQz+9KNz4SIH4RwoESeRyRIZszEBAxVNKrdJA=; b=AUqonl1q+C/QbFUgDAIyuFckogtRXCR7rl7zVTXPdmMFtOiOe4PFoN08eh4Nrrb1kq rl6iFRlhyQKVLKBuev0weMk80DBK6w7b3zhLd4HBgpuN5hFT4pfIYC5NKKUoiRrmFqdX EAaItLnlZf9G3iyseS3YVhX03xhAcYOcBzCW4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=ATaGguZ94liUzjKV5vXGRtTjderJYGWN1PV/4btKb7jz4i7qtyofujfMbzKtXb2SaJ 9MW7Uq+vFtC8RnG/RHZljUvZlKyNL5j1vMM2gwFV3SVQ0UagEM+lk03RgI0z5p+lRWVS SG8jOE2PhFgX0ZvOhtCn4LyBghTaav7OLvrsw= Received: by 10.227.145.143 with SMTP id d15mr17178280wbv.91.1297151756174; Mon, 07 Feb 2011 23:55:56 -0800 (PST) Received: from Melon.malikania.fr (wifi-osiris-sec-181-149.u-strasbg.fr [130.79.181.149]) by mx.google.com with ESMTPS id y29sm4151584wbd.22.2011.02.07.23.55.54 (version=SSLv3 cipher=RC4-MD5); Mon, 07 Feb 2011 23:55:55 -0800 (PST) Message-ID: <4D50F6F8.6070100@gmail.com> Date: Tue, 08 Feb 2011 08:55:36 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110125 Thunderbird/3.1.7 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: VESA and SDL in tty terminal X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Feb 2011 07:55:57 -0000 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 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