C++/VB - Sending user input while in buffering in rtsp streamsource filter
Asked By Anoop R.K
14-Nov-09 07:53 AM
Dear all..,
I am designing a rtsp stream source filter.While designing a filter i
am facing a couple of challenges
While we are in buffering(after sending EC_STARVATION to filter grah
manager),or in other words after sending EC_STARVATION to the filter
graph manager,transition is not completed from pause to run(as i am
sending VFW_S_STATE_INTERMEDIATE from getstate()).
At this time iam not able to take any user input from mediaplayer
(neither pause or stop is called from filter graph manager).So that i
cannot stop the current buffering that is.
Is there a way to get pasue or stop while in buffering.
Thanks
Anoop
DirectShow
(1)
Filter.While
(1)
Riseoftheants
(1)
Streamsource
(1)
Timestamps
(1)
Getstate
(1)
Mvpnews
(1)
Ifthe
(1)
Alessandro Angeli replied to Anoop R.K
From: "Anoop R.K"
Instead of notifying EC_STARVATION and returning
VFW_S_STATE_INTERMEDIATE, simply return VFW_S_CANT_CUE. That
way, the graph will transition to paused (and then to
running) without waiting for you. If you do that, be sure to
not deliver samples while paused but only when running.
A real-time network streaming source is the same as a live
capture source:
http://msdn.microsoft.com/en-us/library/dd377472.aspx
http://msdn.microsoft.com/en-us/library/dd390645.aspx
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Anoop R.K replied to Alessandro Angeli
t.com/en-us/library/dd390645.aspx
HI..,
The problem is if i directly send VFW_S_CANT_CUE with out gathering
enough data, the filter will go to run(in this case we will not have
enough data to render).
Thanks
Anoop
Geraint Davies replied to Anoop R.K
You can suspend delivery in your filter until you are ready, even if
the graph is running. Once you restart, you adjust all your timestamps
to the current stream time plus a latency.
How to explicit closehandle of one directshow filter object C++ / VB i write one source filter, and after other application load it and call filter's destructor, i found the application didn't close the handle of one directshow filter object that i used in my source filter. Untill the application is closed , the
DirectShow filter current directory always SDK / bin C++ / VB Hello, I have written a DirectShow filter. The current directory for the filter is always the SDK / bin filter (i.e. on my machine C: / Program Files / Microsoft SDKs
Directshow filter to tack on few minutes to end of media C++ / VB Hi directshow gurus, I am currently writing a filter that will tack on a few minutes to the end of a media stream. My filter derives from the transfrom filter, and when i receive the EndOfStream notification on my filter's
directshow filter development C++ / VB Hi there, I would like to know how to write a "codec filter" and how window media player use it? Basically, i want to develop one filter (codec filter) which will has the integration of a codec (MP3 / WMV / ACM). What are the classes
how to write a d directshow filter C++ / VB Hello All, I m quite new to the technology. And i want to write my own directshow filter. Can anyone please tell me that is it possible to write a directshow filter in c# ?? and if yes how to do that? what are the basic steps to