[gst-devel] clutter_behaviour breaks gnonlinear gstreamer plugin, can anybody confirm this?
Aapo Rantalainen
aapo.rantalainen at gmail.com
Sat Nov 14 08:36:58 CET 2009
Hi, thanks for reply. I see I have values duration 5s and
media-duration 30s, but it is still played regular speed. I changed
them, but it doesn't affect anything.
And even I change start times of first clip to 100s and second clip to
1000s they starts still same time and straight I start program. So
looks like I'm using gnonlin wrongly. I'm ready to throw this solution
away, I just need use gnonlin and clutter together.
-Aapo Rantalainen
2009/11/13 Edward Hervey <bilboed at gmail.com>:
> On Fri, 2009-11-13 at 15:20 +0200, Aapo Rantalainen wrote:
>
>> /* add audio file to composition / track 1 */
>> audio1_2 = gst_element_factory_make("gnlfilesource", "audio1_2");
>> gst_bin_add(GST_BIN (track1), audio1_2);
>> g_object_set(G_OBJECT (audio1_2), "location", location1, NULL);
>> g_object_set(G_OBJECT (audio1_2), "start", 2 * GST_SECOND, NULL);
>> g_object_set(G_OBJECT (audio1_2), "duration", 5 * GST_SECOND, NULL);
>> g_object_set(G_OBJECT (audio1_2), "media-start", 0 * GST_SECOND, NULL);
>> g_object_set(G_OBJECT (audio1_2), "media-duration", 30 * GST_SECOND, NULL);
>> g_object_set(G_OBJECT (audio1_2), "priority", 0, NULL);
>
> You are playing 30s of media in 5s (i.e. the file will be played back
> 6 times faster).
>
>>
>>
>> /* track 2 */
>> track2 = gst_element_factory_make("gnlcomposition", "track2");
>> gst_bin_add(GST_BIN (pipeline), track2);
>> g_signal_connect (track2, "pad-added", G_CALLBACK (gnl_OnNewPad2), NULL);
>>
>> /* add audio file to composition / track 2 */
>> audio2 = gst_element_factory_make("gnlfilesource", "audio2");
>> gst_bin_add(GST_BIN (track2), audio2);
>> g_object_set(G_OBJECT (audio2), "location", location2, NULL);
>> g_object_set(G_OBJECT (audio2), "start", 2 * GST_SECOND, NULL);
>> g_object_set(G_OBJECT (audio2), "duration", 6 * GST_SECOND, NULL);
>> g_object_set(G_OBJECT (audio2), "media-start", 0 * GST_SECOND, NULL);
>> g_object_set(G_OBJECT (audio2), "media-duration", 50 * GST_SECOND, NULL);
>> g_object_set(G_OBJECT (audio2), "priority", 0, NULL);
>
> You are playing 50s of media in 6s (i.e. the file will be played back
> 50/6 times faster).
>
>
> In addition to that, no sound will be outputted for the first 2s
> (since your start values are 2 * GST_SECOND).
>
> You might want to debug your aplication by first using:
> 'start' to 0
> 'media-duration' and 'duration' to the same values (resulting in
> regular playback speed)
>
> Edward
More information about the gstreamer-devel
mailing list