ksvideosrc error

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ksvideosrc error

doon
I trying to use webcam for streaming video on Windows 7:
gst-launch-1.0 ksvideosrc  device-index=0 num-buffers=1 !  x264enc ! rtph264pay ! udpsink host=192.168.0.102 port=1235

But get output:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0: Internal d
ata flow error.
Additional debug info:
gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstKsVideoSrc:k
svideosrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

How I can resolve this problem?
Reply | Threaded
Open this post in threaded view
|

Re: ksvideosrc error

Sérgio Agostinho
Try this

gst-launch-1.0 ksvideosrc  device-index=0 num-buffers=1 ! videoconvert ! x264enc !
rtph264pay ! udpsink host=192.168.0.102 port=1235

If that fails

gst-launch-1.0 ksvideosrc  device-index=0 num-buffers=1 ! decodebin ! x264enc !
rtph264pay ! udpsink host=192.168.0.102 port=1235

Cheers

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: ksvideosrc error

doon
Sérgio Agostinho wrote
Try this

gst-launch-1.0 ksvideosrc  device-index=0 num-buffers=1 ! *videoconvert* !
x264enc !
rtph264pay ! udpsink host=192.168.0.102 port=1235

If that fails

gst-launch-1.0 ksvideosrc  device-index=0 num-buffers=1 ! *decodebin* !
x264enc !
rtph264pay ! udpsink host=192.168.0.102 port=1235

Cheers

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Thanks, it works!
Reply | Threaded
Open this post in threaded view
|

Re: ksvideosrc error

rachelgomez161999
In reply to this post by doon
The "ksvideosrc" error is typically associated with GStreamer, which is a multimedia framework used in various applications. Here are some general steps you can try to fix the error:

Update GStreamer: Make sure you have the latest version of GStreamer installed on your system. You can do this by running the following command in your terminal:

sql
Copy code
sudo apt-get update
sudo apt-get upgrade
If you are using a different package manager, use the appropriate commands to update GStreamer.

Install missing plugins: The ksvideosrc error may indicate that you are missing certain GStreamer plugins. You can use the following command to install the required plugins:

arduino
Copy code
sudo apt-get install gstreamer1.0-plugins-bad
This command will install the "bad" plugins for GStreamer, which include ksvideosrc.

Check dependencies: Sometimes, the ksvideosrc error can occur due to missing dependencies. You can use the following command to check if all dependencies are met:

Copy code
gst-inspect-1.0 ksvideosrc
This command will list all the dependencies required by ksvideosrc. If any dependencies are missing, you will need to install them.

Restart applications: After making any changes to GStreamer or its plugins, you may need to restart the application that is giving you the ksvideosrc error.

By following these steps, you should be able to fix the ksvideosrc error in most cases. However, if the error persists, you may need to seek further assistance from the application's support team or the GStreamer community.

Regards,
Rachel Gomez