= {
{
"sample_size",
"set audio sample size",
OFFSET(sample_size),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, 16, DEC },
{
"channels",
"set number of audio channels, such as 1 or 2",
OFFSET(channels),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, DEC },
{
"audio_buffer_size",
"set audio device buffer latency size in milliseconds (default is the device's default)",
OFFSET(audio_buffer_size),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, DEC },
{
"list_options",
"list available options for specified device",
OFFSET(list_options),
AV_OPT_TYPE_BOOL, {.i64=0}, 0, 1, DEC },
{
"video_device_number",
"set video device number for devices with same name (starts at 0)",
OFFSET(video_device_number),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, DEC },
{
"audio_device_number",
"set audio device number for devices with same name (starts at 0)",
OFFSET(audio_device_number),
AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, DEC },
{
"audio_pin_name",
"select audio capture pin by name",
OFFSET(audio_pin_name),
AV_OPT_TYPE_STRING, {.str =
NULL}, 0, 0, AV_OPT_FLAG_ENCODING_PARAM },
{
"crossbar_video_input_pin_number",
"set video input pin number for crossbar device",
OFFSET(crossbar_video_input_pin_number),
AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, DEC },
{
"crossbar_audio_input_pin_number",
"set audio input pin number for crossbar device",
OFFSET(crossbar_audio_input_pin_number),
AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, DEC },
{
"show_video_device_dialog",
"display property dialog for video capture device",
OFFSET(show_video_device_dialog),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
{
"show_audio_device_dialog",
"display property dialog for audio capture device",
OFFSET(show_audio_device_dialog),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
{
"show_video_crossbar_connection_dialog",
"display property dialog for crossbar connecting pins filter on video device",
OFFSET(show_video_crossbar_connection_dialog),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
{
"show_audio_crossbar_connection_dialog",
"display property dialog for crossbar connecting pins filter on audio device",
OFFSET(show_audio_crossbar_connection_dialog),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
{
"show_analog_tv_tuner_dialog",
"display property dialog for analog tuner filter",
OFFSET(show_analog_tv_tuner_dialog),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
{
"show_analog_tv_tuner_audio_dialog",
"display property dialog for analog tuner audio filter",
OFFSET(show_analog_tv_tuner_audio_dialog),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DEC },
{
"audio_device_load",
"load audio capture filter device (and properties) from file",
OFFSET(audio_filter_load_file),
AV_OPT_TYPE_STRING, {.str =
NULL}, 0, 0, DEC },
{
"audio_device_save",
"save audio capture filter device (and properties) to file",
OFFSET(audio_filter_save_file),
AV_OPT_TYPE_STRING, {.str =
NULL}, 0, 0, DEC },
{
"video_device_load",
"load video capture filter device (and properties) from file",
OFFSET(video_filter_load_file),
AV_OPT_TYPE_STRING, {.str =
NULL}, 0, 0, DEC },
{
"video_device_save",
"save video capture filter device (and properties) to file",
OFFSET(video_filter_save_file),
AV_OPT_TYPE_STRING, {.str =
NULL}, 0, 0, DEC },
}
#define AV_OPT_FLAG_ENCODING_PARAM
a generic parameter which can be set by the user for muxing or encoding
offset must point to two consecutive integers