After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 372439 - Add way to change the A/V sync
Add way to change the A/V sync
Status: RESOLVED OBSOLETE
Product: totem
Classification: Core
Component: Movie player
unspecified
Other Linux
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
: 625255 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-11-08 12:42 UTC by Bastien Nocera
Modified: 2018-05-24 10:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2006-11-08 12:42:27 UTC
Working-around broken streams...
For xine-lib, it's the XINE_PARAM_AV_OFFSET parameter.

What about GStreamer?
Comment 1 Remco 2008-09-19 17:00:28 UTC
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.
Comment 2 Paul Wise 2009-08-30 06:09:13 UTC
Ubuntu Brainstorm idea:

http://brainstorm.ubuntu.com/idea/12946/
Comment 3 Philip Withnall 2010-07-26 07:47:04 UTC
*** Bug 625255 has been marked as a duplicate of this bug. ***
Comment 4 Bastien Nocera 2012-07-03 18:39:04 UTC
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.
Comment 5 GNOME Infrastructure Team 2018-05-24 10:28:26 UTC
-- 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.