Jump to content
Sign in to follow this  
Kajan001

ffmpeg on Tinker Board

Recommended Posts

I have a tinkerboars r2 (and a TB 2s) with recommended OS. I have attached a picamerav2 (8MP imx219) and it works with gstreamer but I have yet to learn that.

I cannot get ffmpeg working, I just get the message: 

[video4linux2,v4l2 @ 0x810f7610] Not a video capture device.
/dev/video1: No such device
 

Using:    ls /dev/video*

I get: /dev/video0  /dev/video1  /dev/video2  /dev/video3  /dev/video4  so clearly the camera is recognised by the system

Has anyone got ffmpeg working on TB os? 

Additonal info below.

Using :     v4l2-ctl --all 

Driver Info:
    Driver name      : rkisp1_v0
    Card type        : rkisp1_mainpath
    Bus info         : platform:ff910000.rkisp1
    Driver version   : 4.4.194
    Capabilities     : 0x84201000
        Video Capture Multiplanar
        Streaming
        Extended Pix Format
        Device Capabilities
    Device Caps      : 0x04201000
        Video Capture Multiplanar
        Streaming
        Extended Pix Format
Media Driver Info:
    Driver name      : rkisp1
    Model            : rkisp1
    Serial           : 
    Bus info         : 
    Media version    : 0.1.0
    Hardware revision: 0x00000000 (0)
    Driver version   : 0.0.0
Entity Info:
    ID               : 2
    Name             : rkisp1_mainpath
    Type             : V4L2 I/O
    Pad              : 0: Sink
Priority: 2
Format Video Capture Multiplanar:
    Width/Height      : 1280/720
    Pixel Format      : 'RGB3' (24-bit RGB 8-8-8)
    Field             : None
    Number of planes  : 1
    Flags             : 
    Colorspace        : sRGB
    Transfer Function : sRGB
    YCbCr/HSV Encoding: Default
    Quantization      : Full Range
    Plane 0           :
       Bytes per Line : 3840
       Size Image     : 2764800
Crop: Left 0, Top 0, Width 1920, Height 1080
Selection: crop, Left 0, Top 0, Width 1920, Height 1080, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags: 
Selection: crop, Left 0, Top 0, Width 1920, Height 1080, Flags: 
Selection: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags: 

User Controls

                       exposure 0x00980911 (int)    : min=0 max=4095 step=1 default=1575 value=1457
                           gain 0x00980913 (int)    : min=256 max=43663 step=1 default=256 value=256
                horizontal_flip 0x00980914 (bool)   : default=0 value=0
                  vertical_flip 0x00980915 (bool)   : default=0 value=0

Image Source Controls

              vertical_blanking 0x009e0901 (int)    : min=686 max=686 step=1 default=686 value=686
            horizontal_blanking 0x009e0902 (int)    : min=1524 max=1524 step=1 default=1524 value=1524
                  analogue_gain 0x009e0903 (int)    : min=256 max=2816 step=1 default=512 value=932

Image Processing Controls

                 link_frequency 0x009f0901 (intmenu): min=0 max=0 default=0 value=0
                     pixel_rate 0x009f0902 (int64)  : min=0 max=182463120 step=1 default=182463120 value=182463120 flags=read-only
                   test_pattern 0x009f0903 (menu)   : min=0 max=13 default=0 value=0
 

Using:  

gst-device-monitor-1.0 Video
Probing devices...


Device found:

    name  : rkisp1_mainpath
    class : Video/Source
    caps  : video/x-raw, format=(string)YUY2, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)Y42B, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)I420, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)RGB, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV12, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV21, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV12, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV21, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV61, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV16, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-bayer, format=(string)bggr, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-bayer, format=(string)gbrg, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-bayer, format=(string)grbg, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-bayer, format=(string)rggb, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
    properties:
        udev-probed = true
        device.bus_path = platform-ff910000.rkisp1
        sysfs.path = /sys/devices/platform/ff910000.rkisp1/video4linux/video0
        device.subsystem = video4linux
        device.product.name = rkisp1_mainpath
        device.capabilities = :capture:
        device.api = v4l2
        device.path = /dev/video0
        v4l2.device.driver = rkisp1_v0
        v4l2.device.card = rkisp1_mainpath
        v4l2.device.bus_info = platform:ff910000.rkisp1
        v4l2.device.version = 263362 (0x000404c2)
        v4l2.device.capabilities = 2216693760 (0x84201000)
        v4l2.device.device_caps = 69210112 (0x04201000)
    gst-launch-1.0 v4l2src ! ...


Device found:

    name  : rkisp1_selfpath
    class : Video/Source
    caps  : video/x-raw, format=(string)YUY2, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)Y42B, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)I420, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)BGRx, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV12, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV21, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV12, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV21, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV61, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)NV16, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)RGB16, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
            video/x-raw, format=(string)GRAY8, width=(int)[ 32, 1920, 8 ], height=(int)[ 16, 1080, 8 ], framerate=(fraction)[ 1/1, 30/1 ];
    properties:
        udev-probed = true
        device.bus_path = platform-ff910000.rkisp1
        sysfs.path = /sys/devices/platform/ff910000.rkisp1/video4linux/video1
        device.subsystem = video4linux
        device.product.name = rkisp1_selfpath
        device.capabilities = :capture:
        device.api = v4l2
        device.path = /dev/video1
        v4l2.device.driver = rkisp1_v0
        v4l2.device.card = rkisp1_selfpath
        v4l2.device.bus_info = platform:ff910000.rkisp1
        v4l2.device.version = 263362 (0x000404c2)
        v4l2.device.capabilities = 2216693760 (0x84201000)
        v4l2.device.device_caps = 69210112 (0x04201000)
    gst-launch-1.0 v4l2src device=/dev/video1 ! ...


Device found:

    name  : rkisp1_dmapath
    class : Video/Sink
    caps  : video/x-raw, format=(string)YUY2, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], interlace-mode=(string)progressive, colorimetry=(string){ 1:4:5:4, 1:5:6:5, 1:3:5:1, 1:4:5:2, 1:4:5:3, 1:4:7:1, 1:4:12:8, 1:6:11:7, 1:0:0:0 };
            video/x-raw, format=(string)UYVY, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], interlace-mode=(string)progressive, colorimetry=(string){ 1:4:5:4, 1:5:6:5, 1:3:5:1, 1:4:5:2, 1:4:5:3, 1:4:7:1, 1:4:12:8, 1:6:11:7, 1:0:0:0 };
            video/x-bayer, format=(string)bggr, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], colorimetry=(string){ 1:4:5:4, 1:5:6:5, 1:3:5:1, 1:4:5:2, 1:4:5:3, 1:4:7:1, 1:4:12:8, 1:6:11:7, 1:0:0:0 }, parsed=(boolean)true;
            video/x-bayer, format=(string)gbrg, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], colorimetry=(string){ 1:4:5:4, 1:5:6:5, 1:3:5:1, 1:4:5:2, 1:4:5:3, 1:4:7:1, 1:4:12:8, 1:6:11:7, 1:0:0:0 }, parsed=(boolean)true;
            video/x-bayer, format=(string)grbg, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], colorimetry=(string){ 1:4:5:4, 1:5:6:5, 1:3:5:1, 1:4:5:2, 1:4:5:3, 1:4:7:1, 1:4:12:8, 1:6:11:7, 1:0:0:0 }, parsed=(boolean)true;
            video/x-bayer, format=(string)rggb, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], colorimetry=(string){ 1:4:5:4, 1:5:6:5, 1:3:5:1, 1:4:5:2, 1:4:5:3, 1:4:7:1, 1:4:12:8, 1:6:11:7, 1:0:0:0 }, parsed=(boolean)true;
            video/x-raw, format=(string)YVYU, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], interlace-mode=(string)progressive, colorimetry=(string){ 1:4:5:4, 1:5:6:5, 1:3:5:1, 1:4:5:2, 1:4:5:3, 1:4:7:1, 1:4:12:8, 1:6:11:7, 1:0:0:0 };
    properties:
        udev-probed = true
        device.bus_path = platform-ff910000.rkisp1
        sysfs.path = /sys/devices/platform/ff910000.rkisp1/video4linux/video2
        device.subsystem = video4linux
        device.product.name = rkisp1_dmapath
        device.capabilities = :video_output:
        device.api = v4l2
        device.path = /dev/video2
        v4l2.device.driver = rkisp1_v0
        v4l2.device.card = rkisp1_dmapath
        v4l2.device.bus_info = platform:ff910000.rkisp1
        v4l2.device.version = 263362 (0x000404c2)
        v4l2.device.capabilities = 2216697856 (0x84202000)
        v4l2.device.device_caps = 69214208 (0x04202000)
    gst-launch-1.0 ... ! v4l2sink device=/dev/video2

Share this post


Link to post
Share on other sites

In short: ffmpeg can be used to capture audio but not video because the current libraries are not compatible with the setup.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...