beautypg.com

Vidioc_enumaudio, vidioc_g_audio, vidioc_s_audio – Sensoray 2253 Linux User Manual

Page 20

background image

VBI line 21 into h.264 stream, elementary or MPEG-TS. Capture only.
When enabled, user data insertion will be overridden.

V4L2_CID_MPEG_AUDIO_ENCODING:

Use enum V4L2_MPEG_AUDIO_ENCODING_AAC or
V4L2_MPEG_AUDIO_ENCODING_NONE. Only with MP4 or MPEG-TS. Capture

only.

V4L2_CID_MPEG_AUDIO_MODE:

Use enum V4L2_MPEG_AUDIO_MODE_STEREO or
V4L2_MPEG_AUDIO_MODE_MONO. Only with MP4 or MPEG-TS. Capture only.

V4L2_CID_MPEG_AUDIO_AAC_BITRATE:

32,000 to 512,000 bps in steps of 16,000 bps, default 192,000 bps.
Only with MP4 or MPEG-TS. Capture only.

V4L2_CID_MPEG_VIDEO_ENCODING:

Use enum V4L2_MPEG_VIDEO_ENCODING_MPEG_4_AVC (h.264) or
V4L2_MPEG_VIDEO_ENCODING_MPEG_4 (MPEG-4)

Only with MP4 or MPEG-TS. Capture only.

V4L2_CID_MPEG_VIDEO_ASPECT:

Integer range 0 to 3 to select aspect ratio of video input signal. Capture
only.
0: 1x1
1: 4x3
2: 16x9
3: 2.21x1
Note: option 0 is Pixel Aspect Ratio, others are Display Aspect Ratio.

V4L2_CID_MPEG_VIDEO_GOP_SIZE:

Integer range 0 to 30. The default setting of 0 means to use the
codec-default GOP size. Capture only.

V4L2_CID_MPEG_VIDEO_BITRATE:

100,000 to 10,000,000 bps in steps of 100,000 bps, default 2,000,000
bps. Capture only.

V4L2_CID_MPEG_VIDEO_H264_I_PERIOD:

Integer range 0 to 100. Only for H.264 encoding. Default setting of 0 will
encode first frame as IDR only, otherwise encode IDR at first frame of
every Nth GOP.

VIDIOC_ENUMAUDIO, VIDIOC_G_AUDIO, VIDIOC_S_AUDIO

int ioctl(int fd, int request, struct v4l2_audio *audio);
There are two audio inputs:
Index 0: “Mic” (mono)
Index 1: “Line In” (stereo)
Both inputs support audio->mode V4L2_AUDMODE_AVL (automatic volume
level, also known as AGC, automatic gain control.) The audio input selection
and AGC is per-board: both streams record from the same input regardless of

20

This manual is related to the following products: