GNOME Bugzilla – Bug 503842
Audio waveform display when in complex timeline
Last modified: 2009-02-10 12:43:10 UTC
When in complex timeline view audio sources that the user drags into the timeline display the audio waveform. In this way users have a graphical representation of what's inide the currect audio portion of the timeline and can trim/join/apply filter with precision upon the audio track(s)
Created attachment 101050 [details] [review] Waveform display widget implementation needs the accompanying icons to be placed inside the pixmaps directory to work
Created attachment 101051 [details] Waveform display widget pixmaps new pixmaps needed by the waveform display widget, place them inside the /pitivi/pixmaps directory
The porposed Waveform display widget directly comes from Jokosher's implementation, stripped out of the application logic and fitted into pitivi architecture. A comceptual separation was needed inside complexsource.py in order to make distinction between audio and video sources, therefore complexaudiosource/complexvideosource were created Waveform peaks computation is performed only the first time the audio source is dragged inside the complex timeline, so that for any successive dragging no time is wasted in recomputations. Several aspects are likely to be improved: - Place waveform peaks computation inside a thread - (re)implement trim functionalities like in Jokosher's widget - Optimize waveform screen redrawing (now highly unoptimized)
Would this allow one to apply a new audio track to a video? I would like to be able to record a video, import it into pitivi and then add an audio track from a different source. Should I enter a new enhancement bug or will this report suffice?
This patch allows only to view a graphical representation of the audio track by plotting the audio peaks inside the audio track rectangule. I think the feature you're requesting is already implemented in pitivi, since when in advanced view you can drag a video-only source into the timeline and then drag an audio-only source in corrispondece of the video, so that it becomes the audio track, then render the project. I myself tried to to this, and it worked only few times, since there are a lot of bugs/unimplemented in advanced timeline. My advice is to fill a bug-report for the feature you're looking at, and if you have some spare time also ask directly to developers on the IRC channel. Sincerely.
Created attachment 102733 [details] Screenshot of the waveform widget PiTiVi screenshot with the patch applied, showing a custom audio track whose audio-peaks are analyzed and plotted by the new widget.
I'm working on integrating this into current pitivi. Thanks for the patch, and sorry it's taken us so long to get around to including your work.