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

Flawless speed change #562

Open
ghost opened this issue Aug 22, 2017 · 1 comment
Open

Flawless speed change #562

ghost opened this issue Aug 22, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 22, 2017

For a custom project I need to play audio files (nice to have also for video ones) changing at run-time the playing speed. A quick test with keys 1 and 2 reveals that it works for both but with two main drawbacks:

  1. the change range is very limited: I would need something about from about 30% to at least 200%. If I'm correct the constraints are set here. Do you think I can change them or they are already set to the maximum allowable range?

  2. most important thing: no gap should be hear when the speed is changed. It should be smooth and flawless. Currently, pressing 1 or 2 leads to a quite long gap. Any idea how to avoid it?

@vectorstudio
Copy link

Try to use omxplayer-wrapper.
https://python-omxplayer-wrapper.readthedocs.io/en/latest/

player.set_rate(*)
this can change speed as you wish

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

1 participant