LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2004, 09:04 PM   #1
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Rep: Reputation: 30
gl2 messes up X fonts


I use the gl2 video output to watch videos is mplayer. When I zoom it to fullscreen and then unzoom it, all the X fonts look messed up. Looks like someone scraped the fonts with a knife. When I change the terminal and then come back to the X terminal, it becomes normal again. Why does this happen, and does anyone know the solution?

this is the output of mplayer:

Code:
mplayer: /usr/lib/libGL.so.1: no version information available (required by mplayer)
MPlayer 1.0pre4-3.2.3 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon Willamette 1600 MHz (Family: 8, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/akudewan/.mplayer/config
Reading /home/akudewan/.mplayer/codecs.conf: Can't open '/home/akudewan/.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.
font: can't open file: /home/akudewan/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/akudewan/.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

Playing /mnt/windows/Naruto/Naruto 94.avi.
AVI file format detected.
VIDEO:  [DX50]  640x480  16bpp  23.976 fps  950.0 kbps (116.0 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.10.1 (build 2439/release)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
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: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: using unscaled Planar YV12 -> BGR 24-bit special converter
VO: [gl2] 640x480 => 640x480 BGR 24-bit
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
New_Face failed. Maybe the font path is wrong.  1   0%  0%  0.0% 0 0 0%
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:   6.6 V:   6.6 A-V: -0.025 ct:  0.064  159/159  18% 48%  1.1% 24 0 0%
 
Old 09-08-2004, 09:45 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
use a difrent video driver and see if it still happens
 
Old 09-08-2004, 10:24 PM   #3
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 30
No, it doesn't happen with any other driver. Unfortunately, I can't use the "xv" driver as I get a blue screen. (Read post for details: http://www.linuxquestions.org/questi...hreadid=228089)

On the other hand "X11" is too slow, and gives poor output, so all I can use is gl2.
However, xv and x11 give no "font" problems.

Edit: I noticed that the problem is not really with the fonts (duh!!). When I take a screenshot and see later when the display is clear, the screenshot also looks proper. So its just the "display" of fonts that gets messed up. Funny thing is that none of the graphics (icons, background etc) are affected.

Last edited by akudewan; 09-09-2004 at 07:03 AM.
 
Old 09-09-2004, 09:43 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
do by blue do you mean things like blood (or anything that should be red ) are blue? (like get a blueish tint)

if so then try

mplayer -vf rgb2bgr filetoplay.avi

and see what happens .... have you tried sdl (i use xv as gl2 cant play certain files correctly, the screen it plays on some files gets all massed up, like a bad tv set) , but for me sdl takes a few seconds to go to fullscreen ... also maybe try the gl driver? (use " mplayer -vo help " to get a list of drivers and try them one by one , but don't use drivers like "jpeg" or "png" as they only output the frames into separate pictures in the directory you are currently in ... useful for getting a snapshot of the video, bad for viewing it))
 
Old 09-09-2004, 09:31 PM   #5
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 30
Thanks for the help SciYro. By "blue screen" I mean that I see a blue layer of about 3-4 cm on top of the video, its completely blue,and is not a part of the video.

I tried many output drivers and found "aa" (acsii art) to be the best (lol)

sdl is giving me decent output. As you said, it takes about 2 secs to fulscreen it. But here, there is a weird thing. When I dont fullscreen the video, i see the same blue screen that I see in "xv" but the blue screen disappears when I fullscreen it.

This makes me think that it is not a video problem, but a "placement of video" problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bc: using -l messes up modulus Ephracis Programming 4 06-07-2005 02:34 PM
GNOME desktop messes up krishvij Linux - Newbie 1 03-24-2005 12:01 AM
ATI Fire GL2 isue aznkwyjibo007 Mandriva 1 12-01-2004 08:24 PM
cvsup messes up gnome? sether *BSD 7 09-10-2004 08:23 PM
Xauthority messes up desktop Xtoforas Linux - Newbie 2 07-24-2004 07:35 AM


All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration