[clug] Downloading iView files to watch as MP4's

steve jenkin sjenkin at canb.auug.org.au
Thu Mar 11 07:46:04 UTC 2021


I like to watch videos in VLC - allows me to play faster / slow, change the window size and jump to different times.

Not trying to break the ABC's copyright or distribute their files - strictly for personal use.

VLC won’t stream this National Press Club Address on iView,
nor will the version of ffmpeg I have play it.

though it plays in both Google Chrome & Safari Browsers.
	<https://iview.abc.net.au/video/NC2112C002S00>

There’s a control file which indexes a single ‘.ts’ file of 250MB+.
	<https://iview-vod.akamaized.net/prod/nc2/NC2112C002S00MA1D1/20210309164634/fairplay/650000.m3u8>

It’s encrypted with Apple ‘Fairplay’ using “SAMPLE-AES” encoding [relevant line from m3u8 file]

	#EXT-X-KEY:METHOD=SAMPLE-AES,URI="skd://4ac5b427aaa54b61bd399bb22afb85a7”,
		KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS=“1"

While I can use ‘wget’ to download both the m3u8 control file and the associated ‘.ts’ file,
i’m not having luck guessing where the public keys are (URI="skd://4ac5b427aaa54b61bd399bb22afb85a7”)

Found a tool, hlsdl, which understands "SAMPLE-AES”, but when pointed at the stream, refuses with
	 "HLS stream is DRM protected. Exiting”

If I force it to download the stream, it constructs an invalid URL from the skd mentioned in the URI line.
The authors responses on github “issues” are terse and unhelpful: it doesn’t do DRM

Which I don’t think is what’s happening here - this is a publicly playable stream, which includes public keys.
My understanding of DRM is that it relies on secret schemes implemented in hardware or software.

Ran "chrome://net-export/“ within Google Chrome and got a large JSON file:  2.3MB file, 10,000_ lines.

It included what looked like X.509 Certificates (‘BEGIN CERT … END CERT’),
but I wasn’t able to quickly parse it to discover where to grab Key files.

There’s good “Fairplay” Documentation on Developer . Apple, but Life is Too Short :(
	<https://developer.apple.com/library/archive/technotes/tn2454/_index.html>

============

Anyone had luck in catching the current iView streaming format?
 

--
Steve Jenkin, IT Systems and Design 
0412 786 915 (+61 412 786 915)
PO Box 38, Kippax ACT 2615, AUSTRALIA

mailto:sjenkin at canb.auug.org.au http://members.tip.net.au/~sjenkin




More information about the linux mailing list