Mega Search
23.2 Million


Sign Up

Make a donation  
Adjusting brightness of TMediaPlayer?  
News Group: embarcadero.public.delphi.multimedia

Can I adjust the brightness of a video file being played on a TMediaPlayer?  I have previously asked how to change the volume and have used the MciSendCommand to set the audio level, however, this seems only to be able to manipulate the volume and other file related functions.

My software is displaying advertising media files on an external monitor that may be several metres in size and if the media is being played after sunset, it can be blinding!  At the moment we have no automatic way of adjusting the brightness on the screen (we have requested information, but have been unsuccessful after more than 6 months) and we want the media to startup and stop automatically, so we can't have an operator there to make adjustments.  I have written a simple function to adjust the brightn
ess of a still image and this works perfectly, however the video is still a bit of a traffic hazzard :-( 

Thanks
Trevor

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 25-Apr-2013, at 8:25 PM EST
From: Trevor Hand
 
Re: Adjusting brightness of TMediaPlayer?  
News Group: embarcadero.public.delphi.multimedia
> {quote:title=Trevor Hand wrote:}{quote}
> Can I adjust the brightness of a video file being played on a TMediaPlayer?  I have previously asked how to change the volume and have used the MciSendCommand to set the audio level, however, this seems only to be able to manipulate the volume and other file related functions.
> 
> My software is displaying advertising media files on an external monitor that may be several metres in size and if the media is being played after sunset, it can be blinding!  At the moment we have no automatic way of adjusting the brightness on the screen (we have requested information, but have been unsuccessful after more than 6 months) and we want the media to startup and stop automatically, so we can't have an operator there to make adjustments.  I have written a simple function to adjust the brigh
tness of a still image and this works perfectly, however the video is still a bit of a traffic hazzard :-( 
> 
> Thanks
> Trevor

Maybe you could adjust the Palette manually with capPaletteManual or just change the AlphaBlendValue of the Form the TMediaPlayer is on. Have a background Form that is completely black with the Form containing the TMediaPlayer sitting above it - crude but effective.

Otherwise you could you use COM to find and connect to the Video Renderer and adjust the brightness with something like IMixerPinConfig2.SetOverlaySurfaceColorControls.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 25-Apr-2013, at 10:05 PM EST
From: harrie pearce
 
Re: Adjusting brightness of TMediaPlayer?  
News Group: embarcadero.public.delphi.multimedia
I will have a look, I was hoping there was something like a "MediaSetBrightness" message.....I guess life wasn't meant to be easy :-(  Neither is programming some times.

> {quote:title=Harrie Pearce wrote:}{quote}
> > {quote:title=Trevor Hand wrote:}{quote}
> > Can I adjust the brightness of a video file being played on a TMediaPlayer?  I have previously asked how to change the volume and have used the MciSendCommand to set the audio level, however, this seems only to be able to manipulate the volume and other file related functions.
> > 
> > My software is displaying advertising media files on an external monitor that may be several metres in size and if the media is being played after sunset, it can be blinding!  At the moment we have no automatic way of adjusting the brightness on the screen (we have requested information, but have been unsuccessful after more than 6 months) and we want the media to startup and stop automatically, so we can't have an operator there to make adjustments.  I have written a simple function to adjust the bri
ghtness of a still image and this works perfectly, however the video is still a bit of a traffic hazzard :-( 
> > 
> > Thanks
> > Trevor
> 
> Maybe you could adjust the Palette manually with capPaletteManual or just change the AlphaBlendValue of the Form the TMediaPlayer is on. Have a background Form that is completely black with the Form containing the TMediaPlayer sitting above it - crude but effective.
> 
> Otherwise you could you use COM to find and connect to the Video Renderer and adjust the brightness with something like IMixerPinConfig2.SetOverlaySurfaceColorControls.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Apr-2013, at 12:46 AM EST
From: Trevor Hand