Write a simple video processing application with VideoLab using C#, VB.NET, J# or C++/CLI


 

This is a step by step tutorial for writing a simple video processing application in .NET by using VideoLab. The steps are exactly identical in C#, Visual Basic .NET, C++/CLI and J#.

There is no code writing necessary to complete this application.

There is no need to know C#, Visual Basic, J# or C++ in order to create this application.


 

ProcessVideo

The tutorial covers the following steps, which should take less than two minutes:

1. Add an AVIPlayer Component to Your Application's Form:

AVIPlayerPalette

2. Add a FixedFilter Component to Your Application's Form:

FixedFilterPalette

3. Add an AVILogger Component to Your Application's Form:

AVILoggerPalette

4. Add 2 ImageDisplay Controls to Your Application's Form:

4.1 From the VideoLab tab add 2 ImageDisplay controls to the form:

ImageDisplayPalette

4.2 Arrange your form to look like this:

Fim1TwoImageDisplays

5. Select file to play in the AVIPlayer Component:

5.1. Double-click on the aviPlayer1 component on the form:

Form1AVIPlayer1

5.2. Select a file to play, and click “Open”:

VideoFileOpenDialog

6. Connect the AVIPlayer.OutputPin to ImageDisplay1.InputPin and fixedFilter1.InputPin:

6.1. In the aviPlayer1 Properties select OutputPin and click on the DottedButton button:

AVIPlayerPropertiesOutputPin

6.2. In the connection editor check the InputPin of the fixedFilet1 and InputPin of the imageDisplay1, then click OK:

AVIPlayerOutputPinEditProcess

7. Select filter type for the FixedFilter:

7.1. Double-click on the fixedFilter1 component on the form:

Form1fixedFilter1

7.2. In the filter editor specify ftLaplace as filter type and fms5x5 as MaskSize:

FixedFilterLaplace

8. Connect the fixedFilter1.OutputPin to imageDisplay2.InputPin and aviLogger1.InputPin:

8.1. In the fixedFilter1 Properties select OutputPin and click on the DottedButton button:

FixedFilterPropertiesOutputPin

8.2. In the connection editor check the InputPin of the aviLogger1 and InputPin of the imageDisplay2, then click OK:

FixedFilterOutputPinEditProcess

9. Select file to record in the AVILogger Component:

9.1. Double-click on the aviLogger1 component on the form:

Form1AVILogger1

9.2. In the aviLogger1 Properties select the FileName property and enter the path and the name of the file where you want to record the processed video:

AVILoggerFileName

10. Run the Application:

10.1 Press (F5) to run the application. You should see the video being processed:

SimpleVideoProcessRunning

Here is a diagram of the OpenWire connections in this application:

SimpleVideoProcessDiagram