AnsweredAssumed Answered

Streaming video from usb camera on mx53 qsb, problems

Question asked by Stefano Tabanelli on Oct 5, 2012
Latest reply on Oct 8, 2012 by Daiane Angolini
Branched to a new discussion

Hi, I'm trying to stream from a usb camera to ethernet on a MX53 QSB.

On my kubuntu 12.04 PC I see the camera:

v4l2-ctl –list-formats-ext

ioctl: VIDIOC_ENUM_FMT

Index       : 0

Type        : Video Capture

        Pixel Format: 'BA81'

Name        : BA81

Size: Discrete 160x120

Size: Discrete 320x240

Size: Discrete 640x480

Size: Discrete 1280x1024

 

Index       : 1

Type        : Video Capture

        Pixel Format: 'S920'

Name        : S920

Size: Discrete 160x120

Size: Discrete 320x240

Size: Discrete 640x480

 

Index       : 2

Type        : Video Capture

        Pixel Format: 'JPEG' (compressed)

Name        : JPEG

Size: Discrete 160x120

Size: Discrete 320x240

Size: Discrete 640x480

 

and also using dmesg I have the following info

===================

[ 1473.041372] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1, type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'

[ 1473.041378] sn9c20x: v4l_sn9c20x_ioctl 4A [ 1473.041380] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES error -22 [ 1473.041384] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.041386] sn9c20x: VIDIOC_ENUM_FMT 2 [ 1473.041388] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT error

-22

[ 1473.041454] sn9c20x: v4l_sn9c20x_ioctl 00 [ 1473.041456] sn9c20x: VIDIOC_QUERYCAP [ 1473.041459] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.

7-4, version=0x00200904, capabilities=0x05000001 [ 1473.041497] sn9c20x: v4l_sn9c20x_ioctl 00 [ 1473.041499] sn9c20x: VIDIOC_QUERYCAP [ 1473.041501] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.

7-4, version=0x00200904, capabilities=0x05000001 [ 1473.051818] sn9c20x: v4l_sn9c20x_ioctl 00 [ 1473.051823] sn9c20x: VIDIOC_QUERYCAP [ 1473.051826] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.

7-4, version=0x00200904, capabilities=0x05000001 [ 1473.051836] sn9c20x: v4l_sn9c20x_ioctl 00 [ 1473.051838] sn9c20x: VIDIOC_QUERYCAP [ 1473.051840] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.

7-4, version=0x00200904, capabilities=0x05000001 [ 1473.051847] sn9c20x: v4l_sn9c20x_ioctl 04 [ 1473.051850] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_FMT type=vid- cap [ 1473.051854] sn9c20x: GET FMT 1 [ 1473.051858] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=interlaced, bytesperline=960 sizeimage=460800,

colorspace=8

[ 1473.051864] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.051867] sn9c20x: VIDIOC_ENUM_FMT 0 [ 1473.051869] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=0, type=1, flags=0, pixelformat=S920, description='SN9C20X I420 (YUV 4:2:0)'

[ 1473.051876] sn9c20x: v4l_sn9c20x_ioctl 4A [ 1473.051878] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES error -22 [ 1473.051883] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.051885] sn9c20x: VIDIOC_ENUM_FMT 1 [ 1473.051887] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1, type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'

[ 1473.051893] sn9c20x: v4l_sn9c20x_ioctl 4A [ 1473.051894] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES error -22 [ 1473.051899] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.051901] sn9c20x: VIDIOC_ENUM_FMT 2 [ 1473.051903] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT error

-22

[ 1473.051944] sn9c20x: v4l_sn9c20x_ioctl 00 [ 1473.051947] sn9c20x: VIDIOC_QUERYCAP [ 1473.051949] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.

7-4, version=0x00200904, capabilities=0x05000001 [ 1473.051958] sn9c20x: v4l_sn9c20x_ioctl 00 [ 1473.051960] sn9c20x: VIDIOC_QUERYCAP [ 1473.051962] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.

7-4, version=0x00200904, capabilities=0x05000001 [ 1473.051969] sn9c20x: v4l_sn9c20x_ioctl 04 [ 1473.051971] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_FMT type=vid- cap [ 1473.051975] sn9c20x: GET FMT 1 [ 1473.051978] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=interlaced, bytesperline=960 sizeimage=460800,

colorspace=8

[ 1473.051983] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.051985] sn9c20x: VIDIOC_ENUM_FMT 0 [ 1473.051987] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=0, type=1, flags=0, pixelformat=S920, description='SN9C20X I420 (YUV 4:2:0)'

[ 1473.051993] sn9c20x: v4l_sn9c20x_ioctl 4A [ 1473.051995] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES error -22 [ 1473.052000] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.052002] sn9c20x: VIDIOC_ENUM_FMT 1 [ 1473.052004] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1, type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'

[ 1473.052010] sn9c20x: v4l_sn9c20x_ioctl 4A [ 1473.052011] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES error -22 [ 1473.052016] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.052018] sn9c20x: VIDIOC_ENUM_FMT 2 [ 1473.052020] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT error

-22

[ 1473.052045] sn9c20x: v4l_sn9c20x_ioctl 00 [ 1473.052047] sn9c20x: VIDIOC_QUERYCAP [ 1473.052049] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.

7-4, version=0x00200904, capabilities=0x05000001 [ 1473.052061] sn9c20x: v4l_sn9c20x_ioctl 00 [ 1473.052063] sn9c20x: VIDIOC_QUERYCAP [ 1473.052065] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCAP driver=sn9c20x, card=SN9C20x USB 2.0 Webcam Driver, bus=usb-0000:00:1d.

7-4, version=0x00200904, capabilities=0x05000001 [ 1473.052074] sn9c20x: v4l_sn9c20x_ioctl 1A [ 1473.052076] sn9c20x: VIDIOC_ENUMINPUT 0 [ 1473.052078] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUMINPUT index=0, name=Webcam, type=2, audioset=0, tuner=0, std=00000000,

status=0

[ 1473.052131] sn9c20x: v4l_sn9c20x_ioctl 1A [ 1473.052134] sn9c20x: VIDIOC_ENUMINPUT 1 [ 1473.052136] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUMINPUT error

-22

[ 1473.052141] sn9c20x: v4l_sn9c20x_ioctl 19 [ 1473.052144] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052147] sn9c20x: VIDIOC_QUERYCTRL id = 9963776 [ 1473.052149] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052151] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980900, type=1, name=Brightness, min/max=0/255, step=1, default=127, flags=0x00000000 [ 1473.052183] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052186] sn9c20x: VIDIOC_QUERYCTRL id = 9963777 [ 1473.052188] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052190] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980901, type=1, name=Contrast, min/max=0/255, step=1, default=127, flags=0x00000000 [ 1473.052201] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052203] sn9c20x: VIDIOC_QUERYCTRL id = 9963778 [ 1473.052205] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052207] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980902, type=1, name=Saturation, min/max=0/255, step=1, default=127, flags=0x00000000 [ 1473.052216] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052219] sn9c20x: VIDIOC_QUERYCTRL id = 9963779 [ 1473.052221] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052223] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980903, type=1, name=Hue, min/max=-180/180, step=1, default=0,

flags=0x00000000

[ 1473.052232] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052234] sn9c20x: VIDIOC_QUERYCTRL id = 9963780 [ 1473.052236] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980904

[ 1473.052240] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052245] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052247] sn9c20x: VIDIOC_QUERYCTRL id = 9963781 [ 1473.052249] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980905

[ 1473.052253] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052257] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052259] sn9c20x: VIDIOC_QUERYCTRL id = 9963782 [ 1473.052261] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980906

[ 1473.052265] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052269] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052271] sn9c20x: VIDIOC_QUERYCTRL id = 9963783 [ 1473.052273] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980907

[ 1473.052277] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052281] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052283] sn9c20x: VIDIOC_QUERYCTRL id = 9963784 [ 1473.052285] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980908

[ 1473.052289] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052293] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052295] sn9c20x: VIDIOC_QUERYCTRL id = 9963785 [ 1473.052297] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980909

[ 1473.052301] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052305] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052307] sn9c20x: VIDIOC_QUERYCTRL id = 9963786 [ 1473.052309] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98090a [ 1473.052313] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052317] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052319] sn9c20x: VIDIOC_QUERYCTRL id = 9963787 [ 1473.052321] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98090b [ 1473.052325] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052329] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052332] sn9c20x: VIDIOC_QUERYCTRL id = 9963788 [ 1473.052334] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052335] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98090c, type=2, name=Automatic whitbalance control, min/max=0/1, step=1, default=1, flags=0x00000000 [ 1473.052345] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052347] sn9c20x: VIDIOC_QUERYCTRL id = 9963789 [ 1473.052350] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98090d [ 1473.052353] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052357] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052360] sn9c20x: VIDIOC_QUERYCTRL id = 9963790 [ 1473.052362] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052363] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98090e, type=1, name=Red Balance, min/max=0/127, step=1, default=31, flags=0x00000000 [ 1473.052373] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052375] sn9c20x: VIDIOC_QUERYCTRL id = 9963791 [ 1473.052377] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052379] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98090f, type=1, name=Blue Balance, min/max=0/127, step=1, default=31, flags=0x00000000 [ 1473.052389] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052391] sn9c20x: VIDIOC_QUERYCTRL id = 9963792 [ 1473.052393] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052395] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980910, type=1, name=Gamma, min/max=0/255, step=1, default=51,

