 |
|
 |
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
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
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?
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
hello hpang
i dont have acapture device,but i still want to convert the signal format,can you help me ?
Chrono_Man
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
please descript more detail. How can you capture if you do not have a video source? or you need a virtual source?
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
hi 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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
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?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
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.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
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)
|
| Sign In·View Thread·PermaLink | 2.00/5 (3 votes) |
|
|
|
 |