OPTION_MIDI_MAPPING,
OPTION_DEFAULT_HDMI_INPUT,
OPTION_FAKE_CARDS_AUDIO,
+ OPTION_V4L_OUTPUT,
OPTION_HTTP_UNCOMPRESSED_VIDEO,
OPTION_HTTP_X264_VIDEO,
OPTION_RECORD_X264_VIDEO,
OPTION_HTTP_AUDIO_BITRATE,
OPTION_HTTP_PORT,
OPTION_NO_TRANSCODE_AUDIO,
+ OPTION_DISABLE_AUDIO,
OPTION_FLAT_AUDIO,
OPTION_GAIN_STAGING,
OPTION_DISABLE_LOCUT,
if (program == PROGRAM_KAERU) {
fprintf(stderr, " --no-transcode-audio copy encoded audio raw from the source stream\n");
fprintf(stderr, " (requires --http-audio-codec= to be set)\n");
+ fprintf(stderr, " --disable-audio do not include any audio in the stream\n");
}
if (program == PROGRAM_NAGERU) {
fprintf(stderr, " --flat-audio start with most audio processing turned off\n");
{ "midi-mapping", required_argument, 0, OPTION_MIDI_MAPPING },
{ "default-hdmi-input", no_argument, 0, OPTION_DEFAULT_HDMI_INPUT },
{ "fake-cards-audio", no_argument, 0, OPTION_FAKE_CARDS_AUDIO },
+ { "v4l-output", required_argument, 0, OPTION_V4L_OUTPUT },
{ "http-uncompressed-video", no_argument, 0, OPTION_HTTP_UNCOMPRESSED_VIDEO },
{ "http-x264-video", no_argument, 0, OPTION_HTTP_X264_VIDEO },
{ "record-x264-video", no_argument, 0, OPTION_RECORD_X264_VIDEO },
{ "http-audio-bitrate", required_argument, 0, OPTION_HTTP_AUDIO_BITRATE },
{ "http-port", required_argument, 0, OPTION_HTTP_PORT },
{ "no-transcode-audio", no_argument, 0, OPTION_NO_TRANSCODE_AUDIO },
+ { "disable-audio", no_argument, 0, OPTION_DISABLE_AUDIO },
{ "flat-audio", no_argument, 0, OPTION_FLAT_AUDIO },
{ "gain-staging", required_argument, 0, OPTION_GAIN_STAGING },
{ "disable-locut", no_argument, 0, OPTION_DISABLE_LOCUT },
case OPTION_FAKE_CARDS_AUDIO:
global_flags.fake_cards_audio = true;
break;
+ case OPTION_V4L_OUTPUT:
+ global_flags.v4l_output_device = optarg;
+ break;
case OPTION_HTTP_UNCOMPRESSED_VIDEO:
global_flags.uncompressed_video_to_http = true;
break;
case OPTION_NO_TRANSCODE_AUDIO:
global_flags.transcode_audio = false;
break;
+ case OPTION_DISABLE_AUDIO:
+ global_flags.transcode_audio = false;
+ global_flags.enable_audio = false;
+ break;
case OPTION_HTTP_X264_VIDEO:
global_flags.x264_video_to_http = true;
break;
fprintf(stderr, "ERROR: --output-card points to a nonexistant card\n");
exit(1);
}
- if (!global_flags.transcode_audio && global_flags.stream_audio_codec_name.empty()) {
+ if (global_flags.enable_audio && !global_flags.transcode_audio && global_flags.stream_audio_codec_name.empty()) {
fprintf(stderr, "ERROR: If not transcoding audio, you must specify ahead-of-time what audio codec is in use\n");
fprintf(stderr, " (using --http-audio-codec).\n");
exit(1);