flags=0x00000000

[ 1473.052404] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052406] sn9c20x: VIDIOC_QUERYCTRL id = 9963793 [ 1473.052408] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052410] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980911, type=1, name=Exposure, min/max=0/255, step=1, default=51,

flags=0x00000002

[ 1473.052420] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052422] sn9c20x: VIDIOC_QUERYCTRL id = 9963794 [ 1473.052424] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052426] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980912, type=2, name=Automatic gain control, min/max=0/1, step=1, default=0, flags=0x00000000 [ 1473.052435] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052437] sn9c20x: VIDIOC_QUERYCTRL id = 9963795 [ 1473.052439] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052441] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980913, type=1, name=Gain, min/max=0/255, step=1, default=51,

flags=0x00000000

[ 1473.052450] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052453] sn9c20x: VIDIOC_QUERYCTRL id = 9963796 [ 1473.052454] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052456] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980914, type=2, name=Horizontal flip, min/max=0/1, step=1, default=0, flags=0x00000000 [ 1473.052463] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052465] sn9c20x: VIDIOC_QUERYCTRL id = 9963797 [ 1473.052467] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052469] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x980915, type=2, name=Vertical flip, min/max=0/1, step=1, default=0, flags=0x00000000 [ 1473.052476] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052478] sn9c20x: VIDIOC_QUERYCTRL id = 9963798 [ 1473.052480] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980916

[ 1473.052484] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052488] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052490] sn9c20x: VIDIOC_QUERYCTRL id = 9963799 [ 1473.052492] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980917

[ 1473.052496] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052500] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052502] sn9c20x: VIDIOC_QUERYCTRL id = 9963800 [ 1473.052504] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980918

[ 1473.052508] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052512] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052514] sn9c20x: VIDIOC_QUERYCTRL id = 9963801 [ 1473.052516] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL

id=0x980919

[ 1473.052520] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052524] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052526] sn9c20x: VIDIOC_QUERYCTRL id = 9963802 [ 1473.052528] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98091a [ 1473.052532] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052536] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052538] sn9c20x: VIDIOC_QUERYCTRL id = 9963803 [ 1473.052540] sn9c20x: VIDIOC_QUERYCTRL found [ 1473.052542] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98091b, type=1, name=Sharpness, min/max=0/63, step=1, default=31,

flags=0x00000000

[ 1473.052549] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052551] sn9c20x: VIDIOC_QUERYCTRL id = 9963804 [ 1473.052553] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98091c [ 1473.052557] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052561] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052563] sn9c20x: VIDIOC_QUERYCTRL id = 9963805 [ 1473.052565] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98091d [ 1473.052569] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052573] sn9c20x: v4l_sn9c20x_ioctl 24 [ 1473.052575] sn9c20x: VIDIOC_QUERYCTRL id = 9963806 [ 1473.052577] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL id=0x98091e [ 1473.052581] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYCTRL error

-22

[ 1473.052598] sn9c20x: v4l_sn9c20x_ioctl 17 [ 1473.052600] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_STD

std=0x00000000

[ 1473.052609] sn9c20x: v4l_sn9c20x_ioctl 26 [ 1473.052612] sn9c20x: GET INPUT 1699528136 [ 1473.052614] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_INPUT error -22 [ 1473.053239] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.053243] sn9c20x: VIDIOC_ENUM_FMT 0 [ 1473.053246] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=0, type=1, flags=0, pixelformat=S920, description='SN9C20X I420 (YUV 4:2:0)'

[ 1473.053256] sn9c20x: v4l_sn9c20x_ioctl 02 [ 1473.053259] sn9c20x: VIDIOC_ENUM_FMT 1 [ 1473.053262] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FMT index=1, type=1, flags=0, pixelformat=BA81, description='Bayer 8bit (BGGR)'

