Cant read MKV files on iPad?

I’m struggling to read some files from my iPad. Apparently the client reports to the server that it can direct play but then fails to do so. On the Jellyfin Mobile app, this is particularly problematic as it enters an (infinite ?) loop of “loading”, “playback error: no compatible stream…”, because it tries to read the whole season of a TV show. Is this a known bug?

Server logs when trying to read a file from Safari:

[2020-09-06 14:59:07.584 +02:00] [INF] User policy for "fred". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2020-09-06 14:59:07.584 +02:00] [INF] Profile: "Unknown Profile", Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv", isEligibleForDirectPlay: True, isEligibleForDirectStream: True
[2020-09-06 14:59:07.585 +02:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv"
[2020-09-06 14:59:07.871 +02:00] [INF] Playback stopped reported by app "Jellyfin Web" "10.6.4" playing "L'hiver vient". Stopped at "0" ms

From the Jellyfin Mobile app:

[2020-09-06 15:02:05.346 +02:00] [INF] User policy for "fred". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2020-09-06 15:02:05.346 +02:00] [INF] Profile: "Unknown Profile", Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv", isEligibleForDirectPlay: True, isEligibleForDirectStream: True
[2020-09-06 15:02:05.346 +02:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv"
[2020-09-06 15:02:05.577 +02:00] [INF] Playback stopped reported by app "Jellyfin Mobile (iOS)" "1.2.0" playing "L'hiver vient". Stopped at "0" ms

Everything works fine from chromium on linux:

[2020-09-06 14:53:47.357 +02:00] [INF] User policy for "fred". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2020-09-06 14:53:47.358 +02:00] [INF] Profile: "Unknown Profile", Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv", isEligibleForDirectPlay: True, isEligibleForDirectStream: True
[2020-09-06 14:53:47.358 +02:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv"
[2020-09-06 14:53:47.358 +02:00] [INF] Profile: "Unknown Profile", Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv", isEligibleForDirectPlay: True, isEligibleForDirectStream: True
[2020-09-06 14:53:47.358 +02:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv"
[2020-09-06 14:53:47.359 +02:00] [INF] Profile: "Unknown Profile", Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv", isEligibleForDirectPlay: True, isEligibleForDirectStream: True
[2020-09-06 14:53:47.359 +02:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv"
[2020-09-06 14:53:47.820 +02:00] [INF] Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2020-09-06 14:53:47.821 +02:00] [INF] /usr/lib/jellyfin-ffmpeg/ffmpeg -fflags +genpts -i file:"/mnt/hdd1/Séries/Game of Thrones/Season 1/Game.of.Thrones.S01E01.720p.BluRay.X264-REWARD.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -vsync -1 -codec:a:0 libmp3lame -ac 2 -ab 384000 -af "volume=2" -copyts -avoid_negative_ts disabled -f hls -max_delay 5000000 -hls_time 6 -individual_header_trailer 0 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/var/lib/jellyfin/transcodes/7bb2d37d064e083fe1b906f5161f9a08%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/lib/jellyfin/transcodes/7bb2d37d064e083fe1b906f5161f9a08.m3u8"
[2020-09-06 14:53:49.752 +02:00] [WRN] HTTP Response 200 to "192.168.1.1". Time (slow): 0:00:01.9516645. "http://my.server.fr/videos/xxxx/hls1/main/0.ts?xxxx1&MediaSourceId=7faa4cbdd21c48f7b03d39cf8fd1764e&VideoCodec=h264&AudioCodec=mp3,aac&AudioStreamIndex=1&VideoBitrate=139360000&AudioBitrate=640000&PlaySessionId=676294e8657e4ee5a22fb6a6a9ffb4b8&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=1910619a93a6a35515cfa704316124dc&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&h264-deinterlace=true&TranscodeReasons=VideoCodecNotSupported"
[2020-09-06 14:53:53.977 +02:00] [INF] Starting User Changes Sync...
[2020-09-06 14:53:54.143 +02:00] [INF] "USERSYNC" User "f14ba36e7e2f43d4b31bdc0b5c5a8772"("fred") posted 2 Updates: "7faa4cbdd21c48f7b03d39cf8fd1764e,c1d0966ac9155ea352f919f127864455"
[2020-09-06 14:53:54.143 +02:00] [INF] User Changes Sync Finished Taking "00:00:00.1654961"
[2020-09-06 14:53:54.293 +02:00] [WRN] HTTP Response 200 to "192.168.1.1". Time (slow): 0:00:00.5753087. "http://xxx.xxx.fr/Items/xxxxx/Images/Primary?maxWidth=186&tag=xxx&quality=90"
[2020-09-06 14:54:48.740 +02:00] [INF] Stopping ffmpeg process with q command for "/var/lib/jellyfin/transcodes/xxxx.m3u8"
[2020-09-06 14:54:48.878 +02:00] [INF] FFMpeg exited with code 0
[2020-09-06 14:54:48.878 +02:00] [INF] Deleting partial stream file(s) "/var/lib/jellyfin/transcodes/7bb2d37d064e083fe1b906f5161f9a08.m3u8"
[2020-09-06 14:54:50.472 +02:00] [INF] Playback stopped reported by app "Jellyfin Web" "10.6.4" playing "L'hiver vient". Stopped at "2104" ms

I’d have to check with @thornbill to be sure, but I think you’ve hit upon a “perfect storm” of known issues. There was a problem where the iPad doesn’t identify itself as iOS anymore, so it calls the wrong transcode, and an issue where an audio format isn’t specified correctly by the server. I don’t recall if there’s a workaround.

If you’re in your home network, you can always try using something like VLC as a DLNA client :slight_smile:

There are a few different issues that could be causing this. What iOS version is your iPad using?

Thanks for your replies.

If you’re in your home network, you can always try using something like VLC as a DLNA client :slight_smile:

Unfortunately not, this is me trying to give access to my library to the mother-in-law. I don’t own any apple products myself, so if you have other recommendations I’m all ears! Is Kodi a viable option? From their wiki, installing Kodi on iOS sounds like a major PITA.

There are a few different issues that could be causing this. What iOS version is your iPad using?

I forgot to note down the iOS version and I gave it back to its owner right now, I’ll reply with this info once I get it. I did however check for iOS updates in the settings and it was up-to-date yesterday. But I guess it might be a discontinued iPad version and it may use an outdated iOS…