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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. First frame of an compressed AVI

First frame of an compressed AVI

Scheduled Pinned Locked Moved C / C++ / MFC
csharpcomjsontutorialquestion
3 Posts 2 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.
  • J Offline
    J Offline
    Jurgen Eidt 0
    wrote on last edited by
    #1

    Does anyone know how to get the first frame of an compressed AVI? Using the AVI-APIs the AVIStreamGetFrameOpen is returning a NULL when the video stream is compressed. Works fine for non compressed videos. I also tried the suggestion from Jung Jinhyuck ( http://www.codeproject.com/audio/avitowmv.asp ) which looked very promising. Looks like the decompression is not done, but the same compressed AVI can be viewed with the Media player on the same machine. Thought the AVI-API could access the same decompressors. (Using WinXP and VC .NET) Thanks Jürgen

    A 1 Reply Last reply
    0
    • J Jurgen Eidt 0

      Does anyone know how to get the first frame of an compressed AVI? Using the AVI-APIs the AVIStreamGetFrameOpen is returning a NULL when the video stream is compressed. Works fine for non compressed videos. I also tried the suggestion from Jung Jinhyuck ( http://www.codeproject.com/audio/avitowmv.asp ) which looked very promising. Looks like the decompression is not done, but the same compressed AVI can be viewed with the Media player on the same machine. Thought the AVI-API could access the same decompressors. (Using WinXP and VC .NET) Thanks Jürgen

      A Offline
      A Offline
      Andrew Walker
      wrote on last edited by
      #2

      Use DirectShow, which is probably total overkill for one frame. You can make sure that the correct decompressors are in the graph using GraphEdit, I think an older version of DirectX (7 or 8?) may have even had a sample program for grabbing a single frame.

      J 1 Reply Last reply
      0
      • A Andrew Walker

        Use DirectShow, which is probably total overkill for one frame. You can make sure that the correct decompressors are in the graph using GraphEdit, I think an older version of DirectX (7 or 8?) may have even had a sample program for grabbing a single frame.

        J Offline
        J Offline
        Jurgen Eidt 0
        wrote on last edited by
        #3

        Thanks for your suggestion. I just wanted to give the icons in my listview a small preview of the AVI files from my camera :) Wouldn't introducing DirectShow to an app make a dependency on the DirectShow components installed on the system? For example I use the latest version of DirectShow but the system has an older version installed? Thanks Jürgen

        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