Commit c6ac4263 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

do not use temporary directory for cut_input.wav

parent 10920878
Loading
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -199,7 +199,6 @@ def run_full_chain_split_rendering(

    with TemporaryDirectory() as tmp_dir:
        tmp_dir = Path(tmp_dir)
        cut_in_file = tmp_dir.joinpath("cut_input.wav")

        renderer_fmt_for_filename = renderer_fmt.replace("BINAURAL_", "")
        filename_base = f"{in_fmt}_{bitrate}_{renderer_fmt_for_filename}_full_cfg_{render_config.stem}_fr_pre_{pre_rend_fr}_post_{post_rend_fr}"
@@ -223,6 +222,7 @@ def run_full_chain_split_rendering(
        ivas_bitstream = output_path_base.joinpath(ivas_bitstream_stem)
        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)

@@ -245,6 +245,7 @@ def run_full_chain_split_rendering(
        # if in REF or CUT creation mode use the comparetestv
        if test_info.config.option.create_ref or test_info.config.option.create_cut:
            in_file = FORMAT_TO_FILE_COMPARETEST[in_fmt]
            cut_in_file = output_path_base.joinpath(in_file.stem + "_cut" + in_file.suffix) 
            truncate_signal(in_file, cut_in_file)

            enc_cmd[3] = str(cut_in_file)
@@ -374,7 +375,6 @@ def run_external_split_rendering(

    with TemporaryDirectory() as tmp_dir:
        tmp_dir = Path(tmp_dir)
        cut_in_file = tmp_dir.joinpath("cut_input.wav")
        
        renderer_fmt_for_filename = renderer_fmt.replace("BINAURAL_", "")
        filename_base = f"{in_fmt}_{renderer_fmt_for_filename}_ext_cfg_{render_config.stem}_fr_pre_{pre_rend_fr}_post_{post_rend_fr}"
@@ -422,6 +422,7 @@ def run_external_split_rendering(
        # if in REF or CUT creation mode use the comparetestv
        if test_info.config.option.create_ref or test_info.config.option.create_cut:
            in_file = FORMAT_TO_FILE_COMPARETEST[in_fmt]
            cut_in_file = output_path_base.joinpath(in_file.stem + "_cut" + in_file.suffix) 
            truncate_signal(in_file, cut_in_file)

            split_pre_cmd[6] = str(cut_in_file)