Azure / azure-media-migration

Azure Media Migration Tool
https://github.com/Azure/azure-media-migration
MIT License
10 stars 13 forks source link

Multi audio streams not migrating correctly #230

Closed mouab215 closed 6 months ago

mouab215 commented 6 months ago

Whenever I use a video Asset with multi audio streams (e.g. english + french). The output will be in CMAF (as expected) and have the same amount of audio streams but then english + english.

pohhsu commented 6 months ago

Hi @mouab215,

Is it possible for you to provide input assets for us investigate? If not, is it possible to provide the ism/ismc files?

Thanks.

mouab215 commented 6 months ago

hi @pohhsu, Yes, here it is. Let me know if it works: https://we.tl/t-4NFzYdYOqa

duggaraju commented 6 months ago

Turns out it is a bug in how we invoke the shaka packager. Calling shaka packager with stream=audio always selects the first audio stream (irrespective of the language). We need to call shaka packager with stream=0-based-index to pick multiple language correctly. Working on a fix.

duggaraju commented 6 months ago

Create a pull request #231 for this issue. While waiting for the fix, the customer can make the change locally and test. It is a one line change in Manifest.cs (or you can use the duggaraju/mulit_audio) branch.

mouab215 commented 5 months ago

Hey @duggaraju , I've tried it with the latest commit, however i still end up with 2 english audio tracks while the initial asset contains both english and french