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

Nicolas Dufresne nicolas at ndufresne.ca
Sun Jun 28 22:31:33 UTC 2020


Le dim. 28 juin 2020 15 h 45, David Ing <ding at panopto.com> 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 <famutimi.busayo at gmail.com>
> 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
>> gstreamer-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200628/d420584a/attachment.htm>


More information about the gstreamer-devel mailing list