Skip to content

Instantly share code, notes, and snippets.

@mark-kendall
Created October 31, 2020 08:56
Show Gist options
  • Save mark-kendall/749407e908774987e21b70647a3120c4 to your computer and use it in GitHub Desktop.
Save mark-kendall/749407e908774987e21b70647a3120c4 to your computer and use it in GitHub Desktop.
TX 6 V4L2 /dev/video0 Request decoder
mark@arm-64:~$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'ST12' (Sunxi Tiled NV12 Format, compressed)
[1]: 'NV12' (Y/CbCr 4:2:0)
mark@arm-64:~$ v4l2-ctl --list-formats-out-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Output
[0]: 'MG2S' (MPEG-2 Parsed Slice Data, compressed)
[1]: 'S264' (H.264 Parsed Slice Data, compressed)
[2]: 'S265' (HEVC Parsed Slice Data, compressed)
[3]: 'VP8F' (VP8 Frame, compressed)
mark@arm-64:~$ v4l2-ctl --all
Driver Info:
Driver name : cedrus
Card type : cedrus
Bus info : platform:cedrus
Driver version : 5.9.0
Capabilities : 0x84208000
Video Memory-to-Memory
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04208000
Video Memory-to-Memory
Streaming
Extended Pix Format
Media Driver Info:
Driver name : cedrus
Model : cedrus
Serial :
Bus info : platform:cedrus
Media version : 5.9.0
Hardware revision: 0x00000000 (0)
Driver version : 5.9.0
Interface Info:
ID : 0x0300000c
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : cedrus-source
Function : V4L2 I/O
Pad 0x01000002 : 0: Source
Link 0x02000008: to remote pad 0x1000004 of entity 'cedrus-proc': Data, Enabled, Immutable
Priority: 2
Format Video Capture:
Width/Height : 16/32
Pixel Format : 'ST12' (Sunxi Tiled NV12 Format)
Field : None
Bytes per Line : 32
Size Image : 1536
Colorspace : Default
Transfer Function : Default (maps to Rec. 709)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
Format Video Output:
Width/Height : 16/32
Pixel Format : 'MG2S' (MPEG-2 Parsed Slice Data)
Field : None
Bytes per Line : 0
Size Image : 1024
Colorspace : Default
Transfer Function : Default (maps to Rec. 709)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Full Range)
Flags :
Codec Controls
mpeg_2_slice_parameters 0x009909fa (unknown): type=103 flags=has-payload
mpeg_2_quantization_matrices 0x009909fb (unknown): type=104 flags=has-payload
h264_sequence_parameter_set 0x00990ce8 (unknown): type=110 flags=has-payload
h264_picture_parameter_set 0x00990ce9 (unknown): type=111 flags=has-payload
h264_scaling_matrix 0x00990cea (unknown): type=112 flags=has-payload
h264_slice_parameters 0x00990ceb (unknown): type=113 flags=has-payload
h264_decode_parameters 0x00990cec (unknown): type=114 flags=has-payload
h264_decode_mode 0x00990ced (menu) : min=0 max=0 default=0 value=0
0: Slice-Based
h264_start_code 0x00990cee (menu) : min=0 max=0 default=0 value=0
0: No Start Code
hevc_sequence_parameter_set 0x00990cf0 (unknown): type=120 flags=has-payload
hevc_picture_parameter_set 0x00990cf1 (unknown): type=121 flags=has-payload
hevc_slice_parameters 0x00990cf2 (unknown): type=122 flags=has-payload
hevc_scaling_matrix 0x00990cf3 (unknown): type=123 flags=has-payload
hevc_decode_mode 0x00990cf7 (menu) : min=0 max=0 default=0 value=0
0: Slice-Based
hevc_start_code 0x00990cf8 (menu) : min=0 max=0 default=0 value=0
0: No Start Code
vp8_frame_header 0x009910d0 (unknown): type=301 flags=has-payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment