Author Topic: Can not play HLS specified by relative URL in "BASSHLS"  (Read 1046 times)

riku

  • Posts: 6
Hello.

I am trying to play HLS using basshls.
However, if I try to play the playlist specified by the relative URL like below, it will become error 41 and can not be played.
What should I do?

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-MEDIA-SEQUENCE:2473
#EXT-X-TARGETDURATION:2
#EXTINF:2.030,
/mpegts/491336611-d2014521fac2ac6c/ts-220-2473.ts
#EXTINF:2.040,
/mpegts/491336611-d2014521fac2ac6c/ts-220-2474.ts
#EXTINF:2.030,
/mpegts/491336611-d2014521fac2ac6c/ts-220-2475.ts
#EXTINF:2.030,
/mpegts/491336611-d2014521fac2ac6c/ts-220-2476.ts

Ian @ un4seen

  • Administrator
  • Posts: 21379
Error code 41 is BASS_ERROR_FILEFORM, which means the received data was unsupported/unrecognised. What platform are you using BASS on? If the stream is using AAC (most likely) and the platform doesn't have built-in support for AAC then you will need to load the BASS_AAC add-on first to play it.

riku

  • Posts: 6
Hello.

The platform is Windows 7 and Windows 10.
I loaded bass_aac but it seems that I can not play it again.
By the way, the following playlists seem to be able to play.
As one thing I noticed, is it caused by different version of HLS?

#EXTM3U
#EXT-X-VERSION:2
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:2276560
#EXTINF:10,
1-fm-20171211T180234-01-1138/560.ts
#EXTINF:10,
1-fm-20171211T180234-01-1138/561.ts
#EXTINF:10,
1-fm-20171211T180234-01-1138/562.ts

Ian @ un4seen

  • Administrator
  • Posts: 21379
The BASS_AAC add-on shouldn't be needed on Windows 7/10, so it probably isn't an AAC decoding problem. The "EXT-X-VERSION" value won't be causing the problem. To investigate what's going on, can you give an example HLS stream URL that you're having the problem with?

riku

  • Posts: 6
An example of the URL is as follows.
Please note that the following URL will be invalid in 3 hours.

http://202-230-14-91.twitcasting.tv/mpegts/492154162-278388af1440b27e/ts-220.m3u8
« Last Edit: 10 Sep '18 - 13:00 by riku »

Chris

  • Posts: 1860
If i seeing  that correct in VLC  is that not a AAC/AAC+ Audiostream its a DTS Audiostream.
« Last Edit: 10 Sep '18 - 05:02 by Chris »

riku

  • Posts: 6
Hello.

Is that so.
Can I play DTS Audiostream on BASS?

Ian @ un4seen

  • Administrator
  • Posts: 21379
An example of the URL is as follows.
Please note that the following URL will be invalid in 3 hours.

http://202-230-14-91.twitcasting.tv/mpegts/492154162-278388af1440b27e/ts-220.m3u8

Unfortunately, I didn't get a chance to try that URL in time. Can you provide another URL without an expiration or a longer one? If you would like to keep it private, you can send it via personal message or email.

riku

  • Posts: 6
I'm sorry, the URL is updated on a regular basis.
The new URL will be below.

https://202-234-23-230.twitcasting.tv/mpegts/492183333-196451733f95c133/ts-220.m3u8

Ian @ un4seen

  • Administrator
  • Posts: 21379
Thanks. I see what the problem is now. The stream contains video too, and the audio packets are spread too far apart for BASSHLS to see them when looking for an audio stream, ie. BASSHLS is only seeing video packets. Here's an update that will look at more MPEG-TS packets to find an audio steam:

   www.un4seen.com/stuff/basshls.zip

Let me know if you still get the problem happening with that.

riku

  • Posts: 6
Hello.

Thank you very much.
I can now play back audio.
Thank you very much for helping me.