Click here to Skip to main content
Click here to Skip to main content

Change Video Signal Format with DirectX library

, 23 Feb 2005
Rate this:
Please Sign up or sign in to vote.
An enhancement for the DirectX video stream and frame capture sample.

Sample Image


I posted an article DirectX Video Stream and Frame Capture a few months before, and I got a few feedbacks. Please refer to the article for more information. As a response to many requests, I added again some examples on how to use the video capture library.

In this example, I added a sample code to change the video format from NTSC to PAL and vice versa. A code piece to change the brightness, and the old, grasp a frame from video and finally save to a video file.

Actually this example is prepared in a rush, so I would hope anyone to send me any comments so that I can update it again. Thanks.

Using the code

To change to PAL_B standard:

private void button2_Click(object sender, System.EventArgs e)
    capture.VideoFormat= DShowNET.AnalogVideoStandard.PAL_B;

To set brightness:

void button2_Click_1(object sender, System.EventArgs e)
    VideoProcAmp_prop Brightness;

To capture a frame:

void button1_Click(object sender, System.EventArgs e)
    capture.FrameEvent2 += new Capture.HeFrame(CaptureDone);

Points of Interest

Thanks for everyone who gave me suggestions for adding these functions to the code. I am sorry that this is not a robust sample, I created it just for demo purpose. Please tell me if you have any questions and suggestions.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Web Developer
Malaysia Malaysia
Please visit my website for more web site information.

Comments and Discussions

Generalwant to change the brightness... PinmemberLomis27-Jul-09 1:43 
GeneralI can not set Brightness or contrast Pinmemberkanada ketan H15-Dec-08 2:54 
GeneralChange VideoSignal and VideoSource Pinmemberhaxmaxx14-Sep-06 3:55 
GeneralNice article! Pinmemberalmere1092-Mar-06 22:31 
QuestionCan't get it to work! PinmemberPeaver15-Nov-05 11:30 
Generalit doesnt work for ATI VGA+Capture Pinmembersohrabi21-Oct-05 12:56 
GeneralRe: it doesnt work for ATI VGA+Capture Pinsusssohrabi21-Oct-05 12:59 
GeneralRe: it doesnt work for ATI VGA+Capture Pinmembersandinog2629-Nov-05 17:30 
GeneralProblem changing Frame Size Pinmembermaihuaz8-May-05 16:26 
GeneralRe: Problem changing Frame Size PinsussAnonymous10-May-05 1:16 
Questiondont have capture device ? PinmemberChrono_man7-May-05 11:12 
AnswerRe: dont have capture device ? PinmemberhpAng10-May-05 1:19 
GeneralVideoProcAmp Problem Pinmemberyoda_2069a2-May-05 20:46 
GeneralRe: VideoProcAmp Problem PinmemberhpAng10-May-05 1:20 
Generaldesktop capture PinmemberAnmar-xe11-Apr-05 23:40 
GeneralRe: desktop capture PinmemberhpAng10-May-05 1:21 
GeneralBrightness change in a video. PinmemberMarsWalker11-Apr-05 8:59 
GeneralSeem REAL interesting, but does it work Pinmemberregispoulin31-Mar-05 10:43 
GeneralRe: Seem REAL interesting, but does it work PinmemberhpAng10-May-05 1:23 
GeneralInteresting. PinsussAnonymous14-Mar-05 8:37 
GeneralRe: Interesting. PinmemberhpAng15-Mar-05 4:38 
GeneralRe: Interesting. PinmemberRenecito18-Mar-05 7:45 
GeneralRe: Interesting. PinmemberhpAng10-May-05 1:26 
GeneralLooks interesting but... PinmemberPoolbeer24-Feb-05 1:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150414.1 | Last Updated 24 Feb 2005
Article Copyright 2005 by hpAng
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid