[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

codec name

Hi,

I am using this API function to popup a dialog with available AVI codecs on a users system:

    AVISaveOptions();

Everything is working ok with it. I'm wondering if I can get the name of the codec the user picked from the combo list in the dilaog, like:

    Cinepak Codec by Radius
    Microsoft Video 1
    Full Frames (Uncompressed)

Right now it just fills in a AVICOMPRESSOPTIONS structure after the user has chosen a codec. How can I get the name of the codec they chose out of that?

Thanks
0
minnirok
Asked:
minnirok
  • 2
1 Solution
 
harris_cCommented:
Maybe you need to read the codec file like when you right-click | properties | version --> description?

for c:\windows\system32\msyuv.dll its "Microsoft UYVY Video Decompressor"

'from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnhcvb03/html/vb03c15.asp

Private Sub Button1_Click(ByVal sender _
As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
' Get the file version for the notepad
Dim FileProperties As FileVersionInfo =
FileVersionInfo.GetVersionInfo("C:\WINNT\taskman.exe")
' Retrieve the file description (name)
TextBox1.Text = FileProperties.FileDescription
'Retrieve the file version
TextBox2.Text = FileProperties.FileVersion
'Retrieve the file's internal name
TextBox3.Text = FileProperties.InternalName
'Retrieve the file's original name
TextBox4.Text = FileProperties.OriginalFilename
'Retrieve the product name
TextBox5.Text = FileProperties.ProductName
'Retrieve the product version
TextBox6.Text = FileProperties.ProductVersion
'Retrieve the language
TextBox7.Text = FileProperties.Language
End Sub


hec",)
0
 
harris_cCommented:
Thanks minnirok =)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now