Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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%
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.
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))
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.