This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Need Beagleboneblack V4L2 pipe example for gst-lauch-1.0

Hi,

I tried to run usb webcam on beaglebone black with "gst-launch-1.0 -e v4l2src ! video/x-raw-yuv,width=640,height=480,framerate=15/1 ! ffmpegcolorspace ! fbdevsink device=/dev/fb0"  but it doesnt work. Could you please help me to find any?

Not: I use ti-sitara-sdk rootfs and kernel but there is only "JPEG" format is allowed how can I recompile sdk v4l2 libraries?

root@am335x-evm:/# v4l2-ctl --list-devices
PC Camera (usb-musb-hdrc.1.auto-1.2):
        /dev/video0

root@am335x-evm:/# v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'JPEG' (compressed)
        Name        : JPEG

root@am335x-evm:/# v4l2-ctl -D
Driver Info (not using libv4l2):
        Driver name   : gspca_zc3xx
        Card type     : PC Camera
        Bus info      : usb-musb-hdrc.1.auto-1.2
        Driver version: 4.1.6
        Capabilities  : 0x85200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x05200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format


root@am335x-evm:/# v4l2-ctl -L

User Controls

                     brightness (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                       contrast (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                          gamma (int)    : min=1 max=6 step=1 default=4 value=4 flags=slider
                 gain_automatic (bool)   : default=1 value=1
           power_line_frequency (menu)   : min=0 max=2 default=0 value=0
                                0: Disabled
                                1: 50 Hz
                                2: 60 Hz
                      sharpness (int)    : min=0 max=3 step=1 default=2 value=2 flags=slider

JPEG Compression Controls

            compression_quality (int)    : min=50 max=87 step=1 default=75 value=75
                     brightness (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                       contrast (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                          gamma (int)    : min=1 max=6 step=1 default=4 value=4 flags=slider
                 gain_automatic (bool)   : default=1 value=1
           power_line_frequency (menu)   : min=0 max=2 default=0 value=0
                                0: Disabled
                                1: 50 Hz
                                2: 60 Hz
                      sharpness (int)    : min=0 max=3 step=1 default=2 value=2 flags=slider


root@am335x-evm:/# v4l2-ctl --all > /tmp.log
root@am335x-evm:/# more /tmp.log
Driver Info (not using libv4l2):
        Driver name   : gspca_zc3xx
        Card type     : PC Camera
        Bus info      : usb-musb-hdrc.1.auto-1.2
        Driver version: 4.1.6
        Capabilities  : 0x85200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x05200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (gspca_zc3xx: ok)
Format Video Capture:
        Width/Height  : 640/480
        Pixel Format  : 'JPEG'
        Field         : None
        Bytes per Line: 640
        Size Image    : 115790
        Colorspace    : JPEG (JFIF/ITU601)
        Flags         :     
JPEG compression:           
        Quality: 75         
        Markers: 0x00000018
                Define Huffman Tables
                Define Quantization Tables
Streaming Parameters Video Capture:
        Frames per second: invalid (0/0)
        Read buffers     : 2
                            
User Controls               
                            
e=128 flags=slider          ess (int)    : min=0 max=255 step=1 default=128 valu--More-- (46% of 1957 bytes)
e=128 flags=slider          ast (int)    : min=0 max=255 step=1 default=128 valu--More-- (52% of 1957 bytes)
flags=slider                mma (int)    : min=1 max=6 step=1 default=4 value=4 --More-- (57% of 1957 bytes)
                 gain_automatic (bool)   : default=1 value=1
           power_line_frequency (menu)   : min=0 max=2 default=0 value=0
flags=slider                ess (int)    : min=0 max=3 step=1 default=2 value=2 --More-- (69% of 1957 bytes)
                            
JPEG Compression Controls   
                            
=75                         ity (int)    : min=50 max=87 step=1 default=75 value--More-- (75% of 1957 bytes)
e=128 flags=slider          ess (int)    : min=0 max=255 step=1 default=128 valu--More-- (80% of 1957 bytes)
e=128 flags=slider          ast (int)    : min=0 max=255 step=1 default=128 valu--More-- (85% of 1957 bytes)
flags=slider                mma (int)    : min=1 max=6 step=1 default=4 value=4 --More-- (90% of 1957 bytes)
                 gain_automatic (bool)   : default=1 value=1
           power_line_frequency (menu)   : min=0 max=2 default=0 value=0
flags=slider                 ss (int)    : min=0 max=3 step=1 default=2 value=2 --More-- (102% of 1957 bytes)

root@am335x-evm:/dev# uname -a

Linux am335x-evm 4.1.6-g52c4aa7 #1 PREEMPT Wed Oct 7 14:38:18 EDT 2015 armv7l GNU/Linux

Best Regards,

Ümit.