UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

Audio track name is not populated

Open dawidchyrzynski opened this issue 3 years ago • 6 comments

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

  1. Open video file that contains multiple audio streams. Each audio stream should have title and language set
  2. Call MediaPlayer.AudioTracks.GetAudioTracks() method. It returns proper amount of audio tracks but name property of each is empty.

dawidchyrzynski avatar Aug 17 '22 12:08 dawidchyrzynski

Does it work in the editor?

Chris-RH avatar Aug 17 '22 14:08 Chris-RH

The editor (macOS Monterey) shows the list of tracks but the title is missing.

Screenshot 2022-08-18 at 11 07 26

Here is the metadata of the mp4 file:

Screenshot 2022-08-18 at 11 09 04

VLC and MediaInfo apps are listing audio tracks properly with the title and language.

Screenshot 2022-08-18 at 11 11 42

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.

Screenshot 2022-08-18 at 11 13 04 Screenshot 2022-08-18 at 11 13 17

dawidchyrzynski avatar Aug 18 '22 09:08 dawidchyrzynski

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: @.***>

Chris-RH avatar Aug 18 '22 11:08 Chris-RH

@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 avatar Aug 24 '22 17:08 Ste-RH

@Ste-RH Done

dawidchyrzynski avatar Aug 25 '22 10:08 dawidchyrzynski

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.

stale[bot] avatar Sep 08 '22 23:09 stale[bot]

No fix possible for this issue currently due to API limitations

Ste-RH avatar Sep 01 '23 15:09 Ste-RH