gst-transcoder-1.0: no way to set the video encoder
gst-transcoder-1.0 -h
shows below information.
Application Options:
-c, --cpu-usage The CPU usage to target in the transcoding process
-l, --list-targets List all encoding targets
-s, --size set frame size (WxH or abbreviation)
-r, --audio-rate set audio sampling rate (in Hz)
-f, --framerate set video framerate as a fraction (24/1 for 24fps) or a single number (24 for 24fps))
-v, --video-encoder The video encoder to use.
But --size
and --video-encoder
share the same settings.size
parameter like below. --video-encoder
is useless. Is this a problem? Or is there any other way to specify video encoder?
GOptionEntry options[] = {
{"cpu-usage", 'c', 0, G_OPTION_ARG_INT, &settings.cpu_usage,
"The CPU usage to target in the transcoding process", NULL},
{"list-targets", 'l', G_OPTION_ARG_NONE, 0, &settings.list,
"List all encoding targets", NULL},
{**"size", 's', 0, G_OPTION_ARG_STRING, &settings.size,**
"set frame size (WxH or abbreviation)", NULL},
{"audio-rate", 'r', 0, G_OPTION_ARG_INT, &settings.rate,
"set audio sampling rate (in Hz)", NULL},
{"framerate", 'f', 0, G_OPTION_ARG_STRING, &settings.framerate,
"set video framerate as a fraction (24/1 for 24fps)"
" or a single number (24 for 24fps))", NULL},
{**"video-encoder", 'v', 0, G_OPTION_ARG_STRING, &settings.size,**
"The video encoder to use.", NULL},
{NULL}
};