LibVLC iOS - Subtitles are not being displayed on device only
Summary
When i try to play a File with subtitles they wont display on screen. The file container is MKV. I tried multiple formats (SRT/ VTT/ ASS) the only format that works is bgps (Bluray Subtitle format). Tried multiple video files with the same outcome. Playing local vs over the network does not make a difference.
Minimal project and steps to reproduce
Sample Project play mkv with subtitles. Set a Subtitle track. https://github.com/cst1412/Libvlcsharp-Subtitles-Issue-sample -> Clone start ios project. (I tested this on a real device)
What is the current bug behavior?
Subtitles wont display on screen
What is the expected correct behavior?
Subtitles are being displayed on screen.
Does it work on other plaforms? Does it work with the official VLC apps?
Android works without a problem
Relevant logs and/or screenshots
Screenshots can be found in the github repo. -> The timing does not matter you should see subtitles all the time.
`Resolved pending breakpoint at 'MainViewModel.cs:96,1' to void LibVLCSharp.Forms.Sample.MainViewModel.Play () [0x00023]. [matroska,webm @ 0x10b025c00] Unknown/unsupported AVCodecID S_TEXT/WEBVTT.
[h264 @ 0x10e013c00] Reinit context to 1280x720, pix_fmt: yuv420p
[matroska,webm @ 0x10b025c00] max_analyze_duration 5000000 reached at 5005000 microseconds st:1 [matroska,webm @ 0x10b025c00] Could not find codec parameters for stream 0 (Subtitle: none): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options
Thread started: #3 (closed) [matroska,webm @ 0x10b809800] Unknown/unsupported AVCodecID S_TEXT/WEBVTT.
[h264 @ 0x10b80e000] Reinit context to 1280x720, pix_fmt: yuv420p
[matroska,webm @ 0x10b809800] max_analyze_duration 5000000 reached at 5005000 microseconds st:1 [matroska,webm @ 0x10b809800] Could not find codec parameters for stream 0 (Subtitle: none): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x10b809800] Invalid length 0x422 > 0x91a5d1 in parent`
Environment
- OS: iOS
- Version 14.7.1
- Device: Ipad Air 4th gen
- LibVLC version and architecture 3.6 ARM
- LibVLCSharp version 3.6
- VideoLAN.LibVLC.iOS 3.3.10