[MPlayer-users] Brightness/Contrast controls only available with "-vo x11" ?

Will Dormann wd at pobox.com
Sat Jul 12 19:23:58 CEST 2003


Hello,

I'm trying to get the brightness/contrast set for use with MythVideo (a 
MythTV add-on)
But I can't seem to get the command line switches to work.

I try using "-vo xv -brightness <n>" as options, but I get a message 
from mplayer saying that the attribute 'brightness' is not supported by 
selected vo &vd.    Here's a sample output from mplayer:

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer 0.90rc5-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel  (Family: 8, Stepping: 7)
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/share/mplayer/mplayer.conf
Reading config file /home/mythtv/.mplayer/config
Reading /home/mythtv/.mplayer/codecs.conf: Reading 
/usr/share/mplayer/codecs.con
f: 50 audio & 136 video codecs
font: can't open file: /home/mythtv/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using usleep() timing
Input config file /usr/share/mplayer/input.conf parsed : 52 binds

Playing Rush Hour 2.avi
Cache fill:  0.00% (0 bytes)    AVI file format detected.
VIDEO:  [DX50]  704x288  24bpp  23.98 fps  1432.9 kbps (174.9 kbyte/s)
Clip info:
 Software: Nandub v1.0rc2
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
vo: X11 running at 800x600 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)
==========================================================================
Video attribute 'brightness' is not supported by selected vo & vd.
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)
SDL: Samplerate: 48000Hz Channels: Stereo Format Signed 16-bit 
(Little-Endian)
AO: [sdl] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
This file was encoded with DivX501 Build481
VDec: vo config request - 704 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.44:1 - prescaling to correct movie aspect.
VO: [xv] 704x288 => 704x288 Planar YV12  [fs]



Now, I *can* control brightness and contrast during playback using the 3 
4 5 and 6 keys.   And when I do make those changes, they seem to be 
global, in that when I watch TV in MythTV the picture changes I made in 
mplayer also are applied to MythTV.  (I'm assuming it's setting some 
global XV option?)      But if I go back to playing a video with 
mplayer, the initial brightness level seems to be reset to the default.  
If I press one of the 3 4 5 or 6 keys, the appropriate setting will jump 
back to what I had set it to in my last session.

Why are brightness and contrast not available using XV (or SDL)?   If I 
use X11 as the output, the -brightness flags do indeed work, but the 
playback is too CPU intensive.    Is there a better way to set the 
initial brightness and contrast without having to mess with the 3456 keys?

Thanks!
-WD



More information about the MPlayer-users mailing list