NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

streaming video from netbsd pi headless



Hi All:

I have obtained a logitech webcam that is compatible with uvideo on my
netbsd pi. I'm looking for a headless solution to stream video from the
pi to the rest of my farm.


Running this command:

chickencoop$ cvlc -vvv v4l2:///dev/video0
--sout="#transcode{vcodec=mp2v,vb=640,scale=1,acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=http,mux=ts,dst=/}}"

I find this in my output:

[0x40442b24] main input error: open of `v4l2:///dev/video0' failed
[0x40442b24] main input error: Your input can't be opened
[0x40442b24] main input error: VLC is unable to open the MRL
'v4l2:///dev/video0'. Check the log for details.

Is there a simpler solution than VLC to access /dev/video0 to stream the
video to http.

chickencoop$ dmesg
MaxVideoFrameBufferSize=1553408 dwDefaultFrameInterval=1000000
bFrameIntervalType=2
uvideo_attach:   VS Frame Uncompressed: Len=34 Type=0x24 Subtype=0x05
bFrameIndex=18 bmCapabilities=0x01 wWidth=1280 wHeight=720
dwMinBitRate=73728000 dwMaxBitRate=147456000
dwMaxVideoFrameBufferSize=1843200 dwDefaultFrameInterval=2000000
bFrameIntervalType=2
uvideo_attach:   VS Frame Uncompressed: Len=34 Type=0x24 Subtype=0x05
bFrameIndex=19 bmCapabilities=0x01 wWidth=1280 wHeight=960
dwMinBitRate=98304000 dwMaxBitRate=196608000
dwMaxVideoFrameBufferSize=2457600 dwDefaultFrameInterval=2000000
bFrameIntervalType=2
uvideo_attach:   VS unknown cs interface: len=6 type=0x24 subtype=0x0d
uvideo_attach:   VS MJPEG format: Len=11 Type=0x24 Subtype=0x06
bFormatIndex=2 bNumFrameDescriptors=19 bmFlags=0x01 bDefaultFrameIndex=1
bAspectRatioX=0 bAspectRatioY=0 bmInterlaceFlags=0x00 bCopyProtect=0
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=1 bmCapabilities=0x01 wWidth=640 wHeight=480
dwMinBitRate=24576000 dwMaxBitRate=147456000
dwMaxVideoFrameBufferSize=614400 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=2 bmCapabilities=0x01 wWidth=160 wHeight=120
dwMinBitRate=1536000 dwMaxBitRate=9216000
dwMaxVideoFrameBufferSize=38400 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=3 bmCapabilities=0x01 wWidth=176 wHeight=144
dwMinBitRate=2027520 dwMaxBitRate=12165120
dwMaxVideoFrameBufferSize=50688 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=4 bmCapabilities=0x01 wWidth=320 wHeight=176
dwMinBitRate=4505600 dwMaxBitRate=27033600
dwMaxVideoFrameBufferSize=112640 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=5 bmCapabilities=0x01 wWidth=320 wHeight=240
dwMinBitRate=6144000 dwMaxBitRate=36864000
dwMaxVideoFrameBufferSize=153600 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=6 bmCapabilities=0x01 wWidth=352 wHeight=288
dwMinBitRate=8110080 dwMaxBitRate=48660480
dwMaxVideoFrameBufferSize=202752 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=7 bmCapabilities=0x01 wWidth=432 wHeight=240
dwMinBitRate=8294400 dwMaxBitRate=49766400
dwMaxVideoFrameBufferSize=207360 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=8 bmCapabilities=0x01 wWidth=544 wHeight=288
dwMinBitRate=12533760 dwMaxBitRate=75202560
dwMaxVideoFrameBufferSize=313344 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=9 bmCapabilities=0x01 wWidth=640 wHeight=360
dwMinBitRate=18432000 dwMaxBitRate=110592000
dwMaxVideoFrameBufferSize=460800 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=10 bmCapabilities=0x01 wWidth=752 wHeight=416
dwMinBitRate=25026560 dwMaxBitRate=150159360
dwMaxVideoFrameBufferSize=625664 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=11 bmCapabilities=0x01 wWidth=800 wHeight=448
dwMinBitRate=28672000 dwMaxBitRate=172032000
dwMaxVideoFrameBufferSize=716800 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=12 bmCapabilities=0x01 wWidth=800 wHeight=600
dwMinBitRate=38400000 dwMaxBitRate=230400000
dwMaxVideoFrameBufferSize=960000 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=13 bmCapabilities=0x01 wWidth=864 wHeight=480
dwMinBitRate=33177600 dwMaxBitRate=199065600
dwMaxVideoFrameBufferSize=829440 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=14 bmCapabilities=0x01 wWidth=960 wHeight=544
dwMinBitRate=41779200 dwMaxBitRate=250675200
dwMaxVideoFrameBufferSize=1044480 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=15 bmCapabilities=0x01 wWidth=960 wHeight=720
dwMinBitRate=55296000 dwMaxBitRate=331776000
dwMaxVideoFrameBufferSize=1382400 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=16 bmCapabilities=0x01 wWidth=1024 wHeight=576
dwMinBitRate=47185920 dwMaxBitRate=283115520
dwMaxVideoFrameBufferSize=1179648 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=17 bmCapabilities=0x01 wWidth=1184 wHeight=656
dwMinBitRate=62136320 dwMaxBitRate=372817920
dwMaxVideoFrameBufferSize=1553408 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=18 bmCapabilities=0x01 wWidth=1280 wHeight=720
dwMinBitRate=73728000 dwMaxBitRate=442368000
dwMaxVideoFrameBufferSize=1843200 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS MJPEG frame: Len=50 Type=0x24 Subtype=0x07
bFrameIndex=19 bmCapabilities=0x01 wWidth=1280 wHeight=960
dwMinBitRate=98304000 dwMaxBitRate=589824000
dwMaxVideoFrameBufferSize=2457600 dwDefaultFrameInterval=333333
bFrameIntervalType=6
uvideo_attach:   VS unknown cs interface: len=6 type=0x24 subtype=0x0d
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x01 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=192 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x02 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=384 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x03 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=512 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x04 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=640 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x05 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=800 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x06 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=944 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x07 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=2688 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x08 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=2848 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x09 bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=3040 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x0a bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=4992 bInterval=1
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x01
bAlternateSetting=0x0b bNumEndpoints=0x01 bInterfaceClass=0x0e
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   VS Endpoint: Len=7 Type=0x05 bEndpointAddress=0x81
bmAttributes=00000101 wMaxPacketSize=5116 bInterval=1
uvideo_attach:   VS unknown: len=8 type=0x0b
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x02
bAlternateSetting=0x00 bNumEndpoints=0x00 bInterfaceClass=0x01
bInterfaceSubClass=0x01 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   non uvc descriptor len=9 type=0x24
uvideo_attach:   non uvc descriptor len=12 type=0x24
uvideo_attach:   non uvc descriptor len=9 type=0x24
uvideo_attach:   non uvc descriptor len=9 type=0x24
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x03
bAlternateSetting=0x00 bNumEndpoints=0x00 bInterfaceClass=0x01
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x03
bAlternateSetting=0x01 bNumEndpoints=0x01 bInterfaceClass=0x01
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   non uvc descriptor len=7 type=0x24
uvideo_attach:   non uvc descriptor len=11 type=0x24
uvideo_attach:   non uvc descriptor len=9 type=0x05
uvideo_attach:   non uvc descriptor len=7 type=0x25
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x03
bAlternateSetting=0x02 bNumEndpoints=0x01 bInterfaceClass=0x01
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   non uvc descriptor len=7 type=0x24
uvideo_attach:   non uvc descriptor len=11 type=0x24
uvideo_attach:   non uvc descriptor len=9 type=0x05
uvideo_attach:   non uvc descriptor len=7 type=0x25
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x03
bAlternateSetting=0x03 bNumEndpoints=0x01 bInterfaceClass=0x01
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   non uvc descriptor len=7 type=0x24
uvideo_attach:   non uvc descriptor len=11 type=0x24
uvideo_attach:   non uvc descriptor len=9 type=0x05
uvideo_attach:   non uvc descriptor len=7 type=0x25
uvideo_attach: Interface: Len=9 Type=0x04 bInterfaceNumber=0x03
bAlternateSetting=0x04 bNumEndpoints=0x01 bInterfaceClass=0x01
bInterfaceSubClass=0x02 bInterfaceProtocol=0x00 iInterface=0x00
uvideo_attach:   non uvc descriptor len=7 type=0x24
uvideo_attach:   non uvc descriptor len=11 type=0x24
uvideo_attach:   non uvc descriptor len=9 type=0x05
uvideo_attach:   non uvc descriptor len=7 type=0x25
uvideo_stream_init: probelen=26
uvideo: Adding pixel format 1
uvideo: found format (index 1) type 1 size 640x480 size 614400 stride
1280 interval 333333
 ^ picking this one
uvideo: found format (index 2) type 1 size 160x120 size 38400 stride 320
interval 333333
uvideo: found format (index 3) type 1 size 176x144 size 50688 stride 352
interval 333333
uvideo: found format (index 4) type 1 size 320x176 size 112640 stride
640 interval 333333
uvideo: found format (index 5) type 1 size 320x240 size 153600 stride
640 interval 333333
uvideo: found format (index 6) type 1 size 352x288 size 202752 stride
704 interval 333333
uvideo: found format (index 7) type 1 size 432x240 size 207360 stride
864 interval 333333
uvideo: found format (index 8) type 1 size 544x288 size 313344 stride
1088 interval 333333
uvideo: found format (index 9) type 1 size 640x360 size 460800 stride
1280 interval 333333
uvideo: found format (index 10) type 1 size 752x416 size 625664 stride
1504 interval 400000
uvideo: found format (index 11) type 1 size 800x448 size 716800 stride
1600 interval 500000
uvideo: found format (index 12) type 1 size 800x600 size 960000 stride
1600 interval 500000
uvideo: found format (index 13) type 1 size 864x480 size 829440 stride
1728 interval 500000
uvideo: found format (index 14) type 1 size 960x544 size 1044480 stride
1920 interval 666666
uvideo: found format (index 15) type 1 size 960x720 size 1382400 stride
1920 interval 1000000
uvideo: found format (index 16) type 1 size 1024x576 size 1179648 stride
2048 interval 1000000
uvideo: found format (index 17) type 1 size 1184x656 size 1553408 stride
2368 interval 1000000
uvideo: found format (index 18) type 1 size 1280x720 size 1843200 stride
2560 interval 2000000
uvideo: found format (index 19) type 1 size 1280x960 size 2457600 stride
2560 interval 2000000
uvideo: unimplemented VS CS descriptor len=6 type=0x24 subtype=0x0d
uvideo: Adding pixel format 9
uvideo: found format (index 1) type 9 size 640x480 size 614400 stride
1280 interval 333333
uvideo: found format (index 2) type 9 size 160x120 size 38400 stride 320
interval 333333
uvideo: found format (index 3) type 9 size 176x144 size 50688 stride 352
interval 333333
uvideo: found format (index 4) type 9 size 320x176 size 112640 stride
640 interval 333333
uvideo: found format (index 5) type 9 size 320x240 size 153600 stride
640 interval 333333
uvideo: found format (index 6) type 9 size 352x288 size 202752 stride
704 interval 333333
uvideo: found format (index 7) type 9 size 432x240 size 207360 stride
864 interval 333333
uvideo: found format (index 8) type 9 size 544x288 size 313344 stride
1088 interval 333333
uvideo: found format (index 9) type 9 size 640x360 size 460800 stride
1280 interval 333333
uvideo: found format (index 10) type 9 size 752x416 size 625664 stride
1504 interval 333333
uvideo: found format (index 11) type 9 size 800x448 size 716800 stride
1600 interval 333333
uvideo: found format (index 12) type 9 size 800x600 size 960000 stride
1600 interval 333333
uvideo: found format (index 13) type 9 size 864x480 size 829440 stride
1728 interval 333333
uvideo: found format (index 14) type 9 size 960x544 size 1044480 stride
1920 interval 333333
uvideo: found format (index 15) type 9 size 960x720 size 1382400 stride
1920 interval 333333
uvideo: found format (index 16) type 9 size 1024x576 size 1179648 stride
2048 interval 333333
uvideo: found format (index 17) type 9 size 1184x656 size 1553408 stride
2368 interval 333333
uvideo: found format (index 18) type 9 size 1280x720 size 1843200 stride
2560 interval 333333
uvideo: found format (index 19) type 9 size 1280x960 size 2457600 stride
2560 interval 333333
uvideo: unimplemented VS CS descriptor len=6 type=0x24 subtype=0x0d
uvideo_attach: ISOC stream *
uvideo_stream_init_desc: unknown descriptor len=8 type=0x0b
video0 at uvideo0: vendor 0x046d product 0x081b, rev 2.00/0.12, addr 4
uvideo_attach: attached video driver at 0x9bd61908
umidi_search_quirk: v=1133, p=2075, i=1
umidi_search_quirk: v=1133, p=2075, i=2
uaudio0 at uhub1 port 2 configuration 1 interface 2
uaudio0: vendor 0x046d product 0x081b, rev 2.00/0.12, addr 4
id 1:   AC_INPUT type=UATI_MICROPHONE
        cluster: bNrChannels=1 wChannelConfig=0x0000> iChannelNames=0
        input0: UATI_MICROPHONE
        output: UAT_STREAM
id 3:   AC_OUTPUT type=UAT_STREAM src=5
        input0: UATI_MICROPHONE
        output: UAT_STREAM
id 5:   AC_FEATURE src=1
        input0: UATI_MICROPHONE
        output: UAT_STREAM
uaudio0: audio rev 1.00
uaudio0: 2 mixer controls
audio1 at uaudio0: full duplex, playback, capture, independent
uftdi0 at uhub1 port 3
uftdi0: FTDI FT232R USB UART, rev 2.00/6.00, addr 5
ucom0 at uftdi0 portno 1
boot device: ld0
root on ld0a dumps on ld0b
root file system type: ffs
vchiq: local ver 6 (min 3), remote ver 6.
vcaudio0 at vchiq0: auds
vchiq_get_state: g_state.remote->initialised != 1 (0)
WARNING: no TOD clock present
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
audio0 at vcaudio0: half duplex, playback, capture, independent

Thanks in advance.

--- Marina Brown


Home | Main Index | Thread Index | Old Index