Stream HD video from webcam using gst-launch on Windows 10

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

Stream HD video from webcam using gst-launch on Windows 10

Busayo Famutimi
Hi devs,

Please can someone help with a script for streaming high definition video from webcam to gst-internal window?

I have tried several scripts but the output is not high definition.

The scripts revolved around "gst-launch-1.0.exe ksvideosrc ! image/jpeg,width=1280,height=720,framerate=30/1 ! queue ! jpegdec ! videoconvert ! queue ! autovideosink"

Thanks.

Kind regards,

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

Re: Stream HD video from webcam using gst-launch on Windows 10

David Ing
I have never done video capture with gstreamer on Windows, so I can't offer great advice, but I noticed that your command did not execute on my machine.

I noticed that you are sending frames through as JPEG, it might make sense to send them as video/x-raw ...

gst-launch-1.0 --gst-debug-level=3 ksvideosrc ! video/x-raw,width=1920,height=1080 ! queue ! autovideosink

... but on my machine the playback is rather skippy (guessing 4 frames per second).

When I try to add framerate to the caps filter ...

gst-launch-1.0 --gst-debug-level=3 ksvideosrc ! video/x-raw,width=1920,height=1080,framerate=30/1 ! queue ! autovideosink

... I get some kind of internal data stream error. 

Something isn't right ... perhaps the ksvideosrc is just not very performant, or maybe something needs to be tweaked.

On Sun, Jun 28, 2020 at 8:39 AM Busayo Famutimi <[hidden email]> wrote:
Hi devs,

Please can someone help with a script for streaming high definition video from webcam to gst-internal window?

I have tried several scripts but the output is not high definition.

The scripts revolved around "gst-launch-1.0.exe ksvideosrc ! image/jpeg,width=1280,height=720,framerate=30/1 ! queue ! jpegdec ! videoconvert ! queue ! autovideosink"

Thanks.

Kind regards,
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: Stream HD video from webcam using gst-launch on Windows 10

Busayo Famutimi
In reply to this post by Busayo Famutimi
Hi David,

I also noticed the same error when I included the framerate option.

You are probably right. I am not sure the ksvideosrc plugin is still being maintained. The documentation page gives an error 404 message. Here is the link ksvideosrc.

Can you recommend any other video source plugin (that can stream from webcam) for windows?

Thanks.

Kind regards,

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

Re: Stream HD video from webcam using gst-launch on Windows 10

David Ing
Busayo,

I do not know of any better video capture source for Windows.  (I guess development is needed.)

Please remember to include the original message when replying in a thread.  This will allow nabble to organize conversations into threads, and it is also easier for people who receive the emails.

On Sun, Jun 28, 2020 at 1:34 PM Busayo Famutimi <[hidden email]> wrote:
Hi David,

I also noticed the same error when I included the framerate option.

You are probably right. I am not sure the ksvideosrc plugin is still being maintained. The documentation page gives an error 404 message. Here is the link ksvideosrc.

Can you recommend any other video source plugin (that can stream from webcam) for windows?

Thanks.

Kind regards,
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: Stream HD video from webcam using gst-launch on Windows 10

Nicolas Dufresne-5
In reply to this post by David Ing


Le dim. 28 juin 2020 15 h 45, David Ing <[hidden email]> a écrit :
I have never done video capture with gstreamer on Windows, so I can't offer great advice, but I noticed that your command did not execute on my machine.

I noticed that you are sending frames through as JPEG, it might make sense to send them as video/x-raw ...

gst-launch-1.0 --gst-debug-level=3 ksvideosrc ! video/x-raw,width=1920,height=1080 ! queue ! autovideosink

... but on my machine the playback is rather skippy (guessing 4 frames per second).

When I try to add framerate to the caps filter ...

gst-launch-1.0 --gst-debug-level=3 ksvideosrc ! video/x-raw,width=1920,height=1080,framerate=30/1 ! queue ! autovideosink

... I get some kind of internal data stream error. 

Probably not negotiated. Not all cameras support 30fps. Some a limited to 25 or have a special fraction like 29.97fps. note that you can use range in caps.


Something isn't right ... perhaps the ksvideosrc is just not very performant, or maybe something needs to be tweaked.

On Sun, Jun 28, 2020 at 8:39 AM Busayo Famutimi <[hidden email]> wrote:
Hi devs,

Please can someone help with a script for streaming high definition video from webcam to gst-internal window?

I have tried several scripts but the output is not high definition.

The scripts revolved around "gst-launch-1.0.exe ksvideosrc ! image/jpeg,width=1280,height=720,framerate=30/1 ! queue ! jpegdec ! videoconvert ! queue ! autovideosink"

Thanks.

Kind regards,
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: Stream HD video from webcam using gst-launch on Windows 10

Nirbheek Chauhan
In reply to this post by Busayo Famutimi
On Sun, Jun 28, 2020 at 10:15 PM Busayo Famutimi
<[hidden email]> wrote:
> Please can someone help with a script for streaming high definition video from webcam to gst-internal window?
>
> I have tried several scripts but the output is not high definition.
>
> The scripts revolved around "gst-launch-1.0.exe ksvideosrc ! image/jpeg,width=1280,height=720,framerate=30/1 ! queue ! jpegdec ! videoconvert ! queue ! autovideosink"
>

As others have said in the thread, try removing the framerate=
property. image/jpeg is correct here since USB 2 does not have enough
bandwidth for raw video, so video/x-raw will have very low framerate.

With the 1.17.1 development release (and the soon-to-be-released
1.18), you can also use mfvideosrc which is part of the new
mediafoundation plugin.

In general you can see available devices and what elements to use with:

gst-device-monitor-1.0 Video/Source

In apps you should use the GstDeviceMonitor API.

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

Re: Stream HD video from webcam using gst-launch on Windows 10

Busayo Famutimi
Thanks for the support guys. I look forward to the stable release of version 1.18.

Sent from the GStreamer-devel mailing list archive at Nabble.com.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel