bitmovin/bitmovin-api-sdk-examples

Python SDK Example src /multi_codec_encoding.py Bug

Opened this issue · 0 comments

I was testing multi_codec_encoding.py and found that on line 604 in _create_dash_fmp4_representation function should call

bitmovin_api.encoding.manifests.dash.periods.adaptationsets.representations.fmp4.create(
        manifest_id=dash_manifest.id,
        period_id=period.id,
        adaptationset_id=adaptation_set_id,
        dash_fmp4_representation=dash_fmp4_representation
    )

instead of

    bitmovin_api.encoding.manifests.dash.periods.adaptationsets.representations.cmaf.create(
        manifest_id=dash_manifest.id,
        period_id=period.id,
        adaptationset_id=adaptation_set_id,
        dash_cmaf_representation=dash_fmp4_representation
    )

because it returns below error

bitmovin_api_sdk.common.bitmovin_error.BitmovinError: Muxing 'XXXX' is of type 'FMP4'. The representation type you are trying to add requires a muxing of type 'CMAF'
developerMessage: Muxing 'XXXX' is of type 'FMP4'. The representation type you are trying to add requires a muxing of type 'CMAF'