[ 1473.053302] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053306] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053312] sn9c20x: TRY FMT 1 [ 1473.053317] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=S920, field=interlaced, bytesperline=61585 sizeimage=-258994321, colorspace=8 [ 1473.053322] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053325] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053331] sn9c20x: TRY FMT 1 [ 1473.053335] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=BA81, field=interlaced, bytesperline=41057 sizeimage=-1604296801, colorspace=8 [ 1473.053341] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053344] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053350] sn9c20x: TRY FMT 1 [ 1473.053354] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=interlaced, bytesperline=960 sizeimage=460800,

colorspace=8

[ 1473.053359] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053362] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053368] sn9c20x: TRY FMT 1 [ 1473.053372] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,

colorspace=8

[ 1473.053394] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053397] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053403] sn9c20x: TRY FMT 1 [ 1473.053407] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=S920, field=interlaced, bytesperline=61585 sizeimage=-258994321, colorspace=8 [ 1473.053412] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053415] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053421] sn9c20x: TRY FMT 1 [ 1473.053425] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=BA81, field=interlaced, bytesperline=41057 sizeimage=-1604296801, colorspace=8 [ 1473.053431] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053434] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053439] sn9c20x: TRY FMT 1 [ 1473.053442] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=interlaced, bytesperline=960 sizeimage=460800,

colorspace=8

[ 1473.053447] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053450] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053456] sn9c20x: TRY FMT 1 [ 1473.053460] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,

colorspace=8

[ 1473.053478] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053482] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053488] sn9c20x: TRY FMT 1 [ 1473.053492] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=S920, field=interlaced, bytesperline=61585 sizeimage=-258994321, colorspace=8 [ 1473.053497] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053500] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053505] sn9c20x: TRY FMT 1 [ 1473.053510] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=BA81, field=interlaced, bytesperline=41057 sizeimage=-1604296801, colorspace=8 [ 1473.053516] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053519] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053525] sn9c20x: TRY FMT 1 [ 1473.053529] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=interlaced, bytesperline=960 sizeimage=460800,

colorspace=8

[ 1473.053534] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053537] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053542] sn9c20x: TRY FMT 1 [ 1473.053546] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,

colorspace=8

[ 1473.053564] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053567] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053573] sn9c20x: TRY FMT 1 [ 1473.053577] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=S920, field=interlaced, bytesperline=61585 sizeimage=-258994321, colorspace=8 [ 1473.053582] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053585] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053591] sn9c20x: TRY FMT 1 [ 1473.053596] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=BA81, field=interlaced, bytesperline=41057 sizeimage=-1604296801, colorspace=8 [ 1473.053601] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053605] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053610] sn9c20x: TRY FMT 1 [ 1473.053614] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=interlaced, bytesperline=960 sizeimage=460800,

colorspace=8

[ 1473.053619] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053621] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053627] sn9c20x: TRY FMT 1 [ 1473.053631] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,

colorspace=8

[ 1473.053645] sn9c20x: v4l_sn9c20x_ioctl 4A [ 1473.053648] SN9C20x USB 2.0 Webcam Driver: VIDIOC_ENUM_FRAMESIZES error -22 [ 1473.053655] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053658] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053664] sn9c20x: TRY FMT 1 [ 1473.053668] SN9C20x USB 2.0 Webcam Driver: width=41057, height=65535, format=BA81, field=interlaced, bytesperline=41057 sizeimage=-1604296801, colorspace=8 [ 1473.053674] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053676] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053682] sn9c20x: TRY FMT 1 [ 1473.053686] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,

colorspace=8

[ 1473.053949] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053952] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053958] sn9c20x: TRY FMT 1 [ 1473.053962] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=S920, field=interlaced, bytesperline=960 sizeimage=460800,

colorspace=8

[ 1473.053968] sn9c20x: v4l_sn9c20x_ioctl 40 [ 1473.053970] SN9C20x USB 2.0 Webcam Driver: VIDIOC_TRY_FMT type=vid- cap [ 1473.053976] sn9c20x: TRY FMT 1 [ 1473.053981] SN9C20x USB 2.0 Webcam Driver: width=640, height=480, format=BA81, field=interlaced, bytesperline=640 sizeimage=307200,

colorspace=8

[ 1473.053987] sn9c20x: v4l_sn9c20x_ioctl 15 [ 1473.053990] SN9C20x USB 2.0 Webcam Driver: VIDIOC_G_PARM type=1 [ 1473.054002] sn9c20x: v4l_sn9c20x_ioctl 08 [ 1473.054007] sn9c20x: Freeing 0 v4l2 buffers [ 1473.054110] sn9c20x: Buffers Allocated 2 [ 1473.054112] SN9C20x USB 2.0 Webcam Driver: VIDIOC_REQBUFS count=2, type=vid-cap, memory=mmap [ 1473.054145] sn9c20x: v4l_sn9c20x_ioctl 09 [ 1473.054149] sn9c20x: QUERY BUFFERS 0 2 [ 1473.054152] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYBUF

00:00:00.00000000 index=0, type=vid-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/ userptr=0x00000000, length=460800 [ 1473.054163] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.054178] sn9c20x: v4l_sn9c20x_ioctl 09 [ 1473.054181] sn9c20x: QUERY BUFFERS 1 2 [ 1473.054185] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYBUF

00:00:00.00000000 index=1, type=vid-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/ userptr=0x00071000, length=460800 [ 1473.054195] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.054201] sn9c20x: v4l_sn9c20x_ioctl 09 [ 1473.054204] sn9c20x: QUERY BUFFERS 0 2 [ 1473.054207] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYBUF

00:00:00.00000000 index=0, type=vid-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/ userptr=0x00000000, length=460800 [ 1473.054217] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.054275] sn9c20x: v4l_sn9c20x_ioctl 09 [ 1473.054279] sn9c20x: QUERY BUFFERS 1 2 [ 1473.054282] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QUERYBUF

00:00:00.00000000 index=1, type=vid-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/ userptr=0x00071000, length=460800 [ 1473.054292] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.054330] sn9c20x: v4l_sn9c20x_ioctl 0F [ 1473.054333] sn9c20x: VIDIOC_QBUF [ 1473.054336] sn9c20x: Queuing buffer 0.

[ 1473.054340] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QBUF

00:00:00.00000000 index=0, type=vid-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/ userptr=0xabcdef00, length=16777216 [ 1473.054350] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.054355] sn9c20x: v4l_sn9c20x_ioctl 0F [ 1473.054357] sn9c20x: VIDIOC_QBUF [ 1473.054360] sn9c20x: Queuing buffer 1.

[ 1473.054363] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QBUF

00:00:00.00000000 index=1, type=vid-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/ userptr=0xabcdef01, length=16777216 [ 1473.054373] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.054378] sn9c20x: v4l_sn9c20x_ioctl 12 [ 1473.054382] SN9C20x USB 2.0 Webcam Driver: VIDIOC_STREAMON type=vid- cap [ 1473.054388] sn9c20x: VIDIOC_STREAMON [ 1473.054662] sn9c20x: Found Endpoint 0x1 [ 1473.055031] sn9c20x: usb_sn9c20x_isoc_init() [ 1473.056444] sn9c20x: v4l_sn9c20x_ioctl 11 [ 1473.056448] sn9c20x: VIDIOC_DQBUF [ 1473.118658] sn9c20x: AVGY Total: 323206 (631) [ 1473.118679] sn9c20x: Dequeuing buffer 0 (3, 460800 bytes).

[ 1473.118683] sn9c20x: Sensor YAVG: 631 [ 1473.118686] SN9C20x USB 2.0 Webcam Driver: VIDIOC_DQBUF

344801:11:48.00456315 index=0, type=vid-cap, bytesused=460800, flags=0x00000001, field=1, sequence=0, memory=mmap, offset/ userptr=0x00000000, length=460800 [ 1473.118697] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.122016] sn9c20x: v4l_sn9c20x_ioctl 0F [ 1473.122023] sn9c20x: VIDIOC_QBUF [ 1473.122025] sn9c20x: Queuing buffer 0.

[ 1473.122028] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QBUF

00:00:00.00000000 index=0, type=vid-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/ userptr=0xabcdef00, length=16777216 [ 1473.122039] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.122945] sn9c20x: v4l_sn9c20x_ioctl 11 [ 1473.122950] sn9c20x: VIDIOC_DQBUF [ 1473.153645] sn9c20x: AVGY Total: 323021 (630) [ 1473.167179] sn9c20x: Dequeuing buffer 1 (3, 460800 bytes).

[ 1473.167182] sn9c20x: Sensor YAVG: 630 [ 1473.167185] SN9C20x USB 2.0 Webcam Driver: VIDIOC_DQBUF

344801:11:48.00491301 index=1, type=vid-cap, bytesused=460800, flags=0x00000001, field=1, sequence=1, memory=mmap, offset/ userptr=0x00071000, length=460800 [ 1473.167192] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.170185] sn9c20x: v4l_sn9c20x_ioctl 0F [ 1473.170190] sn9c20x: VIDIOC_QBUF [ 1473.170191] sn9c20x: Queuing buffer 1.

