GNOME Bugzilla – Bug 372439
Add way to change the A/V sync
Last modified: 2018-05-24 10:28:26 UTC
Working-around broken streams... For xine-lib, it's the XINE_PARAM_AV_OFFSET parameter. What about GStreamer?
I would like to add that this is not a proposed work-around to an A/V sync bug in Totem. It is a way to fix the playback of videos that have audio/video sync problems on the fly. Mplayer enables you to increment or decrement the audio delay in 50ms steps using the '+' and '-' keys on the numpad. It would be even better if Totem tries to save that delay in the container of the video if the format supports audio delays (Matroska for example). That way you only have to fix it once.
Ubuntu Brainstorm idea: http://brainstorm.ubuntu.com/idea/12946/
*** Bug 625255 has been marked as a duplicate of this bug. ***
The "av-offset" property of BaconVideoWidget can do that. For example, this is the sample Python plugin adapted to change the A/V sync: diff --git a/src/plugins/samplepython/samplepython.py b/src/plugins/samplepython/samplepython.py index 0630328..d9a08b0 100644 --- a/src/plugins/samplepython/samplepython.py +++ b/src/plugins/samplepython/samplepython.py @@ -12,8 +12,10 @@ class SamplePython (GObject.Object, Peas.Activatable): def do_activate (self): print "Activating sample Python plugin" - self.object.action_fullscreen_toggle () + bvw = self.object.get_video_widget () + bvw.set_property("av-offset", 1500000000) # That's 1.5 seconds def do_deactivate (self): print "Deactivating sample Python plugin" - self.object.action_fullscreen_toggle () + bvw = self.object.get_video_widget() + bvw.set_property("av-offset", 0) This needs a thoughtful UI.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/totem/issues/8.