Re: VMR7/9 mixing logic
- From: "ost12666" <ost12666@xxxxxxxxx>
- Date: Tue, 8 May 2007 20:47:00 +0200
"Geraint Davies" <geraintd@xxxxxxxxxx> wrote in message news:18kummyp66vdd.hb5zxtrw43d9$.dlg@xxxxxxxxxxxxx
On Mon, 7 May 2007 23:13:05 +0200, ost12666 wrote:
Anyway in my quick test stream 0 did not display anything until stream 1
displayed a frame. Maybe I mixed between the two, I assume stream 0 to be
the one connected to pin 0 in the VMR.
This does not contradict what you quoted. Your quote from the docs does not
describe what happens when data arrives on the reference stream if there is
no data on the secondary streams.
The VMR requires valid data for all connected, enabled streams and it will
block indefinitely if that data is not available. If you don't have valid
data on a secondary stream, you must disable it, or send EOS, or send data
with a later timestamp.
G
Yes I understood this today, all I needed is to provide one transparent black sample to the secondary stream and then all started to work.
Now I have two new problems:
- VMR GetCurrentImage returns me the mixed picture while I need only the reference stream image
- My interactive GUI stream will update only when there are frames drawing in the reference stream
I thought of solving those problems by implementing a pre-renderer filter between both my filters and the VMR. It will send frames to the renderer only when its time to display them. It will remember the last reference frame it sent to the renderer and when there is a GUI frame it will resend the last reference frame to the rednderer (with no time stamp to be displayed right away) even if there is a waiting reference frame. It will also allow me to get a reference frame image before mixing when I need one.
Can you think of a better solution or does this solution make sense to you?
thanks
.
- References:
- Re: VMR7/9 mixing logic
- From: The March Hare [MVP]
- Re: VMR7/9 mixing logic
- From: Geraint Davies
- Re: VMR7/9 mixing logic
- Prev by Date: IMediaSample::SetMediaType - Who manages the memory
- Next by Date: Re: GraphEdit: Connect to remote graph
- Previous by thread: Re: VMR7/9 mixing logic
- Next by thread: Re: Convert MEDIATYPE_Stream input type to MEDIATYPE_Video input type
- Index(es):
Relevant Pages
|