[ 1473.170194] SN9C20x USB 2.0 Webcam Driver: VIDIOC_QBUF

00:00:00.00000000 index=1, type=vid-cap, bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap, offset/ userptr=0xabcdef01, length=16777216 [ 1473.170201] SN9C20x USB 2.0 Webcam Driver: timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000 [ 1473.171315] sn9c20x: v4l_sn9c20x_ioctl 13 [ 1473.171319] SN9C20x USB 2.0 Webcam Driver: VIDIOC_STREAMOFF type=vid-cap [ 1473.171324] sn9c20x: VIDIOC_STREAMOFF [ 1473.172153] sn9c20x: Isoc cleanup [ 1473.190907] sn9c20x: Isoc cleanup [ 1473.190910] sn9c20x: Freeing 2 v4l2 buffers [ 1473.736038] usb 2-1: firmware: requesting ueagle-atm/DSP4p.bin [ 1473.738756] usb 2-1: [UEAGLE-ATM] requesting firmware ueagle-atm/ DSP4p.bin fa =====================

 

with the following commands I'm able to send and receive the video stream on my kubuntu PC (stream h264 via eth)

 

server

gst-launch v4l2src device=/dev/video0 ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! x264enc ! video/x-h264 ! rtph264pay pt=96 ! udpsink host=192.168.1.201 port=11111 sync=false

 

client

gst-launch udpsrc multicast-iface=eth0 multicast-group=192.168.1.201 port=11111 ! application/x-rtp,payload=96 ! rtph264depay ! decodebin ! xvimagesink sync=false

 

When I plug the camera into MX53 QSB I have the following report

 

usb 2-1: new high speed USB device using fsl-ehci and address 3 usb 2-1: New USB device found, idVendor=a168, idProduct=0615 usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 2-1: Product: USB20 Camera

gspca: probing a168:0615

sn9c20x: MT9M111 sensor detected

input: sn9c20x as /devices/platform/fsl-ehci.1/usb2/2-1/input/input5

gspca: video0 created

gspca: found int in endpoint: 0x83, buffer_len=1, interval=10

 

On the same mx53 qsb I've tried the following commands

1)

gst-launch v4l2src device=/dev/video !

'video/x-raw-bayer,width=640,height=480,framerate=30/1' ! mfw_vpuencoder codec-type=std_avc bitrate=600 ! video/x-h264,width=640,height=480 !

rtph264pay ! udpsink port=5000 host=192.168.1.201

 

WARNING: erroneous pipeline: could not link v4l2src0 to mfwgstvpu_enc0

 

2)

gst-launch v4l2src !

'video/x-raw-yuv,format=(fourcc)S920,width=640,height=480,framerate=30/1' !

ffmpegcolorspace ! mfw_vpuencoder loopback=true codec-type=std_mpeg4 !

rtpmp4vpay ! udpsink host=224.1.1.1 port=5434

 

WARNING: erroneous pipeline: could not link v4l2src0 to ffmpegcsp0

 

3)

gst-launch v4l2src  ! ffmpegcolorspace ! mfw_vpuencoder loopback=true

codec-type=std_mpeg4 ! rtpmp4vpay ! udpsink host=224.1.1.1 port=5434

 

Setting pipeline to PAUSED ...

[INFO]  Product Info: i.MX53

VPU Version: firmware 1.4.41; libvpu: 5.3.2 MFW_GST_VPU_ENCODER_PLUGIN 2.0.3 build on Sep 26 2012 22:48:02.

ERROR: Pipeline doesn't want to pause.

ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format Additional debug info:

  1. gstbasesrc.c(2719): gst_base_src_start ():

/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:

Check your filtered caps, if any

Setting pipeline to NULL ...

Freeing pipeline ...

 

it seems to me (based on command 1 and 2) that the video acquisition format has been accepted by the camera/gstream but it's not accepted by the vpu encoder, may you confirm?


Moreover, the following commands are able to stream something to ethernet, but due to the lack of rtp pipe I don't think there is a way to play the stream back eg from an external PC

 

gst-launch v4l2src ! udpsink host=192.168.1.201 auto-multicast=true port=5000 sync=false

 

gst-launch v4l2src ! 'video/x-raw-bayer,width=1280,height=1024,framerate=30/1' ! udpsink host=192.168.1.201 auto-multicast=true port=5000 sync=false

 

Do you have suggestions?

Thanks,

Stefano

 

 

 


Outcomes