GNOME Bugzilla – Bug 549028
Tempo/Pitch plugin
Last modified: 2012-04-18 17:04:09 UTC
As mentioned by Mark http://blog.markvdb.be/2008/01/oh-flying-spaghetti-monster-music.html Would be nice to implement this as a plugin. The GStreamer backend would need to insert the tempo plugin, the xine-lib should use the XINE_PARAM_FINE_SPEED parameter to set the playback speed. You'll need to add API to the bacon-video-widget: void bacon_video_widget_set_tempo (BaconVideoWidget *bvw, float tempo); Default would be 1.0.
Created attachment 119054 [details] [review] Add a pitch/tempo plugin Here's a first go at it. There's an interface for changing the pitch/tempo, and the pitch element is inserted into the pipeline nicely. Unfortunately, the video and audio don't stay in sync when the tempo's changed --- the video proceeds at normal pace, regardless of the audio's tempo.
Created attachment 119055 [details] Graph of the modified GStreamer pipeline. Here's a graph of the GStreamer pipeline after the pitch element is inserted.
Tim, any ideas on how to keep the audio and video in sync?
I forgot to mention that the patch doesn't implement the new BVW functions in the xine backend yet.
See also: http://thread.gmane.org/gmane.comp.gnome.apps.rhythmbox.devel/9344 FWIW, we shouldn't be blocking on implementing the xine backend bits.
See also: http://article.gmane.org/gmane.comp.gnome.apps.rhythmbox.devel/11936/
Bug 417141 contains a patch for the backend (now merged), and a patch to implement the UI. *** This bug has been marked as a duplicate of bug 417141 ***