Video Edit Gold SDK ActiveX

Video Edit Gold SDK ActiveX

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

For Windows Developers who need to add video editing features, slideshow effect, video mixing, audio mixing and add subtitle on video, create subtitle file in C#, Vb.Net , vb, Delphi, Vfp, Adobe Director, ASP, ASP.net, php, C . 

Popular Solution Go   Back

C# - How to get the information of media file using C#

Step 1: To install the Video Edit Gold ActiveX Control, begin by launching the setup file (videoeditgoldsetup.exe). Select the desired installation folder for the Video Edit Gold ActiveX and continue with the installation on your development computer.

Step 2: Create New Visual C# Project, select Windows Application. 
 
 
Step 3: The next step is to install Video Edit Gold ActiveX in ToolBox. Select Toolbox, select Components item, right click mouse button, select Choose Items...
 

Step 4: Select COM Components tab, select Video Edit Gold ActiveX Control , click OK.
 

Step 5: Now you will see the Video Edit Gold ActiveX's icon on toolbox, drag it to form. 
 
 

Step 6: Design the UI same as following

Step 7: When pressing the "Select File” button our sample’s code will call InfoLoadMedia method , then call InfoDuration property to get the duration of media file. 
InfoMediaContainer property to get the container name of media file.
You may get more detail media information with InfoAudioBitrate , InfoAudioChannels , InfoAudioSampleRate , InfoAudioStreamCount , InfoAudioStreamFormat , InfoMediaHeight, InfoMediaWidth, InfoVideoBitrate, InfoVideoStreamCount, InfoVideoStreamFormat properties.

Step 8: Finally display media information with MessageBox.


Step 9: If you run this project now, you will see black color rectangle. In this sample, you do not need display the video. You may set the Size properties of Video Edit Gold ActiveX  to 1,1, then the user will not see it.

 
Step 10: Download the sample source code from c#_media_information.zip