Playing around with gstreamer fails strangely

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

Playing around with gstreamer fails strangely

Paolo Bolzoni-2
Dear list,

Here is my first tries:

# modprobe --first-time v4l2loopback devices=2 exclusive_caps=0
# gst-launch-1.0 videotestsrc !  videoconvert   ! v4l2sink device=/dev/video1

However this fails (see the error lines in the bottom) and I quite
confused because I am sure
in the past I was able to make it work.

I used gst-inspect-1.0 to verify that all caps are fine and everything
seems correct. What can i try?

Cheers,
Paolo



Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data
stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop ():
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playing around with gstreamer fails strangely

ShilVin
Ideally this pipeline should work as videotestsrc is intelligent enough to
generate video date compatible with the downstream.

Can you  prove debug logs of the pipeline

gst-launch-1.0 videotestsrc !  videoconvert   ! v4l2sink device=/dev/video1
--gst-debug=2




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

Re: Playing around with gstreamer fails strangely

Nicolas Dufresne-5
In reply to this post by Paolo Bolzoni-2


Le ven. 18 mai 2018 02:57, Paolo Bolzoni <[hidden email]> a écrit :
Dear list,

Here is my first tries:

# modprobe --first-time v4l2loopback devices=2 exclusive_caps=0
# gst-launch-1.0 videotestsrc !  videoconvert   ! v4l2sink device=/dev/video1

However this fails (see the error lines in the bottom) and I quite
confused because I am sure
in the past I was able to make it work.

I used gst-inspect-1.0 to verify that all caps are fine and everything
seems correct. What can i try?

V4L2loopback is very buggy, and causes random failures. This has been reported, but no fixes has been made.


Cheers,
Paolo



Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data
stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop ():
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
_______________________________________________
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: Playing around with gstreamer fails strangely

Paolo Bolzoni-2
On Fri, May 18, 2018 at 11:45 AM, Vinod Kesti <[hidden email]> wrote:
> Can you  prove debug logs of the pipeline
>
> gst-launch-1.0 videotestsrc !  videoconvert   ! v4l2sink device=/dev/video1
> --gst-debug=2

I am not sure how informative it is, but here it is:

% gst-launch-1.0 videotestsrc !  videoconvert   ! v4l2sink
device=/dev/video1 --gst-debug=3

                :(
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.024352275  9163 0x56274ab94d40 FIXME                default
gstutils.c:3963:gst_pad_create_stream_id_internal:<videotestsrc0:src>
Creating random stream-id, consider implementing a deterministic way
of creating a stream-id
0:00:00.024924622  9163 0x56274ab94d40 WARN                 basesrc
gstbasesrc.c:3055:gst_base_src_loop:<videotestsrc0> error: Internal
data stream error.
0:00:00.024933407  9163 0x56274ab94d40 WARN                 basesrc
gstbasesrc.c:3055:gst_base_src_loop:<videotestsrc0> error: streaming
stopped, reason not-negotiated (-4)
ERROR: from element
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data
stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop ():
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...



On Fri, May 18, 2018 at 1:02 PM, Nicolas Dufresne <[hidden email]> wrote:
> V4L2loopback is very buggy, and causes random failures. This has been
> reported, but no fixes has been made.

I see, and I guess there are no alternatives to have a simple
controllable webcam?

My use case is that for some reasons few programs see my webcam
vertically flipped, so I would like to have a "normal" one and a
"flipped" one (via videoflip method=vertical-flip) so depending on the
program I can use the one I need.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playing around with gstreamer fails strangely

Nicolas Dufresne-5
Le vendredi 18 mai 2018 à 14:07 +0200, Paolo Bolzoni a écrit :

> On Fri, May 18, 2018 at 11:45 AM, Vinod Kesti <[hidden email]> wrote:
> > Can you  prove debug logs of the pipeline
> >
> > gst-launch-1.0 videotestsrc !  videoconvert   ! v4l2sink device=/dev/video1
> > --gst-debug=2
>
> I am not sure how informative it is, but here it is:
>
> % gst-launch-1.0 videotestsrc !  videoconvert   ! v4l2sink
> device=/dev/video1 --gst-debug=3
>
>                 :(
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> 0:00:00.024352275  9163 0x56274ab94d40 FIXME                default
> gstutils.c:3963:gst_pad_create_stream_id_internal:<videotestsrc0:src>
> Creating random stream-id, consider implementing a deterministic way
> of creating a stream-id
> 0:00:00.024924622  9163 0x56274ab94d40 WARN                 basesrc
> gstbasesrc.c:3055:gst_base_src_loop:<videotestsrc0> error: Internal
> data stream error.
> 0:00:00.024933407  9163 0x56274ab94d40 WARN                 basesrc
> gstbasesrc.c:3055:gst_base_src_loop:<videotestsrc0> error: streaming
> stopped, reason not-negotiated (-4)
> ERROR: from element
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data
> stream error.
> Additional debug info:
> gstbasesrc.c(3055): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
> streaming stopped, reason not-negotiated (-4)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
>
>
> On Fri, May 18, 2018 at 1:02 PM, Nicolas Dufresne <[hidden email]> wrote:
> > V4L2loopback is very buggy, and causes random failures. This has been
> > reported, but no fixes has been made.
>
> I see, and I guess there are no alternatives to have a simple
> controllable webcam?
>
> My use case is that for some reasons few programs see my webcam
> vertically flipped, so I would like to have a "normal" one and a
> "flipped" one (via videoflip method=vertical-flip) so depending on the
> program I can use the one I need.
That's interesting, I was looking for such cases recently. Do you mind
reporting the camera model and/or the laptop model ?
_______________________________________________
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: Playing around with gstreamer fails strangely

Paolo Bolzoni-2
On Fri, May 18, 2018 at 8:11 PM, Nicolas Dufresne <[hidden email]> wrote:
> That's interesting, I was looking for such cases recently. Do you mind
> reporting the camera model and/or the laptop model ?

lsusb -v states this:

Bus 003 Device 007: ID 0471:032e Philips (or NXP) SPC 315NC PC Camera
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0471 Philips (or NXP)
  idProduct          0x032e SPC 315NC PC Camera
  bcdDevice            1.00
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          193
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0000  1x 0 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0080  1x 128 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       2
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x00c0  1x 192 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       3
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0100  1x 256 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       4
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0180  1x 384 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       5
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       6
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0300  1x 768 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       7
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            1
          Transfer Type            Isochronous
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0380  1x 896 bytes
        bInterval               1
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel