Pipeline with appsink and tee doesn't work

Nicolas Dufresne nicolas at ndufresne.ca
Fri Sep 10 16:24:12 UTC 2021


Le vendredi 10 septembre 2021 à 10:18 -0400, Dwight Kulkarni via gstreamer-devel
a écrit :
> Hi all,
> 
> I am trying to test a pipeline from gst-launch-1.0 that has an appsink and a
> tee. 
> 
> The first pipeline with autovideosink below showed video and saved the files.
> The second pipeline I changed autovideosink to appsink and it stopped saving
> the files.
> 
> Interestingly, the second pipeline runs and doesn't show any errors, but no
> files are outputted from the splitmuxsink.
> 
> 
> works:
> gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw, width=1920,
> height=1080, framerate=15/1  ! vpuenc_h264 ! tee name=v ! avdec_h264 !
> autovideosink v. ! h264parse ! splitmuxsink name=filesink
> location=video%02d.mkv max-size-time=10000000000 muxer-
> properties="properties,streamable=true"
> 
> doesn't work:
> gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw, width=1920,
> height=1080, framerate=15/1  ! vpuenc_h264 ! tee name=v ! appsink name=h264vid
> v. ! h264parse ! splitmuxsink name=filesink location=video%02d.mkv max-size-
> time=10000000000 muxer-properties="properties,streamable=true"

You need to writ an app around appsink in order to pop the buffers out of it,
otherwise your pipeline will stall very quickly.

>  
> 
> 
> --
> Sincerely,
> 
> Dwight Kulkarni 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210910/3b196387/attachment.htm>


More information about the gstreamer-devel mailing list