Chen OT
Chen OT

Reputation: 3614

EVR shows few black frames on Window after SetPosition before play

I am using GraphEdt(directShow) with graph built in [AsyncFile(mp4)]-[LAV splliter]-[LAV video decoder]-[EVR]. I pressed pause and the windows pops up and not enter play state yet.

And it always get few black frames on window, when I seek the bar. This makes result blinks when seeking. IIt's so weird. Replaced the render to VMR, this issue is gone, no blinks/black frames shows.

In the code, I get this situation immediately after I call IMediaControl->SetPosition().

How to configure EVR to make this issue gone?

Thanks.

Upvotes: 1

Views: 321

Answers (1)

Chen OT
Chen OT

Reputation: 3614

After I set MFVideoRenderPrefs_DoNotRepaintOnStop on IMFVideoDisplayControl::SetRenderingPrefs() call, interface queried from EVR filter, the issue is gone.

Reference:

Upvotes: 2

Related Questions