Skip to content

Commit

Permalink
Merge pull request #41 from corubba/bugfix/mpv-fps
Browse files Browse the repository at this point in the history
Use correct fps mpv option
  • Loading branch information
kanehekili authored Oct 7, 2024
2 parents f37cb88 + 411660b commit 8a70c42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MpvPlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@ def setFPS(self,newFPS):
self.fps=newFPS
self.framecount=self.duration*newFPS #framecount prop not reliable
#often a difference between the mpv fps and the fmmpeg fps
self.mediaPlayer["fps"]=newFPS
property_name='container-fps-override' if self.mediaPlayer.mpv_version_tuple >= (0,39,0) else 'fps'
self.mediaPlayer[property_name]=newFPS

'''
def _onFps(self,name,val):
Expand Down

0 comments on commit 8a70c42

Please sign in to comment.