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 not working #88

Closed
miguelgomezmunoz opened this issue Sep 25, 2018 · 5 comments
Closed

SpeedRatio is not working #88

miguelgomezmunoz opened this issue Sep 25, 2018 · 5 comments

Comments

@miguelgomezmunoz
Copy link

First of all I am aware that there is a similar thread about this problem: #34

I try to change the SpeedRatio after the mediaUriElement is loaded and open, I am using H.264 videos with K-Lite-Codec-Pack 995 and LAV, but the video goes always at the same speed (I have tried from 0.25 to 4).

Any solution?

@xmedeko
Copy link
Collaborator

xmedeko commented Sep 25, 2018

@miguelgomezmunoz are you use LAV filter is used? MediaUriPlayer tries to open the video with LAV filters (OpenSource()) and if it fails it opens it with the default graph (oldOpenSource()).

@miguelgomezmunoz
Copy link
Author

@miguelgomezmunoz are you use LAV filter is used? MediaUriPlayer tries to open the video with LAV filters (OpenSource()) and if it fails it opens it with the default graph (oldOpenSource()).

I checked it again, it never uses the oldOpenSource() method and a new LAV filter icon appears in the taskbar for every video I open.

@xmedeko
Copy link
Collaborator

xmedeko commented Sep 25, 2018

Can you test it with the Test Application form this git repo and post your code changes or make a fork and then post a link to your fork and branch?

@miguelgomezmunoz
Copy link
Author

miguelgomezmunoz commented Sep 25, 2018

Can you test it with the Test Application form this git repo and post your code changes or make a fork and then post a link to your fork and branch?

I downloaded the Test Application and added just the following:

In MainWindow.xaml.cs
private void mediaUriElement_MediaOpened(object sender, RoutedEventArgs e) mediaUriElement.SpeedRatio = 0.25

(I don't know why I can not write the keys in github)

In MainWindow.xaml
MediaOpened="mediaUriElement_MediaOpened"

It changes the SpeedRatio value but it does not have any effect in the video.

I tried with a .wmv video and it works but why it does not work with a .avi one?

@xmedeko
Copy link
Collaborator

xmedeko commented Sep 26, 2018

Yes, it would be some codec thing. First try to check the graph used, e.g. use MediaUriElement.DumpGraphInfo(). Then check the used filter, for which video file types it supports the speed ratio.

@xmedeko xmedeko closed this as completed Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants