Loading tests/codec_be_to_accepted_release/constants.py +1 −0 Original line number Diff line number Diff line Loading @@ -138,6 +138,7 @@ BITRATES_ISM1_EXTENDED = [b for b in BITRATES_ISM1 if b > 64000] BITRATES_ISM2_EXTENDED = [b for b in BITRATES_ISM2 if b > 64000] BITRATES_ISM3_EXTENDED = [b for b in BITRATES_ISM3 if b > 64000] BITRATES_ISM4_EXTENDED = [b for b in BITRATES_ISM4 if b > 64000] BITRATES_EVS = [5900, 7200, 8000, 9600] + BITRATES_ALL[:6] + BITRATES_ALL[7:9] # sampling rates SAMPLING_RATES_ALL = [16, 32, 48] tests/codec_be_to_accepted_release/test_encoder.py +30 −1 Original line number Diff line number Diff line Loading @@ -132,8 +132,9 @@ def test_encoder_channel_based_and_masa_modes( ) # (single) modes with metadata: ISM and MASA # ISM modes with three "flavours" of metadata # different ranges of bitrates allowed depending on number of objects, ext MD only for >64kbps ISM1_BASIC_NULL_PARAMS = list( product( ["ISM1"], Loading Loading @@ -250,6 +251,7 @@ def test_encoder_object_based_modes( # SBA modes # dtx only allowed at low bitrates, PCA only at FOA 256kbps SBA_LOW_BITRATES_PARAMS = list( ( product( Loading Loading @@ -297,3 +299,30 @@ def test_encoder_sba( dut_encoder_frontend, update_ref == 1, ) # All EVS bitrates, 5900 VBR always needs -dtx STEREO_DMX_EVS_PARAMS = list( product(BITRATES_EVS[1:], SAMPLING_RATES_ALL, [DTX_OFF, DTX_ON]) ) + list(product(BITRATES_EVS[:1], SAMPLING_RATES_ALL, [DTX_ON])) @pytest.mark.parametrize("bitrate,sampling_rate,dtx", STEREO_DMX_EVS_PARAMS) def test_encoder_stereo_dmx_evs( bitrate, sampling_rate, dtx, dut_encoder_frontend, update_ref ): testv, _ = get_encoder_inputs("STEREO", sampling_rate) options = ["-stereo_dmx_evs"] bitstream = DUT_PATH.joinpath( f"{testv.stem}-{'StereoDmxEvs'}-{bitrate}kbps-{sampling_rate}kHz-{dtx}.192" ) run_check( bitstream, bitrate, sampling_rate, testv, options, dut_encoder_frontend, update_ref == 1, dtx == DTX_ON, ) Loading
tests/codec_be_to_accepted_release/constants.py +1 −0 Original line number Diff line number Diff line Loading @@ -138,6 +138,7 @@ BITRATES_ISM1_EXTENDED = [b for b in BITRATES_ISM1 if b > 64000] BITRATES_ISM2_EXTENDED = [b for b in BITRATES_ISM2 if b > 64000] BITRATES_ISM3_EXTENDED = [b for b in BITRATES_ISM3 if b > 64000] BITRATES_ISM4_EXTENDED = [b for b in BITRATES_ISM4 if b > 64000] BITRATES_EVS = [5900, 7200, 8000, 9600] + BITRATES_ALL[:6] + BITRATES_ALL[7:9] # sampling rates SAMPLING_RATES_ALL = [16, 32, 48]
tests/codec_be_to_accepted_release/test_encoder.py +30 −1 Original line number Diff line number Diff line Loading @@ -132,8 +132,9 @@ def test_encoder_channel_based_and_masa_modes( ) # (single) modes with metadata: ISM and MASA # ISM modes with three "flavours" of metadata # different ranges of bitrates allowed depending on number of objects, ext MD only for >64kbps ISM1_BASIC_NULL_PARAMS = list( product( ["ISM1"], Loading Loading @@ -250,6 +251,7 @@ def test_encoder_object_based_modes( # SBA modes # dtx only allowed at low bitrates, PCA only at FOA 256kbps SBA_LOW_BITRATES_PARAMS = list( ( product( Loading Loading @@ -297,3 +299,30 @@ def test_encoder_sba( dut_encoder_frontend, update_ref == 1, ) # All EVS bitrates, 5900 VBR always needs -dtx STEREO_DMX_EVS_PARAMS = list( product(BITRATES_EVS[1:], SAMPLING_RATES_ALL, [DTX_OFF, DTX_ON]) ) + list(product(BITRATES_EVS[:1], SAMPLING_RATES_ALL, [DTX_ON])) @pytest.mark.parametrize("bitrate,sampling_rate,dtx", STEREO_DMX_EVS_PARAMS) def test_encoder_stereo_dmx_evs( bitrate, sampling_rate, dtx, dut_encoder_frontend, update_ref ): testv, _ = get_encoder_inputs("STEREO", sampling_rate) options = ["-stereo_dmx_evs"] bitstream = DUT_PATH.joinpath( f"{testv.stem}-{'StereoDmxEvs'}-{bitrate}kbps-{sampling_rate}kHz-{dtx}.192" ) run_check( bitstream, bitrate, sampling_rate, testv, options, dut_encoder_frontend, update_ref == 1, dtx == DTX_ON, )