Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. avi codec information

avi codec information

Scheduled Pinned Locked Moved C#
questioncomhelp
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cbiacca
    wrote on last edited by
    #1

    Hi, after having browsed a lot of sites and read a lot of msdn, now I have still my problem. I'm trying to read codec name from an avi file. I'm using this structure: typedef struct { DWORD dwMaxBytesPerSec; DWORD dwFlags; DWORD dwCaps; DWORD dwStreams; DWORD dwSuggestedBufferSize; DWORD dwWidth; DWORD dwHeight; DWORD dwScale; DWORD dwRate; DWORD dwLength; DWORD dwEditCount; char szFileType[64]; } AVIFILEINFO; which I have done by reading http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmstr\_1xf6.asp .... How can I exctract the codec name used to encode the avi file?

    T 1 Reply Last reply
    0
    • C cbiacca

      Hi, after having browsed a lot of sites and read a lot of msdn, now I have still my problem. I'm trying to read codec name from an avi file. I'm using this structure: typedef struct { DWORD dwMaxBytesPerSec; DWORD dwFlags; DWORD dwCaps; DWORD dwStreams; DWORD dwSuggestedBufferSize; DWORD dwWidth; DWORD dwHeight; DWORD dwScale; DWORD dwRate; DWORD dwLength; DWORD dwEditCount; char szFileType[64]; } AVIFILEINFO; which I have done by reading http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmstr\_1xf6.asp .... How can I exctract the codec name used to encode the avi file?

      T Offline
      T Offline
      The Limey
      wrote on last edited by
      #2

      codec? avis aren't compressed

      J 1 Reply Last reply
      0
      • T The Limey

        codec? avis aren't compressed

        J Offline
        J Offline
        J Dunlap
        wrote on last edited by
        #3

        The Limey wrote: avis aren't compressed They certainly are. ;)

        "Do unto others as you would have them do unto you." - Jesus
        "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

        T 1 Reply Last reply
        0
        • J J Dunlap

          The Limey wrote: avis aren't compressed They certainly are. ;)

          "Do unto others as you would have them do unto you." - Jesus
          "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

          T Offline
          T Offline
          The Limey
          wrote on last edited by
          #4

          I stand corrected, some are some aren't

          L 1 Reply Last reply
          0
          • T The Limey

            I stand corrected, some are some aren't

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            A basic uncompressed avi 320x 240 takes up roughly 10MB per second. Play around with VirtualDub.

            leppie::AllocCPArticle(Generic DFA State Machine for .NET);

            C 1 Reply Last reply
            0
            • L leppie

              A basic uncompressed avi 320x 240 takes up roughly 10MB per second. Play around with VirtualDub.

              leppie::AllocCPArticle(Generic DFA State Machine for .NET);

              C Offline
              C Offline
              cbiacca
              wrote on last edited by
              #6

              uhm, so after having understood that an avi can be compressed (:P) ... in the end I've not understood how to extrac codec information from .avi files ... is it possibile using that structure?

              L 1 Reply Last reply
              0
              • C cbiacca

                uhm, so after having understood that an avi can be compressed (:P) ... in the end I've not understood how to extrac codec information from .avi files ... is it possibile using that structure?

                L Offline
                L Offline
                leppie
                wrote on last edited by
                #7

                No, and it is not really possible to get codec info. The codec specifies a FourCC code that is mapped in the system to a codec. More info I do not have. :(

                leppie::AllocCPArticle(Generic DFA State Machine for .NET);

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups