Embedded Closed Captions in h264 stream not shown in Kodi 19.4 on LE 10.0.3 #22132
Closed
1 of 7 tasks
Labels
Resolution: Fixed
issue was resolved by a code change
Bug report
Describe the bug
Embedded Closed Captions in h264 stream are not shown in Kodi 19.4 on LE 10.0.3.
Embedded Closed Captions (subtitles) are no longer displayed on Kodi as it exists on LibreELEC 10.0.3 with Kodi 19.4 compiled 2022-10-15. This occurs with an h264 stream using the video addon for Canadian Broadcasting Corporation (CBC) on a Raspberry Pi 3 model B.
The subtitles do display with LibreELEC 10.0.2 with Kodi 19.4 compiled 2022-03-05.
Note that the CBC video addon is geo-restricted to Canada and must be configured with a free user account from watch.cbc.ca. This may prove a challenge for some to reproduce the issue so I have isolated an example URL as mentioned later.
Expected Behavior
Closed caption subtitles should be shown when embedded in the video stream and Kodi is configured to parse and display closed captions.
When Enable parsing for closed captions (see Settings -> Player -> Language) is active in Kodi and closed caption subtitles are enabled in the player (use T key to toggle) then if closed captions are available then these should be displayed on screen while the video plays.
Actual Behavior
Closed caption subtitles are not displayed.
None of the closed caption subtitles available in the video stream are displayed. Pressing the T key toggles between the following two messages:
Pressing M to access the Subtitle settings indicates that there are two potential values for Subtitle:
Selecting either of these and closing the dialog results in the same response -- namely that closed caption subtitles are not displayed.
Possible Fix
The problem has been reproduced by emveepee and popcornmix who indicate the following two related pull requests:
To Reproduce
Steps to reproduce the behavior:
First enable embedded closed captions.
Next begin playback of an h264 video stream or file that contains embedded closed captions.
If in Canada use CBC video addon (configured with a free account from watch.cbc.ca) to play: Shows/Animation/The Adventures of Napkin Man!/Season 3/Queen of the Fairies
If not in Canada this sample file URL does not appear to be geo-restricted (should be one long string):
https://cbcrcott-gem.akamaized.net/7fef7357-e938-46e2-88c7-5fdead95abcc/CBC_KIDSCBC_THEADVENTURESOFNAPKINMAN_SEASON_03_S03E01.ism/desktop_master.m3u8?hdnea=st=1667930958~exp=1667931078~acl=/7fef7357-e938-46e2-88c7-5fdead95abcc/cbc_kidscbc_theadventuresofnapkinman_season_03_s03e01.ism/desktop*~hmac=fa5d0d074d95dc04d6f4d613ecd8ee5abbfc5e701e5999d614ce685a971cb29f
Updated URL isolated 2022-11-12:
https://cbcrcott-gem.akamaized.net/7fef7357-e938-46e2-88c7-5fdead95abcc/CBC_KIDSCBC_THEADVENTURESOFNAPKINMAN_SEASON_03_S03E01.ism/desktop_master.m3u8?hdnea=st=1668285748~exp=1668285868~acl=/7fef7357-e938-46e2-88c7-5fdead95abcc/cbc_kidscbc_theadventuresofnapkinman_season_03_s03e01.ism/desktop*~hmac=14b87490ad0fa942e412b73815edeb35654ab9da6d6a4e2ec281b0a85c5493a3
NOTE: If the sample file URL stops working then let me know. I may be able to isolate another example.
Ensure that closed captions are enabled by either:
Debuglog
The debug logs can be found here:
Screenshots
Unfortunately when I try to take a screen shot demonstrating the missing closed caption subtitles I only get a black screen with no video image.
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
BACKGROUND DETAILS / HISTORY
Problem reported by me in LibreELEC forum post:
The problem was confirmed by popcornmix and emveepee using the above sample URL and appears related to following commits:
These changes to XBMC were initiated by Kodi forum post:
The change to xbmc is outlined as being based on a videolan/vlc change:
There are at least two other xbmc/inputstream.adaptive related problem reports:
Embedded closed captions do not display on:
These same closed captions do display on:
In summary the problem seems to originate with pull request [subtitles] Fix CC condition for valid captions #21414 which was merged on 2022-05-17.
Your Environment
Used Operating system:
Android
iOS
tvOS
Linux
OSX
Windows
Windows UWP
Operating system version/name: LibreELEC 10.0.3
Kodi version: 19.4 compiled 2022-10-15
The text was updated successfully, but these errors were encountered: