1

I want to stream OS agnostic w/ gstreamer:

  • PC1: Windows webcam

  • PC2: Ubuntu box

I even cannot display my webcam on PC1 and get this error:

C:\Users\gerri\Desktop>gst-launch-1.0 ksvideosrc device-path="\\\\\?\\display\#int3470\#4\&5178020\&0\&uid13424\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\\{c9eab5b4-784a-47a2-b783-24ba0fa1f9a9\}" ! image/jpeg, width=640, height=480 ! jpegdec ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:
streaming stopped, 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 ...

Thanks @user.dz for the setup in answer to this post, not the accepted answer:

Use webcam from laptop on desktop pc

6
  • I am not sure if this post should be here or somewhere else like Superuser. Issue is on boarders between Windows/Ubuntu
    – user.dz
    Apr 17, 2020 at 8:51
  • 1
    Could you add output of: gst-device-monitor-1.0.exe Video/Source .Try these if they works for you: gst-launch-1.0.exe ksvideosrc ! videoconvert ! autovideosink and gst-launch-1.0.exe ksvideosrc ! image/jpeg ! jpegdec ! autovideosink . For streaming, I still struggling to find a working gst pipeline configuration with many old doc over the internet.
    – user.dz
    Apr 21, 2020 at 16:28
  • Yes, I am struggling, too : gstreamer documentation is not working as is!
    – Leder
    Apr 22, 2020 at 22:13
  • Error failed to start device monitor
    – Leder
    Apr 26, 2020 at 4:46
  • Which package did you install? I'm using stabe-msvc-64bit build here gstreamer.freedesktop.org/data/pkg/windows/1.16.2/… within Windows7 , I could stream in same machine (Windows7) but not between Windows/Ubuntu. I need to verify Ubuntu build version may be there is a compatibility issue.
    – user.dz
    Apr 26, 2020 at 5:14

0

You must log in to answer this question.

Browse other questions tagged .