jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
531 stars 67 forks source link

Possibility to adjust audio panning while playing #235

Closed d3im closed 1 year ago

d3im commented 1 year ago

There is possibility to adjust audio panning via pan filter before playing (this one doesn't change panning but can be modified): mpv '--af=pan="stereo| FL=0.5*FL+0.5FR| FR=0.5*FR+0.5FL"' media_file.ext

Question is can be panning modified in play time? If not by mpv itself is there a way to modify panning programmatically over pulseaudio/pipewire/alsa?

d3im commented 1 year ago

OK seem it's quite easy since it can be modified while play time like so:

player.af='rubberband=pitch-scale=1.5,scaletempo2,pan="stereo| FL=0.5*FL+0.5FR| FR=0.5FL+0.5FR"'