Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpeedRatio is ignored #34

Closed
tpgalan opened this issue Jan 31, 2017 · 4 comments
Closed

SpeedRatio is ignored #34

tpgalan opened this issue Jan 31, 2017 · 4 comments
Labels

Comments

@tpgalan
Copy link

tpgalan commented Jan 31, 2017

Hi,

When I play a video and change the SpeedRatio value it has no effect.

My code example:

mediaUriElement.Source = new Uri(@"test.mp4");
mediaUriElement.SpeedRatio = 4.0;

Is this correct?

@xmedeko
Copy link
Collaborator

xmedeko commented Jan 31, 2017

Set the speed ration after the media has been opened (the MediaOpened event).

@skaterlui
Copy link

skaterlui commented Nov 8, 2017

Hello tpgalan,

I use the speed ratio thing a lot. It depends on the codec which is used to decode the media if it supports speed ratio setting or not. It doesn't matter if speed ratio is set after or before media is opened. With h.264 speed ratio 4.0 is the maximum I get with K-Lite-Codec-Pack and LAV. If I set it to 8.0, the setting is ignored and speed ratio is still 4.0. I have no special tweaks in K-Lite. I attached my settings.
CodecSettingsBackup20171108.zip

Check this clip: https://www.youtube.com/watch?v=QVx-_HpHe7c for speed ratio example.

@skaterlui
Copy link

@tpgalan
You can also check this link from the old mediakit
https://wpfmediakit.codeplex.com/discussions/85603

@xmedeko
Copy link
Collaborator

xmedeko commented Nov 10, 2017

I am closing the issue. @tpgalan reopen it, if your problem is not caused by the codec.

You can also set a custom sync clock:

IMediaFilter filt = Graph as IMediaFilter;
clock = new MyCustomClock(); // DirectShowLib.IReferenceClock
filt.SetSyncSource(clock);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants