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
LVL 7
minnirokAsked:
Who is Participating?
 
harris_cConnect With a Mentor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.