Pipeline manipulations

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pipeline manipulations

d.nikitiuk
I'm a newbie in GStreamer so I don't understand how to switch to the new
filesrc when a pipeline is already started.

My actual task:
 - run the first video;
 - stop it;
 - based on the timestamp (when user click stop), put into pipeline new
video without any interruptions.

Any advice or example?

Cheers,
Dmytro.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline manipulations

gotsring
Not quite sure what you're looking for. Did you check out the examples?
https://gstreamer.freedesktop.org/documentation/tutorials/basic/dynamic-pipelines.html?gi-language=c

You can probably modify this code to do what you need to. To change the
filesrc (I think):
 - Stop the pipeline (put it in GST_STATE_READY)
 - Change the location property for the filesrc
 - Start playing again

To find what time the user clicked stop, you can probably either create a
GstClock or use the pipeline's.
There will probably be a slight delay when loading the new file, so you
might want to pre-load the file in a different filesrc element and use
input-selector to change which video is showing.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel