inputstream.adaptive icon indicating copy to clipboard operation
inputstream.adaptive copied to clipboard

[Dash] Support urn:scte:da sh:cc:cea-608:2015 (CEA-608 captions)

Open matthuisman opened this issue 4 years ago • 11 comments

https://github.com/google/shaka-player/issues/1404 https://dashif.org/identifiers/subtitle_and_closed_captioning/

seems kodi does support them: https://forum.kodi.tv/showthread.php?tid=359024 https://forum.kodi.tv/showthread.php?tid=330882

So maybe we just need to check for the value and set the name etc.

<AdaptationSet id="1" mimeType="video/mp4" segmentAlignment="true" bitstreamSwitching="true" maxWidth="1280" maxHeight="720" maxFrameRate="60000/1001">
	<Accessibility schemeIdUri="urn:scte:dash:cc:cea-608:2015" value="CC1=eng"/>
	<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc" cenc:default_KID="664c5cf680145605888b30b76cd2e568"/>
	<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"/>
	<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"/>
	<SegmentTemplate timescale="90000" media="https://live-f.hulustream.com/VICE-MLB/VICE-MLB_146726828024220/$RepresentationID$/$Time$_video.m4s" initialization="https://live-f.hulustream.com/VICE-MLB/$RepresentationID$_10_video_init.mp4">
		<SegmentTimeline>
			<S t="2775830777" d="450450" r="21"/>
			<S d="495495"/>
		</SegmentTimeline>
	</SegmentTemplate>
	<Representation id="VICE-MLB_VIDEO_7_1200000" codecs="avc1.4d001f" width="640" height="360" startWithSAP="1" bandwidth="1322000" frameRate="30000/1001">
</Representation>
</AdaptationSet>

Hulu live channels seem to use these

matthuisman avatar Aug 30 '21 07:08 matthuisman

Not sure if there is anything in the works yet for this, but would love to see it get added. Discovery+ USA uses CEA-608 captions as well so they are not working as of now.

dev77-07 avatar Dec 31 '21 21:12 dev77-07

i think has been finally found the problem of the start code that prevent load CC subtitles at least from my test now works please let a feedback after https://github.com/xbmc/xbmc/pull/21410 PR will be merged

CastagnaIT avatar May 16 '22 18:05 CastagnaIT

Oh wow. That's great. I'll test once it's merged

matthuisman avatar May 16 '22 18:05 matthuisman

Now merged. Should be in next nightly KodiSetup-20220517

Also see Matrix backport done. That should also be in next 19 nightly

matthuisman avatar May 17 '22 19:05 matthuisman

@matthuisman fix confirmed?

enen92 avatar May 20 '22 08:05 enen92

I no longer have access to a Hulu login with tv subscription so wasn't able to confirm unfortunately :(

On Fri, 20 May 2022, 20:26 Miguel Borges de Freitas, < @.***> wrote:

@matthuisman https://github.com/matthuisman fix confirmed?

— Reply to this email directly, view it on GitHub https://github.com/xbmc/inputstream.adaptive/issues/782#issuecomment-1132625570, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPQAKKHFXKF4MIQYJ7XOL3VK5ECFANCNFSM5DBJTMYQ . You are receiving this because you were mentioned.Message ID: @.***>

matthuisman avatar May 20 '22 08:05 matthuisman

can you maybe try ask to some user in kodi forum?

CastagnaIT avatar May 20 '22 08:05 CastagnaIT

ok, managed to get a login to test with

KodiSetup-20220520-43b96fc2-master-x64.exe ISA 20.2.1

Not working unfortunately. No subs at all. Files attached that hopefully will help

kodi.log.txt manifest.mpd.txt VIDEO_2_8800000_3_86a1050eef074667a44a2220678642a5_cenc_video_init.mp4.txt 148781520527640_cenc_video.m4s.txt

matthuisman avatar May 21 '22 10:05 matthuisman

video file is encrypted we should find a unencrypted sample to try debug cc demuxer in kodi core

CastagnaIT avatar May 21 '22 11:05 CastagnaIT

I am still interested in samples or accessing streams (temporarily) which cannot be displayed in Kodi (for https://github.com/xbmc/xbmc/pull/22333)

So far the only public samples that didn't work are those provided by the dash industry forum (e.g: https://livesim.dashif.org/dash/vod/testpic_2s/cea608.mpd) but they are completely broken, see:

https://github.com/Dash-Industry-Forum/dash-live-source-simulator/issues/99#issuecomment-1374546849 https://github.com/Dash-Industry-Forum/dash-live-source-simulator/issues/115

Maybe we can give them a go later on if those major issues are fixed

enen92 avatar Jan 11 '23 11:01 enen92