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. The Lounge
  3. Media file question

Media file question

Scheduled Pinned Locked Moved The Lounge
questionhtml
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.
  • R Offline
    R Offline
    Russell Jones
    wrote on last edited by
    #1

    I was just reading an article about HTML5 and suddenly realised that I have no idea about what codecs / containers are or how they work. Does anyone know of a good site that explains how all this stuff fits together at a reasonably technical level? I tried the goog but i just seem to get links to lists of things on wikipedia

    A L 2 Replies Last reply
    0
    • R Russell Jones

      I was just reading an article about HTML5 and suddenly realised that I have no idea about what codecs / containers are or how they work. Does anyone know of a good site that explains how all this stuff fits together at a reasonably technical level? I tried the goog but i just seem to get links to lists of things on wikipedia

      A Offline
      A Offline
      AspDotNetDev
      wrote on last edited by
      #2

      Russell Jones wrote:

      codecs

      That's basically an algorithm for encoding(aka compressing)/decoding(aka uncompressing) audio/video. More concretely, they are functions (in DLL's/EXE's?) that perform certain predefined operations on a video (e.g., decode a certain frame).

      Russell Jones wrote:

      containers

      I suppose AVI would be a container file format, as you can use many possible codecs with it (i.e., it contains the data). Using it as a container to support multiple types of streams makes it possible to play with a standard video player (assuming the proper codec is installed).

      Russell Jones wrote:

      Does anyone know of a good site that explains how all this stuff fits together at a reasonably technical level?

      I do not.

      [Forum Guidelines]

      R 1 Reply Last reply
      0
      • A AspDotNetDev

        Russell Jones wrote:

        codecs

        That's basically an algorithm for encoding(aka compressing)/decoding(aka uncompressing) audio/video. More concretely, they are functions (in DLL's/EXE's?) that perform certain predefined operations on a video (e.g., decode a certain frame).

        Russell Jones wrote:

        containers

        I suppose AVI would be a container file format, as you can use many possible codecs with it (i.e., it contains the data). Using it as a container to support multiple types of streams makes it possible to play with a standard video player (assuming the proper codec is installed).

        Russell Jones wrote:

        Does anyone know of a good site that explains how all this stuff fits together at a reasonably technical level?

        I do not.

        [Forum Guidelines]

        R Offline
        R Offline
        Russell Jones
        wrote on last edited by
        #3

        I guess I kind of know what they are at that level but in my mind what the codec does might as well be written as "Now here the magic happens". I'd love to know something about what algorithms are used and how the container knows which ones are used for a given file. Maybe it's one of those subjects where going from vaguely understanding how the thing works to actually understanding it is a massive step but I just realised that I glibly talk about these things but don't really know what they are.

        L 1 Reply Last reply
        0
        • R Russell Jones

          I was just reading an article about HTML5 and suddenly realised that I have no idea about what codecs / containers are or how they work. Does anyone know of a good site that explains how all this stuff fits together at a reasonably technical level? I tried the goog but i just seem to get links to lists of things on wikipedia

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Russell Jones wrote:

          Does anyone know of a good site that explains how all this stuff fits together at a reasonably technical level?

          Try these ... http://html5doctor.com/[^] http://html5demos.com/[^] And don't forget to look up CSS3

          R 1 Reply Last reply
          0
          • L Lost User

            Russell Jones wrote:

            Does anyone know of a good site that explains how all this stuff fits together at a reasonably technical level?

            Try these ... http://html5doctor.com/[^] http://html5demos.com/[^] And don't forget to look up CSS3

            R Offline
            R Offline
            Russell Jones
            wrote on last edited by
            #5

            that looks just the ticket Thank you :)

            W 1 Reply Last reply
            0
            • R Russell Jones

              I guess I kind of know what they are at that level but in my mind what the codec does might as well be written as "Now here the magic happens". I'd love to know something about what algorithms are used and how the container knows which ones are used for a given file. Maybe it's one of those subjects where going from vaguely understanding how the thing works to actually understanding it is a massive step but I just realised that I glibly talk about these things but don't really know what they are.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Historically FOURCC's have been used in container formats often to tell which codec was used, it's up to the decoder to do the actual FOURCC -> codec mapping (and of course a codec does not necessarily have to be present as a dll, one might just as well roll everything into a single monolithic exe) The algorithms used depend on what kind of data it is, but often involves some kind of DCT, a step dropping unnoticeable detail, a quantization step and entropy coding, because a good deal of data can be dropped from the frequency domain without being overly noticeable (due to imperfections in human perception). Pictures (jpg and more) movies (mpeg2, H.264, and more), and sound (mp3 and more) all have codecs for them that work that way, with the movie/picture codecs dropping significantly more Chroma information than Luma information, and the audio codecs dropping sounds outside of the "normal" frequency range, the video codecs all (as far as I know, only reasonable codecs counted) assume that the frames typically do not change very much from one to an other and use that to reduce the data even further. Is that what you wanted to know? note: I apologize in advance for all errors I must have made, I only just woke up (yes I know, this late)

              1 Reply Last reply
              0
              • R Russell Jones

                that looks just the ticket Thank you :)

                W Offline
                W Offline
                WiGgLr
                wrote on last edited by
                #7

                I was reading a very good article on h264 the other day, I needed to encode in a format good for youtube (and general viewing). I'll dig the link out when I get home.

                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