Gstreamer ERROR: GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error

Nicolas Dufresne nicolas at ndufresne.ca
Wed Apr 22 15:38:23 UTC 2020


Le mardi 21 avril 2020 à 22:05 -0500, manas_mandal a écrit :
> Hello,
> 
> Could you please help me to fix this issue? 
> I am new to gstreamer and pipeline facing tough time to debug below issue
> 
> I run below command in ubuntu 18.04
> 
> gst-launch-1.0 v4l2src device=/dev/video0 ! videorate ! videoscale !
> video/x-raw,framerate=30000/1001,width=720,height=480 ! x264enc bitrate=256
> ! muxer.sink_65 audiotestsrc ! audio/x-raw,rate=48000,channels=1 ! avenc_aac
> bitrate=32000 ! muxer.sink_66 mpegtsmux name=muxer
> prog-map=program_map,sink_65=10,sink_66=10 ! tee name=output_tee ! queue !
> hlssink location=/var/www/segment-%05d.ts
> playlist-location=/var/www/index.m3u8 max-files=20 target-duration=15
> 
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> 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)

That means there is no compatible raw format. You can get a list of
formats with:

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

And even more details with:

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

Some webcame only produces JPEG streams, in which case you will need a
decoder, decodebin3 will do (and it can passthrough raw when possible).

> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> 
> I am using HD60 Game Live video capture card
> 
> Linux 8d78e22141e4 4.15.0-91-generic #92~16.04.1-Ubuntu SMP Fri Feb 28
> 14:57:22 UTC 2020 x86_64 GNU/Linux
> root at 8d78e22141e4:/code# lsb_release -a
> No LSB modules are available.
> Distributor ID: Debian
> Description:    Debian GNU/Linux 10 (buster)
> Release:        10
> Codename:       buster
> 
> 
> 
> 
> --
> 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