Stream HD video from webcam using gst-launch on Windows 10
Nirbheek Chauhan
nirbheek.chauhan at gmail.com
Mon Jun 29 10:52:53 UTC 2020
On Sun, Jun 28, 2020 at 10:15 PM Busayo Famutimi
<famutimi.busayo at gmail.com> 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
More information about the gstreamer-devel
mailing list