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 / C++ / MFC
  4. How to use IMediaSeeking in filter's pin?

How to use IMediaSeeking in filter's pin?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialdata-structureshelpquestion
4 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.
  • H Offline
    H Offline
    houari_id
    wrote on last edited by
    #1

    Hi All.. I use DirectShow to play raw H.264 file with the following graph: [source]--[cyberlink demux]--[cyberlink H.264/AVC decoder]--[vmr9 renderer] My problem is that I can not use IMediaSeeking to set the position. I think it should be possible to seek the video using the demux filter, but I don't know how :confused: (just get into DirectShow a couple weeks ago :-O ). It would be nice if you have the example, or any site that has it. I was looking at MSDN forum and found that we can put IMediaSeeking on the pin. What does it mean? How to do that? Bunch of thanks in advance! :)

    -Houari

    M 1 Reply Last reply
    0
    • H houari_id

      Hi All.. I use DirectShow to play raw H.264 file with the following graph: [source]--[cyberlink demux]--[cyberlink H.264/AVC decoder]--[vmr9 renderer] My problem is that I can not use IMediaSeeking to set the position. I think it should be possible to seek the video using the demux filter, but I don't know how :confused: (just get into DirectShow a couple weeks ago :-O ). It would be nice if you have the example, or any site that has it. I was looking at MSDN forum and found that we can put IMediaSeeking on the pin. What does it mean? How to do that? Bunch of thanks in advance! :)

      -Houari

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      IMediaSeeking is a COM interface. You can query the filter graph manager to obtain a pointer to the interface (saves you the trouble of finding a certain pin to get the interface on!): IMediaSeeking *pSeeking = 0; hr = pGraphMgr->QueryInterface(IID_IMediaSeeking, reinterpret_cast(&pSeeking)); Note that not all filters support seeking. See Seeking the Filter Graph[^]

      "If you can dodge a wrench, you can dodge a ball."

      H 1 Reply Last reply
      0
      • M Mark Salsbery

        IMediaSeeking is a COM interface. You can query the filter graph manager to obtain a pointer to the interface (saves you the trouble of finding a certain pin to get the interface on!): IMediaSeeking *pSeeking = 0; hr = pGraphMgr->QueryInterface(IID_IMediaSeeking, reinterpret_cast(&pSeeking)); Note that not all filters support seeking. See Seeking the Filter Graph[^]

        "If you can dodge a wrench, you can dodge a ball."

        H Offline
        H Offline
        houari_id
        wrote on last edited by
        #3

        Actually I found out that I can not use seeking for the AVC decoder (by using GetCapabilities). So, I think maybe it is possible to use seeking directly to the demux filter. Is it possible?

        -Houari

        M 1 Reply Last reply
        0
        • H houari_id

          Actually I found out that I can not use seeking for the AVC decoder (by using GetCapabilities). So, I think maybe it is possible to use seeking directly to the demux filter. Is it possible?

          -Houari

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          houari_id wrote:

          I think maybe it is possible to use seeking directly to the demux filter. Is it possible?

          Have you tried to obtain the IMediaSeeking interface from the filter?

          "If you can dodge a wrench, you can dodge a ball."

          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