jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.83k stars 481 forks source link

.mkv files are sent but not played on Android TV Apps #2835

Closed Pasgru closed 1 year ago

Pasgru commented 1 year ago

Describe the bug

Playing a movie in mp4 format plays without issues.

Trying to play a .mkv file is resulting in a black screen stuck at 00:00

This only happens when the ExoPlayer is selcted, the libVLC replayes the file immediatly but with a sound delay. Also while using the libVLC player i cant fast forward. Pressing the button to skip 10sec ahead results in the playback restarting at 00:00

In the Dashboard the Server shows the user playing the file. Timestamp goes up normaly. Also when stopping the playback on the fire TV gives a log of the playback stopping at Xms where X > 0 although on the TV it shows the playback being stuck at 00:00 Log.txt

Logs

[2023-06-08 11:25:26.750 +02:00] [INF] [55] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Calo". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True [2023-06-08 11:25:26.750 +02:00] [INF] [55] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="AndroidTV-libVLC", Path="/mnt/DATA/Movies/John Wick - Kapitel 4 (2023)/John Wick - Kapitel 4 (2023).mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/78f5d9c5-558c-c2f9-57a1-4d03633c225e/stream.mkv?MediaSourceId=78f5d9c5558cc2f957a14d03633c225e&Static=true&VideoCodec=h264&AudioCodec=eac3&AudioStreamIndex=2&api_key=&Tag=3e774f3b2410a083194203facb8f9d71" [2023-06-08 11:25:26.934 +02:00] [INF] [63] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Calo". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True [2023-06-08 11:25:26.934 +02:00] [INF] [63] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="AndroidTV-ExoPlayer", Path="/mnt/DATA/Movies/John Wick - Kapitel 4 (2023)/John Wick - Kapitel 4 (2023).mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/78f5d9c5-558c-c2f9-57a1-4d03633c225e/stream.mkv?MediaSourceId=78f5d9c5558cc2f957a14d03633c225e&Static=true&VideoCodec=h264&AudioCodec=eac3&AudioStreamIndex=2&api_key=&Tag=3e774f3b2410a083194203facb8f9d71" [2023-06-08 11:25:39.047 +02:00] [INF] [57] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.68.50.246" closed [2023-06-08 11:25:39.533 +02:00] [INF] [51] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "172.68.50.246" request

FFmpeg logs

I get no FFmpeg logs

Media info of the file

No response

Application version

0.15.10

Device information

Amazon Fire TV Stick Lite

Android version

Fire OS 7.6.4.6

Jellyfin server version

10.8.10

Pasgru commented 1 year ago

proxying through cloudflare will result in this issue

thornbill commented 1 year ago

That would also likely be violating the cloudflare terms of service...

Pasgru commented 1 year ago

As this violates TOS of cloudflare, no issue.