willprice / python-omxplayer-wrapper

:tv: Control OMXPlayer, the Raspberry Pi media player, from Python
http://python-omxplayer-wrapper.readthedocs.io
GNU Lesser General Public License v3.0
253 stars 71 forks source link

Request: changing playback speed while playing video #42

Closed deanthinker closed 8 years ago

deanthinker commented 8 years ago

Hi, not sure if I come to the right place for feature request. Is it possible to change the playback rate while the video is playing? Thanks.

willprice commented 8 years ago

You could have a go using the action method with the keybindings 1 or 2, the docs seem to suggest that those control speed, but omxplayer doesn't expose any dbus interface to control speed.

willprice commented 8 years ago

Since I've had no response, I'm assuming this works, please comment & reopen if this is not the case

markkorput commented 8 years ago

Verified working!

malban commented 6 years ago

I realize this is old, but I am trying to do something similar and found an alternate method that allows for exact control over the playback speed instead of just the fixed increments:

player = OMXPlayer(VIDEO_PATH)
player._player_interface_property('Rate', dbus.Double(0.2))
MochiLata commented 4 years ago

@malban I tried your code but it doesn't seem to affect the playrate. Are you using the omxplayer that is included with raspbian, or another build?

Update: The wrapper has a set_rate function. Somehow I missed that.