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. C / C++ / MFC
  3. Mediaplayer

Mediaplayer

Scheduled Pinned Locked Moved C / C++ / MFC
4 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
    RichardWdy
    wrote on last edited by
    #1

    I want to save a mediaplayer(ActiveX control)Frame into a bitmap file. How can I do that? Windows98 SE, VC++ 6.0 SP5

    G A 2 Replies Last reply
    0
    • R RichardWdy

      I want to save a mediaplayer(ActiveX control)Frame into a bitmap file. How can I do that? Windows98 SE, VC++ 6.0 SP5

      G Offline
      G Offline
      Ghasrfakhri
      wrote on last edited by
      #2

      Hi. I think You most Use Screan's Bits.(Read Color of Dialog's Pixel) Iman Ghasr-e-fakhri

      C 1 Reply Last reply
      0
      • G Ghasrfakhri

        Hi. I think You most Use Screan's Bits.(Read Color of Dialog's Pixel) Iman Ghasr-e-fakhri

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        I suspect you'll find grabbing a screen DC won't do it, because I know I've tried in an attempt to capture web movies, to no avail. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

        1 Reply Last reply
        0
        • R RichardWdy

          I want to save a mediaplayer(ActiveX control)Frame into a bitmap file. How can I do that? Windows98 SE, VC++ 6.0 SP5

          A Offline
          A Offline
          A R 0
          wrote on last edited by
          #4

          One efficient way to do this (I'm sorry I shouldn't use the word "effcient" because it carries out endless debates:|). One way to do this is through a custom based COM filter using DirectShow (now completely integrated in DirectX 8.x). If you are planning to use this as a one time tool, you could avoid the code involved in plugging the filter into the GraphFilter of DirectShow and use the GraphEditor instead. The filter needs to get a stream input of the sample video in order to create the file that you want (i.e. bitmap). For instance, // // Copy the input sample into the output sample // Then transform the output sample 'in place' // HRESULT MyFilter::Transform(IMediaSample *pIn, IMediaSample *pOut) { HRESULT hr = Copy(pIn, pOut); if (FAILED(hr)) { return hr; } return Transform(pOut); } // Transform // // Create a bitmap from source and let dest be identical // in order to continue the process (playing). // HRESULT MyFilter::Copy(IMediaSample *pSource, IMediaSample *pDest) const { ... } There is much more work involved in developing a DirectShow filter. I hope this help you out.

          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