 |
|
 |
Hello all!
I encountered a small problem;
when i want to change the Brightness, i just get 3 states of video-brightness: normal, ~50% of normal Brightness and a black video.
To change the brightness, i added a numeric-up-down element and this method:
private void NUDBrightness_ValueChanged(object sender, EventArgs e)
{
capture.Set_VideoProcAmpProp((DShowNET.VideoProcAmpProperty)(this.NUDBrightness.Value), 0);
}
1: if this.NUDBrightness.Value is smaller than 1, the brightness is ~50%.
2: if it is >= 1, the brightness is black (you cant see anything).
3: if it isnt set, through capture.Set_VideoProcAMPProp(), the brightness is normal.
I want to change the brightness over 100% (lighter than normal), how do i manage that?
Ill be pleased for every hint
|
|
|
|
 |
|
 |
Sir,
I have set brightness value through
capture.Set_VideoProcAmpProp(DShowNET.VideoProcAmpProperty.VideoProcAmp_Brightness,5106);
it return ok but it set brightness to zero. same for contrast
i have write other function also result same. This function
getrange() throw exception "Value does not fall within the expected range."
__________________
ArrayList capDevices;
Guid IID_IBaseFilter = new Guid("56a86895-0ad4-11ce-b03a-0020af0ba770");
DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice, out capDevices);
foreach (DsDevice capDevice in capDevices)
{
if (capDevice.Name == VideoDevice.Name)
{
object o;
capDevice.Mon.BindToObject(null, null, ref IID_IBaseFilter, out o);
IAMVideoProcAmp vpa = (IAMVideoProcAmp)o;
IntPtr pMin, pMax, pSteppingDelta, pDefault;
IntPtr pFlags;
int ox = vpa.GetRange(
(long)VideoProcAmpProperty.VideoProcAmp_Brightness,
out pMin,
out pMax,
out pSteppingDelta,
out pDefault,
out pFlags);
Marshal.ThrowExceptionForHR(ox);
ox = vpa.Set((long)VideoProcAmpProperty.VideoProcAmp_Brightness, 135, DShowNET.VideoProcAmpFlags.VideoProcAmp_Flags_Manual);
capDevice.Dispose();
break;
}
}
___________________
so please can you help me what is the problem ?.
Thanks
|
|
|
|
 |
|
 |
Hello,
I am working with an Hauppauge Impact Card with 4 input sources, and I have to set both Video Signal Format (to PAL) and source (to composite). The first change I get with your code, the second change doesn't work with your code, but with the original directx.capture.
Any idea?
|
|
|
|
 |
|
 |
This article helped me in finding the answer how to change the video signal format int PAL_B! My problem was how to get the current value by code and to change it by code. Also the information for changing the video settings is very useful (at least to me). I wanted to save the settings and restore them. There is one thing that I am missing: when changing from NTSC to PAL and viceversa, the videocaps information changes. To enforce that, VideoCaps = null or something like that is needed to get the new settings.
|
|
|
|
 |
|
 |
When i try to compile it i get the following error:
'Capture' denotes a 'namespace' where a 'class' was expected(CS0118)
I Did not change anything in the sourcecode, and added the reference .dlls.
|
|
|
|
 |
|
 |
preview doesnt work for my vga capture card ! but it captures ! although preview workd for my creative webcam !!!
how can i include the changing video standard code to DirectX.Capture Class Library By Brian Low [^] project !?? because it works with my ATI Card !
|
|
|
|
 |
|
 |
by the way my email address is blueapple_s@yahoo.com
please plaese plase help me as soon as possible
|
|
|
|
 |
|
 |
I have the same problem....
I am using an ATI ALL IN WONDER 9600
I try to run the project...it captures TV...but the sound is missing...I've checked the hardware and even the software that comes with the ATI (Works fine with the ATI stuff)
I really appreciate if someone can tell me how to get the project (C#) work. Since i am programming some similar software.
thanks in advance
|
|
|
|
 |
|
 |
When the preivew is on, try to change frame size, there are some exception, and preview cannot be turned on anymore.
Does anyone else encounter the same problem? Any idea why?
Michael
|
|
|
|
 |
|
 |
this is a known issue, try stop, then change the frame size before previewing it again.
|
|
|
|
 |
|
 |
hello hpang
i dont have acapture device,but i still want to convert the signal format,can you help me ?
Chrono_Man
|
|
|
|
 |
|
 |
please descript more detail. How can you capture if you do not have a video source? or you need a virtual source?
|
|
|
|
 |
|
 |
Alright when you try to retrieve the value from and property it returns a zero. As far as i can figure in propertypage.cs there is a struct called VideoProcAmp_prop anthose values are never set. So there for when you try to retrieve a value it returns a null.
Any ideas on how to set those values!!!!
Plz help
|
|
|
|
 |
|
 |
Just set the calue of video proc amp. I will release the update for this issue soon. Thanks. And I believe you have saloved the problem as you contacted me last time.
|
|
|
|
 |
|
 |
:-Dhi
i like your code very much, but there is one thing i want to ask
is there any way that i can capture from the output device or the vedio card
cause your code directx capture it work only with the input device like web came.
hope you help me to get the answer for this
please allow me to be a good programer
Anmar.Hamad
|
|
|
|
 |
|
 |
yes, you can, but you will need a virtual driver. You can actually purchace the software.
|
|
|
|
 |
|
 |
VideoProcAmp_prop Brightness;
Brightness=
capture.Get_VideoProcAmpProp(
DShowNET.VideoProcAmpProperty.VideoProcAmp_Brightness);
capture.Set_VideoProcAmpProp(
DShowNET.VideoProcAmpProperty.VideoProcAmp_Brightness,5106);
Can anyone help me to include this in a graphfilter made for a movie ?
Tanxs,
Raul Costa -aka- MarsWalker
|
|
|
|
 |
|
 |
Does it work. I'm trying to get the brightness out of a camera, and it alway reset the value to 0. As well, when I try to set, I set it to 0. There is code in comments in your code, is it normal?
Thanks
|
|
|
|
 |
|
 |
yes, it work, but the sample code may seems to be needing some modification so that it look nice. When I release this sample, it was not that complete, I will release a newer version soon. thanks
|
|
|
|
 |
|
 |
I have some problems on capturing from different resolutions to 640x480 specially with conexant capture cards. It cannot get the images on this size. Any ideas?
|
|
|
|
 |
|
 |
are you sure the hardware support the size? did you see preview for the video?
|
|
|
|
 |
|
 |
Yes, I'm sure that the device supports this resolution. I can preview the video. Any ideas?
Excellent
|
|
|
|
 |
|
 |
hmm.. so far, I use conexant also, but do not have the problem, can you please descript more?
thanks, cause I am free this few day, and planning on release new version for this library.
|
|
|
|
 |
|
 |
The article looks interesting, but it would really be great if you tell more about how you did the things.
A lot of people don't know how to program using DirectX so some more code samples about how you achieved the conversion would be great.
Make the article a worth-while to read and interesting enough to download the code sample.
I won't download the sample as I didn't get enough motivation from your article. Even if your sample has more than enough comments about your achievements.
Sorry but I won't rate this article until you update it.
Speak Out! Use the Source, Luke!
(Dr. GUI .NET #5)
|
|
|
|
 |