Re: Internal Data Stream Error Occurs When Adding Two Caps Filters with Different Resolutions in Webcam GStreamer Pipeline Using Tee

Anand Sivaram via gstreamer-devel <[email protected]>
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <CAHBw83fCXpF4=PHTbCFHBWhrUL9+Sr+EzVx_YjuiE6RTdGRk+A@mail.gmail.com>
Do check whether 640x480 is actually supported by the camera

v4l2-ctl -d /dev/video0 --list-formats-ext

Use one of the native resolutions supported by the camera as given by the
above command.

On Thu, 13 Jul 2023 at 23:07, Sulthan Amanu via gstreamer-devel <
[email protected]> wrote:

> Hi Team,
>
> I have encountered an issue while
> creating a GStreamer pipeline with a webcam source and two caps filters
> using the tee element. The pipeline is designed to apply different
> resolutions to the video stream. Below is an example of the pipeline:
>
> gst-launch-1.0 -e v4l2src device=/dev/video0 ! \
>     tee name=t ! \
>         queue ! \
>         videoconvert ! \
>         capsfilter caps="video/x-raw, width=640, height=480" ! \
>         autovideosink t. ! \
>         queue ! \
>         videoconvert ! \
>         capsfilter caps="video/x-raw, width=1280, height=720" ! \
>         autovideosink
>
>
> However, when executing the pipeline, I encountered the following error
> message:
>
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal
> data stream error.
> Additional debug info:
> gstbasesrc.c(3055): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> streaming stopped, reason not-negotiated (-4)
> EOS on shutdown enabled -- waiting for EOS after Error
> Waiting for EOS...
>
>
> I kindly request your assistance in resolving this issue and achieving the
> desired behavior without utilizing the *videoscale , videoconvertscale,
> other frame resize element. And I need to orignal data of both resolution.*
>
> Issue link -
> https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2808#note_1999618
>
> Regards,
> Sulthan
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.