streaming icon indicating copy to clipboard operation
streaming copied to clipboard

m3u8: import Apple's test samples

Open ollytom opened this issue 1 year ago • 6 comments

Apple - you know, the one who basically "own" the HLS spec - provide some m3u8 samples at https://developer.apple.com/streaming/examples/

These would be good to have in testdata. I saw that Shaka Player have the examples in their test suite.

ollytom avatar Aug 03 '24 06:08 ollytom

Would this be in addition to or replacing the current samples?

jacobhitchins avatar Aug 11 '24 08:08 jacobhitchins

Would this be in addition to or replacing the current samples?

In addition to. Looking at the playlists in the testdata directory each one seems to be there to test different tags. But it's not clear looking at the files what each one is really for. A comment at the top of each file, and/or a descriptive file name would be helpful especially for someone forgetful like me :)

ollytom avatar Aug 12 '24 00:08 ollytom

But it's not clear looking at the files what each one is really for.

Actually, looking at it again today, after a sleepy Sunday, I think it's relatively clear what each is for. For example, testdata/frame_rate.m3u8 is for frame rates, with names for each (PAL, NTSC etc.) and testdata/resolution.m3u8 is for resolution. There's two which are unclear:

  • bbb.m3u8
  • tos.m3u8

I've fixed these up in 7c79b05479.

ollytom avatar Aug 12 '24 00:08 ollytom

Sorry for bothering, but are you planning to add parsing #EXTINF with additional key=value pairs?

dipoll avatar Jul 25 '25 22:07 dipoll

@dipoll Oh I didn't realise there was any more info other than the segment duration from the EXTINF tag! Created issue #41 to track extracting the data

ollytom avatar Jul 26 '25 23:07 ollytom

@dipoll should be fixed now - see issue #41 for detail on the thinking :)

ollytom avatar Jul 28 '25 11:07 ollytom