Loading scripts/get_loudness_data.py +9 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ CFG_TO_PROC_FMT = { "FOA": "FOA", "HOA2": "HOA2", "HOA3": "HOA3", "SBA": "HOA3", "MASA1TC": "MASA1DIR1", "MASA2TC": "MASA2DIR2", "5_1": "5_1", Loading Loading @@ -137,9 +136,12 @@ def main(args): config = json.load(f) config = config["inpaths"] FORMAT_2_FILE = {CFG_TO_PROC_FMT[k]: Path(v) for k, v in config.items()} FORMAT_2_FILE = { CFG_TO_PROC_FMT[k]: Path(v) for k, v in config.items() if k != "SBA" } # mono and stereo are only accepted as lowercase for runIvasCodec.py modes # multichannel modes must be prefixed with "MC_" # further, MASA1_TC and MASA_2TC are accepted, but the config.json contains them without the underscore # so patch everything for compatibility replacements = { Loading @@ -147,6 +149,11 @@ def main(args): "stereo": "STEREO", "MASA_1TC": "MASA1TC", "MASA_2TC": "MASA2TC", "MC_5_1": "5_1", "MC_5_1_2": "5_1_2", "MC_5_1_4": "5_1_4", "MC_7_1": "7_1", "MC_7_1_4": "7_1_4", } args.formats = [replacements.get(f, f).upper() for f in args.formats] Loading Loading
scripts/get_loudness_data.py +9 −2 Original line number Diff line number Diff line Loading @@ -27,7 +27,6 @@ CFG_TO_PROC_FMT = { "FOA": "FOA", "HOA2": "HOA2", "HOA3": "HOA3", "SBA": "HOA3", "MASA1TC": "MASA1DIR1", "MASA2TC": "MASA2DIR2", "5_1": "5_1", Loading Loading @@ -137,9 +136,12 @@ def main(args): config = json.load(f) config = config["inpaths"] FORMAT_2_FILE = {CFG_TO_PROC_FMT[k]: Path(v) for k, v in config.items()} FORMAT_2_FILE = { CFG_TO_PROC_FMT[k]: Path(v) for k, v in config.items() if k != "SBA" } # mono and stereo are only accepted as lowercase for runIvasCodec.py modes # multichannel modes must be prefixed with "MC_" # further, MASA1_TC and MASA_2TC are accepted, but the config.json contains them without the underscore # so patch everything for compatibility replacements = { Loading @@ -147,6 +149,11 @@ def main(args): "stereo": "STEREO", "MASA_1TC": "MASA1TC", "MASA_2TC": "MASA2TC", "MC_5_1": "5_1", "MC_5_1_2": "5_1_2", "MC_5_1_4": "5_1_4", "MC_7_1": "7_1", "MC_7_1_4": "7_1_4", } args.formats = [replacements.get(f, f).upper() for f in args.formats] Loading