From 0032e9415c4dc6a36e297296460622ba4e5f275e Mon Sep 17 00:00:00 2001 From: RealStickman Date: Sun, 4 Jun 2023 19:55:27 +0200 Subject: [PATCH] Disable some arguments that are rarely used The first subtitle will be set to default in every case. The script will be executed by default without -e --- easyffmpeg/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/easyffmpeg/main.py b/easyffmpeg/main.py index 7e5723f0..ec68f7b5 100755 --- a/easyffmpeg/main.py +++ b/easyffmpeg/main.py @@ -130,6 +130,7 @@ parser.add_argument( help="Stream identifier for subtitles", ) +""" parser.add_argument( "-sd", "--set-default-subtitle", @@ -137,10 +138,12 @@ parser.add_argument( action="store_true", help="If passed, set the first subtitle as default", ) +""" # Output file parser.add_argument("-o", "--output-file", required=True, type=str, help="Output file") +""" # Execute or print commands parser.add_argument( "-e", @@ -148,6 +151,7 @@ parser.add_argument( action="store_true", help="Execute script. If not set, shows the commands that would be run.", ) +""" args = parser.parse_args() @@ -212,13 +216,19 @@ else: subtitle = args.subtitle_name subtitlestream = args.subtitle_stream +""" if args.set_default_subtitle: defaultsub = "-disposition:s:0 default" else: defaultsub = "" +""" +defaultsub = "-disposition:s:0 default" +""" # Flag to actually execute command execute = args.execute +""" +execute = True # check input file for valid duration valid_duration(inputfile, "INPUT")