X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=flags.cpp;h=398d49d5bffd65465e2227e13c1df5f2eba5d242;hb=95ad88db99ba896fb5bfcfd5c221f735a3e34b7e;hp=0c01e23799812a3a4f0060ac33d5bb98cbf12b55;hpb=e573a43daf94593900197293b56bbe728d40ade6;p=nageru diff --git a/flags.cpp b/flags.cpp index 0c01e23..398d49d 100644 --- a/flags.cpp +++ b/flags.cpp @@ -17,6 +17,11 @@ void usage() fprintf(stderr, " ($DISPLAY spec or /dev/dri/render* path)\n"); fprintf(stderr, " --http-uncompressed-video send uncompressed NV12 video to HTTP clients\n"); fprintf(stderr, " --http-mux=NAME mux to use for HTTP streams (default " DEFAULT_STREAM_MUX_NAME ")\n"); + fprintf(stderr, " --http-audio-codec=NAME audio codec to use for HTTP streams\n"); + fprintf(stderr, " (default is to use the same as for the recording)\n"); + fprintf(stderr, " --http-audio-bitrate=KBITS audio codec bit rate to use for HTTP streams\n"); + fprintf(stderr, " (default is %d, ignored unless --http-audio-codec is set)\n", + DEFAULT_AUDIO_OUTPUT_BIT_RATE / 1000); fprintf(stderr, " --http-coarse-timebase use less timebase for HTTP (recommended for muxers\n"); fprintf(stderr, " that handle large pts poorly, like e.g. MP4)\n"); fprintf(stderr, " --flat-audio start with most audio processing turned off\n"); @@ -35,6 +40,8 @@ void parse_flags(int argc, char * const argv[]) { "http-uncompressed-video", no_argument, 0, 1001 }, { "http-mux", required_argument, 0, 1004 }, { "http-coarse-timebase", no_argument, 0, 1005 }, + { "http-audio-codec", required_argument, 0, 1006 }, + { "http-audio-bitrate", required_argument, 0, 1007 }, { "flat-audio", no_argument, 0, 1002 }, { "no-flush-pbos", no_argument, 0, 1003 }, { 0, 0, 0, 0 } @@ -65,6 +72,12 @@ void parse_flags(int argc, char * const argv[]) case 1005: global_flags.stream_coarse_timebase = true; break; + case 1006: + global_flags.stream_audio_codec_name = optarg; + break; + case 1007: + global_flags.stream_audio_codec_bitrate = atoi(optarg) * 1000; + break; case 1002: global_flags.flat_audio = true; break;