Loading tests/split_rendering/utils.py +18 −12 Original line number Diff line number Diff line Loading @@ -257,7 +257,7 @@ def run_full_chain_split_rendering( enc_cmd[1:1] = FORMAT_TO_IVAS_COD_FORMAT[in_fmt] run_ivas_isar_enc_cmd(enc_cmd) run_ivas_isar_enc_cmd(enc_cmd, test_info=test_info) if delay_profile: rtp_bitstream = ivas_bitstream.with_suffix(".rtpg192") Loading Loading @@ -292,7 +292,7 @@ def run_full_chain_split_rendering( if delay_profile: dec_cmd[5:5] = ["-voip"] run_ivas_isar_dec_cmd(dec_cmd) run_ivas_isar_dec_cmd(dec_cmd, test_info=test_info) # run split renderer post_rend_cmd = SPLIT_POST_REND_CMD[:] Loading @@ -309,7 +309,7 @@ def run_full_chain_split_rendering( if renderer_fmt == "BINAURAL_SPLIT_PCM": post_rend_cmd[7:7] = ["-im", str(split_md_file)] run_isar_post_rend_cmd(post_rend_cmd) run_isar_post_rend_cmd(post_rend_cmd, test_info=test_info) if test_info.config.option.create_cut: # CUT creation mode will run a comparison with REF Loading Loading @@ -376,19 +376,25 @@ def run_external_split_rendering( with TemporaryDirectory() as tmp_dir: tmp_dir = Path(tmp_dir) cut_in_file = tmp_dir.joinpath("cut_input.wav") split_bitstream = tmp_dir.joinpath("split.bit") if renderer_fmt == "BINAURAL_SPLIT_PCM": split_md_file = tmp_dir.joinpath("split_md.bin") renderer_fmt_for_filename = renderer_fmt.replace("BINAURAL_", "") out_file_stem = f"{in_fmt}_{renderer_fmt_for_filename}_ext_cfg_{render_config.stem}_fr_pre_{pre_rend_fr}_post_{post_rend_fr}.wav" filename_base = f"{in_fmt}_{renderer_fmt_for_filename}_ext_cfg_{render_config.stem}_fr_pre_{pre_rend_fr}_post_{post_rend_fr}" split_bitstream_stem = f"{filename_base}.splt.bit" if renderer_fmt == "BINAURAL_SPLIT_PCM": split_md_file_stem = f"{filename_base}.spltmd.bit" out_file_stem = f"{filename_base}.wav" if test_info.config.option.create_ref: output_path_base = OUTPUT_PATH_REF else: output_path_base = OUTPUT_PATH_CUT split_bitstream = output_path_base.joinpath(split_bitstream_stem) out_file = output_path_base.joinpath(out_file_stem) if renderer_fmt == "BINAURAL_SPLIT_PCM": split_md_file = output_path_base.joinpath(split_md_file_stem) if plc_error_pattern: out_file = out_file.with_stem( Loading @@ -404,7 +410,7 @@ def run_external_split_rendering( else: in_meta_files = None # generate split-rendering bitstream # run ISAR pre-renderer split_pre_cmd = SPLIT_PRE_REND_CMD[:] if test_info.config.option.create_ref: Loading @@ -430,9 +436,9 @@ def run_external_split_rendering( if in_meta_files: split_pre_cmd[9:9] = ["-im", *in_meta_files] run_isar_ext_rend_cmd(split_pre_cmd) run_isar_ext_rend_cmd(split_pre_cmd, test_info=test_info) # run split renderer # run ISAR post-renderer split_post_cmd = SPLIT_POST_REND_CMD[:] if test_info.config.option.create_ref: Loading @@ -450,7 +456,7 @@ def run_external_split_rendering( if plc_error_pattern: split_post_cmd[1:1] = ["-prbfi", str(plc_error_pattern)] run_isar_ext_rend_cmd(split_post_cmd) run_isar_ext_rend_cmd(split_post_cmd, test_info=test_info) if test_info.config.option.create_cut: # CUT creation mode will run a comparison with REF Loading Loading
tests/split_rendering/utils.py +18 −12 Original line number Diff line number Diff line Loading @@ -257,7 +257,7 @@ def run_full_chain_split_rendering( enc_cmd[1:1] = FORMAT_TO_IVAS_COD_FORMAT[in_fmt] run_ivas_isar_enc_cmd(enc_cmd) run_ivas_isar_enc_cmd(enc_cmd, test_info=test_info) if delay_profile: rtp_bitstream = ivas_bitstream.with_suffix(".rtpg192") Loading Loading @@ -292,7 +292,7 @@ def run_full_chain_split_rendering( if delay_profile: dec_cmd[5:5] = ["-voip"] run_ivas_isar_dec_cmd(dec_cmd) run_ivas_isar_dec_cmd(dec_cmd, test_info=test_info) # run split renderer post_rend_cmd = SPLIT_POST_REND_CMD[:] Loading @@ -309,7 +309,7 @@ def run_full_chain_split_rendering( if renderer_fmt == "BINAURAL_SPLIT_PCM": post_rend_cmd[7:7] = ["-im", str(split_md_file)] run_isar_post_rend_cmd(post_rend_cmd) run_isar_post_rend_cmd(post_rend_cmd, test_info=test_info) if test_info.config.option.create_cut: # CUT creation mode will run a comparison with REF Loading Loading @@ -376,19 +376,25 @@ def run_external_split_rendering( with TemporaryDirectory() as tmp_dir: tmp_dir = Path(tmp_dir) cut_in_file = tmp_dir.joinpath("cut_input.wav") split_bitstream = tmp_dir.joinpath("split.bit") if renderer_fmt == "BINAURAL_SPLIT_PCM": split_md_file = tmp_dir.joinpath("split_md.bin") renderer_fmt_for_filename = renderer_fmt.replace("BINAURAL_", "") out_file_stem = f"{in_fmt}_{renderer_fmt_for_filename}_ext_cfg_{render_config.stem}_fr_pre_{pre_rend_fr}_post_{post_rend_fr}.wav" filename_base = f"{in_fmt}_{renderer_fmt_for_filename}_ext_cfg_{render_config.stem}_fr_pre_{pre_rend_fr}_post_{post_rend_fr}" split_bitstream_stem = f"{filename_base}.splt.bit" if renderer_fmt == "BINAURAL_SPLIT_PCM": split_md_file_stem = f"{filename_base}.spltmd.bit" out_file_stem = f"{filename_base}.wav" if test_info.config.option.create_ref: output_path_base = OUTPUT_PATH_REF else: output_path_base = OUTPUT_PATH_CUT split_bitstream = output_path_base.joinpath(split_bitstream_stem) out_file = output_path_base.joinpath(out_file_stem) if renderer_fmt == "BINAURAL_SPLIT_PCM": split_md_file = output_path_base.joinpath(split_md_file_stem) if plc_error_pattern: out_file = out_file.with_stem( Loading @@ -404,7 +410,7 @@ def run_external_split_rendering( else: in_meta_files = None # generate split-rendering bitstream # run ISAR pre-renderer split_pre_cmd = SPLIT_PRE_REND_CMD[:] if test_info.config.option.create_ref: Loading @@ -430,9 +436,9 @@ def run_external_split_rendering( if in_meta_files: split_pre_cmd[9:9] = ["-im", *in_meta_files] run_isar_ext_rend_cmd(split_pre_cmd) run_isar_ext_rend_cmd(split_pre_cmd, test_info=test_info) # run split renderer # run ISAR post-renderer split_post_cmd = SPLIT_POST_REND_CMD[:] if test_info.config.option.create_ref: Loading @@ -450,7 +456,7 @@ def run_external_split_rendering( if plc_error_pattern: split_post_cmd[1:1] = ["-prbfi", str(plc_error_pattern)] run_isar_ext_rend_cmd(split_post_cmd) run_isar_ext_rend_cmd(split_post_cmd, test_info=test_info) if test_info.config.option.create_cut: # CUT creation mode will run a comparison with REF Loading