Streaming video from usb camera on mx53 qsb, problems

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Streaming video from usb camera on mx53 qsb, problems

5,681 Views
stefanotabanell
Contributor I

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


Labels (3)
0 Kudos
Reply
7 Replies

1,855 Views
fabio_estevam
NXP Employee
NXP Employee

Stefano,

Can you validate the Gstreamer pipelines first on a Linux PC connected to a webcam and then you stream the video to this same PC?

Regards,

Fabio Estevam

0 Kudos
Reply

1,855 Views
stefanotabanell
Contributor I

Fabio,

it's what I did by the commands listed above (I report them here), PC running kubuntu 12.04, the video is correctòy sent and received and visualized:

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


0 Kudos
Reply

1,855 Views
daiane_angolini
NXP Employee
NXP Employee

I'm not sure if I understand. Let me double check some infos:

* you camera will give video with raw format.

* v4l2src device=/dev/video is not an error. You can really see /dev/video into your rootfs.

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?

I think you're right. VPU encoder will accept *some* raw format. I cannot remember it by heart, can you, please, share return of gst-inspect mfw_vpuencoder?

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

It's due to gstreamer version/plugins installed into your rootfs. You can upgrade your gstreamer and see if there is any package missing. I remember I was able to perform both ways streaming.

In addition, try to not use ffmpegcolorspace, it's completely executed by software/cpu

0 Kudos
Reply

1,855 Views
stefanotabanell
Contributor I

Hi, this is what the command returns

root@freescale ~$ gst-inspect mfw_vpuencoder

Factory Details:

   Long name:    Freescale: Hardware (VPU) Encoder

   Class:        Codec/Encoder/Video

Description:  Encodes raw YUV 4:2:0 data to MPEG4 SP, H.264 BP or

  1. H.263 (Annex J, K (RS=0 and ASO=0) and T) elementary data;Encodes raw YUV;

   Author(s):    Multimedia Team <shmmmw@freescale.com>

   Rank:         primary (256)

Plugin Details:

   Name:                 mfw_vpuencoder

Description:          Encodes Raw YUV Data to MPEG4 SP, H.264 BP or

  1. H.263 data. For H.263 P0, the source frame rate must be 30000/1001 fps

   Filename: /usr/lib/gstreamer-0.10/libmfw_gst_vpu_enc.so

   Version:              2.0.3

   License:              unknown

   Source module:        gst-fsl-plugins

   Binary package:       Gstreamer Multimedia Plugins (Freescale)

   Origin URL:           http://www.freescale.com

GObject

  +----GstObject

+----GstElement

+----MfwGstVPU_Enc

Pad Templates:

   SRC template: 'src'

     Availability: Always

     Capabilities:

       video/mpeg

width: [ 48, 1280 ]

height: [ 32, 720 ]

mpegversion: 4

            systemstream: false

       video/x-h263

width: [ 48, 1280 ]

height: [ 32, 720 ]

       video/x-h264

width: [ 48, 1280 ]

height: [ 32, 720 ]

       image/jpeg

width: [ 48, 8192 ]

height: [ 32, 8192 ]

   SINK template: 'sink'

     Availability: Always

     Capabilities:

video/x-raw-yuv

format: I420

width: [ 48, 8192 ]

                  height: [ 32, 8192 ]

video/x-raw-yuv

format: YV12

width: [ 48, 8192 ]

height: [ 32, 8192 ]

video/x-raw-yuv

format: NV12

width: [ 48, 8192 ]

                  height: [ 32, 8192 ]

video/x-raw-yuv

format: Y42B

width: [ 48, 8192 ]

height: [ 32, 8192 ]

video/x-raw-yuv

format: Y444

width: [ 48, 8192 ]

height: [ 32, 8192 ]

Element Flags:

   no flags set

Element Implementation:

   Has change_state() function: 0x2b01198c

   Has custom save_thyself() function: gst_element_save_thyself

   Has custom restore_thyself() function: gst_element_restore_thyself

Element has no clocking capabilities.

Element has no indexing capabilities.

Element has no URI handling capabilities.

Pads:

   SRC: 'src'

Implementation:

     Pad Template: 'src'

   SINK: 'sink'

Implementation:

       Has chainfunc(): 0x2b012e28

       Has custom eventfunc(): mfw_gst_vpuenc_sink_event

       Has bufferallocfunc(): mfw_gst_vpuenc_buffer_alloc

     Pad Template: 'sink'

Element Properties:

   name                : The name of the object

flags: readable, writable

String. Default: null Current: "mfwgstvpu_enc0"

   codec-type          : selects the codec type for encoding

flags: readable, writable

Enum "MfwGstVpuEncCodecs" Default: 2, "std_avc"

Current: 2, "std_avc"

                            (0): std_mpeg4        - STD_MPEG4

                            (1): std_h263         - STD_H263

                            (2): std_avc          - STD_AVC

                            (7): std_mjpg         - STD_MJPG

   profile             : enable time profile of the vpu encoder plug-in

flags: readable, writable

Boolean. Default: false Current: false

   width               : width of the frame to be encoded

flags: readable, writable

Unsigned Integer. Range: 48 - 8192 Default: 48

Current: 0

   height              : height of the frame to be encoded

flags: readable, writable

Unsigned Integer. Range: 32 - 8192 Default: 32

Current: 0

   bitrate             : target bitrate (in kbps) at which stream is to

be encoded - 0 for VBR and others for CBR

flags: readable, writable

Unsigned Integer. Range: 0 - 32767 Default: 0

Current: 32768

   gopsize             : gets the GOP size at which stream is to be encoded

flags: readable, writable

Unsigned Integer. Range: 0 - 32767 Default: 30

Current: 30

   qp                  : gets the quantization parameter - range is 0-51

- will be ignored for CBR (bitrate!=0)

flags: readable, writable

Unsigned Integer. Range: 0 - 51 Default: 15

Current: 4294967295

   max-qp              : Maximum quantization parameter for CBR - range

is 0-51 for H264 and 1-31 for MPEG4 - lower value brings better video s

flags: readable, writable

Unsigned Integer. Range: 0 - 51 Default: 51

Current: 4294967295

   min-qp              : Minimum quantization parameter for CBR - range

is 0-51 for H264 and 1-31 for MPEG4 - lower value brings better video s

flags: readable, writable

Unsigned Integer. Range: 0 - 51 Default: 0

Current: 4294967295

   gamma               : gamma value for CBR - tells VPU the speed on

changing qp - lower will cause better video quality

flags: readable, writable

Unsigned Integer. Range: 0 - 32768 Default:

24576 Current: 24576

   intrarefresh        : 0 - Intra MB refresh is not used. Otherwise -

At least N MB's in every P-frame will be encoded as intra MB's.

flags: readable, writable

Unsigned Integer. Range: 0 - 3600 Default: 0

Current: 0

h263profile0        : enable encoding of H.263 profile 0 when

codec-type is set to std_h263

flags: readable, writable

Boolean. Default: false Current: false

   loopback            : disables parallelization for performance - turn

off if pipeline with decoder

flags: readable, writable

Boolean. Default: true Current: true

   intra-qp            : Quantization parameter for I frame. When this

value is -1, the quantization parameter for I frames is automatically dG

flags: readable, writable

Unsigned Integer. Range: 0 - 51 Default: 15

Current: 4294967295

   crop-left           : The left crop value of input frame to be encoded

flags: readable, writable

Unsigned Integer. Range: 0 - 4294967295

Default: 0 Current: 0

   crop-top            : The top crop value of input frame to be encoded

flags: readable, writable

Unsigned Integer. Range: 0 - 4294967295

Default: 0 Current: 0

   crop-right          : The right crop value of input frame to be encoded

flags: readable, writable

Unsigned Integer. Range: 0 - 4294967295

Default: 0 Current: 0

   crop-bottom         : The bottom crop value of input frame to be encoded

flags: readable, writable

                         Unsigned Integer. Range: 0 - 4294967295

Default: 0 Current: 0

rotation-angle      : Pre-rotation angle - should be 0, 90, 180 or 270

flags: readable, writable

Unsigned Integer. Range: 0 - 270 Default: 0

Current: 0

mirror-direction    : mirror direction from source image to encoded image

flags: readable, writable

Enum "MfwGstVpuEncMirDir" Default: 0,

"none " Current: 0, "none                "

                            (0): none                 - MIRDIR_NONE

                            (1): vertical mirroring   - MIRDIR_VER

                            (2): horizontal mirroring - MIRDIR_HOR

                            (3): both directions      - MIRDIR_HOR_VER

h264-byte-stream    : Generate H.264 byte stream format of NALU. Take

effect for H.264 stream only.

flags: readable, writable

Boolean. Default: true Current: true


0 Kudos
Reply

1,855 Views
daiane_angolini
NXP Employee
NXP Employee

this is what mfw_vpuencoder is able to understand as input:

video/x-raw-yuv

format: I420

width: [ 48, 8192 ]

                  height: [ 32, 8192 ]

video/x-raw-yuv

format: YV12

width: [ 48, 8192 ]

height: [ 32, 8192 ]

video/x-raw-yuv

format: NV12

width: [ 48, 8192 ]

                  height: [ 32, 8192 ]

video/x-raw-yuv

format: Y42B

width: [ 48, 8192 ]

height: [ 32, 8192 ]

video/x-raw-yuv

format: Y444

width: [ 48, 8192 ]

height: [ 32, 8192 ]

Does your camera can give any of this?

Maybe, would be better take MJPEG from your camera and stream it.

Please, let me know what you think.

0 Kudos
Reply

1,855 Views
stefanotabanell
Contributor I

Hi Daiane,

the format outputs are bayer,s920 or jpeg.

I've tried also the jpeg output but I think it's intended for still pictures, not video.

I would need to convert one pixel format to another accepted by the mfw_vpuencoder, OR a way to stream out the raw data (udp) without compression, in this case I would also need to use an rtp pipe to add time/frame info, otherwise I'll not be able to play the flow back on a PC, do you have suggestions to implement my points?

Thanks,

Stefano

0 Kudos
Reply

1,855 Views
daiane_angolini
NXP Employee
NXP Employee

At least upgrade your gstreamer version (have you already worked for it?)

For the color space conversion, I have never been able to to have a good command line using not accelerated conversion mainly because I haven´t worked hard with it.

0 Kudos
Reply