Re: VMR7/9 mixing logic

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"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

.



Relevant Pages

  • Re: DVD to WMV -- Success...
    ... direct stream copy is selected, should be since that is the default. ... The higher the frame rate the better. ... maintain the quality, it will create them. ... > My source DVD have only the Video and Audio: ...
    (microsoft.public.windowsmedia.encoder)
  • Re: Reading sections of MP3/WMA files
    ... is the boundary of an audio frame. ... type will tell you the block align of the stream and a block ... You may want to take a look at my sample MP3 parser to know ... a decode to memory takes. ...
    (microsoft.public.windowsmedia.sdk)
  • Re: Display of annotation data as overlay (problem: synch)
    ... filter that generated video output based on the ... want to be able to do is to get the VMR to draw the ... between feeding a stream of pictures to the VMR via bitmap ... need to feed one frame to the secondary pin for each frame ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Looking for an Efficient Thread Synchronization?
    ... In some parts, such as reading the video stream, I need to process every ... A queue sounds suitable for this task. ... offered by the stream and should then just have the last frame. ...
    (microsoft.public.dotnet.languages.csharp)
  • QueryAccept(downstream) to change image size.
    ... I'm writing my custom decoder deriving the transform filter which is ... I have connected the decoder and VMR with the size of D1 and I found ... the real size of the stream is QVGA when I decoded the stream at the ... I set the media type to the output ...
    (microsoft.public.win32.programmer.directx.video)