• Added --no-normalise option to disable normalisation of the source audio.
1 parent 1d7029d commit 34a91acccb85624ce8f34f6f565a96a7627774b8
Nigel Stanger authored on 13 Apr 2017
Showing 1 changed file
View
9
process_podcast.py
"--configuration", "--config", "-c", dest="config", metavar="FILE",
help="File name for the podcast segment configuration (plain text). "
"See config_help.md details on the file "
"format.".format(p=globals.PROGRAM))
parser.add_argument(
"--no-normalise", "-n", dest="normalise", action="store_false",
default=True,
help="Disable normalisation of the source audio level.")
parser.add_argument(
"--input-prefix", "-i", dest="prefix", metavar="PATH", default=".",
help="Path to be prefixed to all INPUT files. This includes the "
command.append_input_options(["-i", f])
for s in (audio_segments + video_segments):
command.append_filter(s.trim_filter())
command.append_concat_filter("a", [s for s in audio_segments])
command.append_normalisation_filter()
if (args.normalise):
command.append_normalisation_filter()
command.append_concat_filter("v", [s for s in video_segments])
if args.preview:
globals.log.info("PREVIEW MODE: {fps} fps".format(fps=args.preview))
command.append_output_options(["-r", args.preview])