[gstreamer-bugs] [Bug 370836] Looping feature for gnlobject

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 2 03:03:10 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=370836
  GStreamer | gnonlin | git

--- Comment #15 from Edward Hervey <bilboed at gmail.com> 2010-09-02 10:03:07 UTC ---
(In reply to comment #12)
> What Ed was missing was the ability to take an arbitrary file (say,
> WholeLottaLove.mp3), take just a snippet of that file and use that as a click
> for a metronome.  This is too specialized of a use case compared to the
> complexity it adds to the code.

you could still do that by:
* creating a gnlsource with the segment you need without the looping mode
* putting that source in a composition at the position you need
* using that composition in the top-level composition with the looping mode on
and the required media_duration

Ex : you want to use .5s of a clip 2min in it and repeat it for an hour every
second:
* gnlurisource1
** media-start : 120s      # 2mins it
** media-duration : 0.5s   # take 0.5s
** start : 0               # which will go at the beginning of gnlcomposition1
** duration : 0.5s         # for 0.5s
** looping : FALSE         # without looping
put gnlurisource1 in a composition (gnlcomposition1)
* gnlcomposition1
** media-start : 0         # standard
** media-duration : 1s     # Take 1s of the composition
** start : 0               # which will go from the beginning of the parent
                           # composition
** duration : 7200s        # for 2hours
** looping : TRUE          # and loop every second (media_duration)

And then put gnlcomposition1 in your top-level composition.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list