codec name

Posted on 2006-05-24
Last Modified: 2006-11-18

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


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?

Question by:minnirok
    LVL 8

    Accepted Solution

    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"


    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 =
    ' 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

    LVL 8

    Expert Comment

    Thanks minnirok =)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
    When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now