Skip to content

zhyh329/gstreamer-rockchip-extra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a set of GStreamer plugins about graphics/camera for rockchip platform.
Most of them were modified based on upstream existing plugin.

This software has been tested only with kernel after 4.4.

Status

Elements Type Comments Origin
rkximagesink Video Render (sink) kmssink on X11, for overlay display ximagesink + kmssink
kmssink Video Render (sink) overlay display kmssink
rgaconvert Video Converter video colorspace,format,size conversion v4l2 transform
rkcamsrc Device Sources rockchip isp camera source v4l2src

Usage

rkximagesink

Pipeline example

  • display : X Display name, for window display : (optional)
  • connector-id : DRM connector id, for drm display : (optional)
  • display-ratio : Enable the aspect ratio display : (default : true)

rgaconvert

Pipeline example

Most of the properties are the same as that of v4l2 transform, below are rockchip extend properties:

  • rotation : 90-degree step rotation mode for the inner video frame : (default : 0)
  • hflip : horizontal flip : (default : false)
  • vflip : vertical flip : (default : false)
  • input-crop : Selection-crop, should be "left"x"top"x"width"x"height": (optional)
  • output-crop : Selection-compose, should be "left"x"top"x"width"x"height" : (optional)
  • vpu-stride : Use 4 alignment for input height, to handle VPU buffer correctly. Note if it's enabled, input-crop are unavailable. : (default : false)

rkcamsrc

Pipeline example

Most of the properties are the same as that of v4l2src, below are rockchip extend properties:

  • disable-autoconf : If false, this plugin will init pad format/selection for isp_subdev/sensor, to make the media pipeline work out-of-box: (default : false)
  • tuning-xml-path : tuning xml file, needed by 3A : (default : "/etc/cam_iq.xml")
  • isp-mode : "0A" to disable 3A, "2A" to enable AWB/AE, "3A" to enable AWB/AE/AF : (default : "false")
  • input-crop : Selection-crop, should be "left"x"top"x"width"x"height": (optional)

NOTE: DO NOT RELY ON disable-autoconf=false!
This feature is only used to make debug conveniently.
rkcamsrc plugin is not designed as a CamHal. It's more like v4l2-ctl, just a simple capture program.
Since the use cases are divers, please handle media-controller and pad format/selection in APP level.

About

Extra Gstreamer Plugins for RockChip SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 74.5%
  • M4 12.7%
  • Perl 4.4%
  • Makefile 3.5%
  • Shell 2.1%
  • Python 1.7%
  • Other 1.1%