Audio track name is not populated
Describe the issue
Audio tracks returned by the MediaPlayer.AudioTracks.GetAudioTracks() have empty name regardless of the metadata. It applies to both MediaPlayer and ExoPlayer.
Your Setup (please complete the following information):
- Unity version: 2020.3.29f1
- AVPro Video version: 2.5.7 ultra
- Operating system version: Android 8.1
- Device model: Pico G2
- Video specs (resolution, frame-rate, codec, file size): H264, 3840x3840, 4 audio tracks (mp3)
To Reproduce
- Open video file that contains multiple audio streams. Each audio stream should have
titleandlanguageset - Call
MediaPlayer.AudioTracks.GetAudioTracks()method. It returns proper amount of audio tracks butnameproperty of each is empty.
Does it work in the editor?
The editor (macOS Monterey) shows the list of tracks but the title is missing.
Here is the metadata of the mp4 file:
VLC and MediaInfo apps are listing audio tracks properly with the title and language.
I have also noticed that "AudioTrack.Language" property is also empty on Android. See screenshots below. The first one shows C# implementation (printing audio tracks), the second shows the result. The code is executed in the main thread.
OK, thank you for the clarification. Our Android dev is back from holiday next week, so we will look into it further then.
On Thu, 18 Aug 2022, 10:15 Dawid Chyrzyński, @.***> wrote:
The editor (macOS Monterey) shows the list of tracks but the title is missing.
[image: Screenshot 2022-08-18 at 11 07 26] https://user-images.githubusercontent.com/7567202/185356898-46f0298e-f29e-4230-9fd4-2be80f1b8ddf.png
Here is the metadata of the mp4 file:
[image: Screenshot 2022-08-18 at 11 09 04] https://user-images.githubusercontent.com/7567202/185357248-871ac272-adb4-4f05-9aed-8c37ab4772da.png
VLC and MediaInfo apps are listing audio tracks properly with the title and language.
[image: Screenshot 2022-08-18 at 11 11 42] https://user-images.githubusercontent.com/7567202/185357784-952a481f-f2f3-4703-bff8-53b72c3649a5.png
I have also noticed that "AudioTrack.Language" property is also empty on Android. See screenshots below. The first one shows C# implementation (printing audio tracks), the second shows the result.
[image: Screenshot 2022-08-18 at 11 13 04] https://user-images.githubusercontent.com/7567202/185358079-cd36f0b2-d5ca-421a-8bfd-89937d7a644f.png
[image: Screenshot 2022-08-18 at 11 13 17] https://user-images.githubusercontent.com/7567202/185358130-17316f3c-0c26-436e-ad3d-7729920cd1be.png
— Reply to this email directly, view it on GitHub https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1258#issuecomment-1219235676, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYRROULYPPLWBT4SLP27XVLVZX5JNANCNFSM56ZJ4ELQ . You are receiving this because you commented.Message ID: @.***>
@dawidchyrzynski Is it possible to to send over the video you are seeing this with? You can email it to [email protected]. Thanks!
@Ste-RH Done
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
No fix possible for this issue currently due to API limitations