Dynamically change filesink and drain data

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Dynamically change filesink and drain data

umit
Hi,

I have a pipeline which receives video from udp, uses tee to both decode it
and record to file using avimuxer and filesink. I want to stop recording
depending on user input(this will be done by the app later). I know about
pad probing, blocking it, unlink and remove from bin as explained below:

https://gstreamer.freedesktop.org/documentation/application-development/advanced/pipeline-manipulation.html#changing-elements-in-a-pipeline

The problem is, filesink do not have a src pad to check if eos arrived, i.e,
data drained from it to make sure avi file is closed correctly. A similar
question was asked in the past but there is no solution:

http://gstreamer-devel.966125.n4.nabble.com/Dynamic-pipelines-how-to-remove-sinks-td4657619.html

Thread and especially last post in it is very similar to my problem here.

Any help would be appreciated.

Thanks in advance,

Umit



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