moneytoo / Player

▶ Simple and lightweight, yet polished and powerful Android video player based on ExoPlayer
https://play.google.com/store/apps/details?id=com.brouken.player
The Unlicense
1.56k stars 181 forks source link

Unable to play mkv with external mka file #557

Open ti-guru opened 7 months ago

ti-guru commented 7 months ago

Describe the bug Just Player failes to play mkv files with external mka files.

To Reproduce Steps to reproduce the behavior:

  1. User with all media encoding permissions.
  2. Open movie in Jellyfin containing mkv file with external mka file. Naming scheme as recommended by Jellyfin documentation with same filename for mkv and mka file in folder, e.g. "best_movie_ever (2019).mkv" and "best_movie_ever (2019).mka".
  3. Just player gives error message "Cannot play video format".
  4. ExoPlayer plays without any errors and allows usage of external audio tracks.

Expected behavior Just Player plays mkv files with external mka without errors.

Device (please complete the following information):

Media NA

Additional context Jellyfin log file:

[2024-02-09 18:59:03.324 +00:00] [INF] [97] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "nvidia_shield". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True [2024-02-09 18:59:03.325 +00:00] [INF] [97] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="AndroidTV-External", Path="/media/movies/best_movieever (2019)[imdbid-tt1234567890]/best_movie_ever (2019).mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=AudioIsExternal ) "media:/videos/xxxxxxxxxxxxxxxxxxxxxxxxxxx/stream?MediaSourceId=xxxxxxxxxxxxxxxxxxxxxxxxxxx&AudioStreamIndex=2&api_key=&SubtitleMethod=Encode&RequireAvc=false&Tag=xxxxxxxxxxxxxxxxxxxxxxxxxxx&TranscodeReasons=AudioIsExternal" [2024-02-09 18:59:07.329 +00:00] [INF] [97] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "XXX.XXX.X.XXX" closed [2024-02-09 18:59:07.524 +00:00] [INF] [97] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "XXX.XXX.X.XXX" request

moneytoo commented 7 months ago

There's no external audio support in Just Player and none is planned (#254).

Just player gives error message "Cannot play video format".

Is this error related to the external audio file? Does the video play without that audio file present?