ksvideosrc generates slow and dark input

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

ksvideosrc generates slow and dark input

Ilya Aleshkov
Hi,

ksvideosrc generates extremally slow (1 fps!) and dark input for laptop’s integrated cameras (Microsoft Surface Pro 6). But for external webcams everything works great.
Any suggestions?

Thanks,
Ilya

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

Re: ksvideosrc generates slow and dark input

Ilya Aleshkov
I'd like to provide more details:

My test pipeline:

gst-launch-1.0 ksvideosrc ! video/x-raw,format=NV12,width=640,height=480,framerate=15/1 ! videoconvert ! autovideosink

gst-device-monitor-1.0 output about laptop’s front camera:

Device found:
        name  : Intel(R) AVStream Camera 2500
        class : Video/Source
        caps  : video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)IANV, width=(int)1920, height=(int)1080, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)IANV, width=(int)640, height=(int)360, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)NV12, width=(int)640, height=(int)480, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)IANV, width=(int)640, height=(int)480, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)NV12, width=(int)640, height=(int)640, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)12/11;
                video/x-raw, format=(string)IANV, width=(int)640, height=(int)640, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)12/11;
                video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)IANV, width=(int)1280, height=(int)720, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)IANV, width=(int)640, height=(int)360, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)NV12, width=(int)640, height=(int)480, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)IANV, width=(int)640, height=(int)480, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)NV12, width=(int)640, height=(int)640, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)12/11;
                video/x-raw, format=(string)IANV, width=(int)640, height=(int)640, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)12/11;
                video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)IANV, width=(int)1280, height=(int)720, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
                video/x-raw, format=(string)IANV, width=(int)1920, height=(int)1080, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
        gst-launch-1.0 ksvideosrc device-path="\\\\\?\\display\#int3470\#4\&5b5cba1\&0\&uid13424\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\\{bf89b5a5-61f7-4127-a279-e187013d7caf\}" ! …

Thanks,
Ilya


On Mon, Jan 7, 2019 at 2:23 PM Ilya Aleshkov <[hidden email]> wrote:
Hi,

ksvideosrc generates extremally slow (1 fps!) and dark input for laptop’s integrated cameras (Microsoft Surface Pro 6). But for external webcams everything works great.
Any suggestions?

Thanks,
Ilya

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

Re: ksvideosrc generates slow and dark input

Nicolas Dufresne-5
Le lundi 07 janvier 2019 à 17:46 +0300, Ilya Aleshkov a écrit :
> I'd like to provide more details:
>
> My test pipeline:
>
> gst-launch-1.0 ksvideosrc ! video/x-raw,format=NV12,width=640,height=480,framerate=15/1 ! videoconvert !

Could it be a timestamp issue, as per the caps, this resolution/rate
should not be a problem. Maybe do a quick test disabling frame
synchronization ? (autovideosink sync=0)

>
> gst-device-monitor-1.0 output about laptop’s front camera:
>
> Device found:
>         name  : Intel(R) AVStream Camera 2500
>         class : Video/Source
>         caps  : video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)1920, height=(int)1080, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;

I wonder what IANV color format is, this isn't mapped in libgstvideo
for sure, so this format won't be usable.

>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)360, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)480, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)480, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)640, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)12/11;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)640, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)12/11;
>                 video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)1280, height=(int)720, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)360, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)480, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)480, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)640, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)12/11;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)640, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)12/11;
>                 video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)1280, height=(int)720, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)1920, height=(int)1080, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>         gst-launch-1.0 ksvideosrc device-path="\\\\\?\\display\#int3470\#4\&5b5cba1\&0\&uid13424\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\\{bf89b5a5-61f7-4127-a279-e187013d7caf\}" ! …
>
> Thanks,
> Ilya
>
>
> On Mon, Jan 7, 2019 at 2:23 PM Ilya Aleshkov <[hidden email]> wrote:
> > Hi,
> >
> > ksvideosrc generates extremally slow (1 fps!) and dark input for laptop’s integrated cameras (Microsoft Surface Pro 6). But for external webcams everything works great.
> > Any suggestions?
> >
> > Thanks,
> > Ilya
>
> _______________________________________________
> 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

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: ksvideosrc generates slow and dark input

Ilya Aleshkov
Hi Nicolas,
 
Maybe do a quick test disabling frame
synchronization ? (autovideosink sync=0)

Thank you! Unfortunately, it doesn't change anything.

Ilya

On Mon, Jan 7, 2019 at 8:28 PM Nicolas Dufresne <[hidden email]> wrote:
Le lundi 07 janvier 2019 à 17:46 +0300, Ilya Aleshkov a écrit :
> I'd like to provide more details:
>
> My test pipeline:
>
> gst-launch-1.0 ksvideosrc ! video/x-raw,format=NV12,width=640,height=480,framerate=15/1 ! videoconvert !

Could it be a timestamp issue, as per the caps, this resolution/rate
should not be a problem. Maybe do a quick test disabling frame
synchronization ? (autovideosink sync=0)

>
> gst-device-monitor-1.0 output about laptop’s front camera:
>
> Device found:
>         name  : Intel(R) AVStream Camera 2500
>         class : Video/Source
>         caps  : video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)1920, height=(int)1080, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;

I wonder what IANV color format is, this isn't mapped in libgstvideo
for sure, so this format won't be usable.

>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)360, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)480, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)480, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)640, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)12/11;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)640, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)12/11;
>                 video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)1280, height=(int)720, framerate=(fraction)[ 15/1, 30/1 ], pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)360, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)360, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)480, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)480, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)640, height=(int)640, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)12/11;
>                 video/x-raw, format=(string)IANV, width=(int)640, height=(int)640, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)12/11;
>                 video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)1280, height=(int)720, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>                 video/x-raw, format=(string)IANV, width=(int)1920, height=(int)1080, framerate=(fraction)15/1, pixel-aspect-ratio=(fraction)1/1;
>         gst-launch-1.0 ksvideosrc device-path="\\\\\?\\display\#int3470\#4\&5b5cba1\&0\&uid13424\#\{6994ad05-93ef-11d0-a3cc-00a0c9223196\}\\\{bf89b5a5-61f7-4127-a279-e187013d7caf\}" ! …
>
> Thanks,
> Ilya
>
>
> On Mon, Jan 7, 2019 at 2:23 PM Ilya Aleshkov <[hidden email]> wrote:
> > Hi,
> >
> > ksvideosrc generates extremally slow (1 fps!) and dark input for laptop’s integrated cameras (Microsoft Surface Pro 6). But for external webcams everything works great.
> > Any suggestions?
> >
> > Thanks,
> > Ilya
>
> _______________________________________________
> 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