Could not link autovideosink to filesink
Gary Metalle
Gary.Metalle at rvl.co.uk
Sat Oct 24 11:50:44 UTC 2020
Hi
Well you certainly need to get rid of that autovideosink for a start because it doesn't make sense to send a decoded JPEG image to a video sink.
The video sink only has a sink pad as well so you can't connect anything else after that (likewise with the filesink).
The decodebin shouldn't be there either because you've just encoded the jpeg image with jpegenc so why try to decode it after? Or did you want to display it as well as save it to disk?
It might be easier for you play with this stuff on a host machine such as Windows or Linux to better understand things.
The following pipeline will create a jpeg snapshot from a video test source which is easier to play with rather than the tcpclientsrc (for the sake of understanding). You can try the tcpclientsrc after to make the pipeline more complicated:
gst-launch-1.0 videotestsrc num-buffers=1 ! jpegenc ! filesink location=screenshot.jpeg
Gary
________________________________________
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of DanteDom <vexado8685 at gridmauk.com>
Sent: 24 October 2020 02:35
To: gstreamer-devel at lists.freedesktop.org
Subject: Could not link autovideosink to filesink
Hello.
I am trying to form a pipeline in an android application I am making.
At the moment, the pipeline is designed to simply take a jpeg image of a
given tcpclientsrc connection I have. This is an example of the pipeline:
"tcpclientsrc host=0.0.0.0 port=1000 num-buffers=1 ! jpegenc ! decodebin !
autovideosink sync=false ! filesink location=screenshot.jpeg"
The address and port in this example are replaced, however when I run this
pipeline. I get the following error:
*gst/parse/grammar.y:774:gst_parse_perform_link could not link autovideosink
to filesink*
My understanding is I cannot convert the video feed into a file format like
this? is there anything I can add to my pipeline in order to get this
working when I eventually add a tee?
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list