debugging HLS problem

Need help with MPD?
Post Reply
billshurv
Posts: 2
Joined: February 22nd, 2015, 12:02 am

debugging HLS problem

Post by billshurv »

Hi,

Hoping someone can point me in the right direction on debugging HLS radio streams. The beloved BBC have just switched from shoutcast, which worked and everyone liked, to HLS, which has not been well received. So today I have upgraded to 0.19.9 to try and get things working again, but no Joy. If I enter the Url I get :

GPMC reporting the following error: 'Failed to decode http://as-hls-uk-live.edgesuite.net/poo ... _length=24'

Matching log entry is
Feb 22 00:37 : mad: input/Input does not appear to be a mp3 bit stream
Feb 22 00:37 : player: played "http://as-hls-uk-live.edgesuite.net/poo ... _length=24"

happy to debug what is wrong in the configs, but need a pointer where to start looking.


The url is http://a.files.bbci.co.uk/media/live/ma ... three.m3u8

Rgds

Bill

Rasi
Forum team
Posts: 141
Joined: January 16th, 2013, 7:29 pm

Re: debugging HLS problem

Post by Rasi »

if you check the m3u file you will see that the actual url is just another playlist file.
with curl you can see the actual URL:

Code: Select all

curl http://as-hls-uk-live.edgesuite.net/pool_7/live/bbc_radio_three/bbc_radio_three.isml/bbc_radio_three-audio%3d320000.m3u8
i can't test it, since i have no permission here from germany, but in theory this should give you the actual link

billshurv
Posts: 2
Joined: February 22nd, 2015, 12:02 am

Re: debugging HLS problem

Post by billshurv »

Hi,

The Curl command you listed returns

XTM3U
#EXT-X-VERSION:2
## Created with Unified Streaming Platform(version=1.7.3)
#EXT-X-MEDIA-SEQUENCE:222599752
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:7
#USP-X-TIMESTAMP-MAP:MPEGTS=4093755808,LOCAL=2015-02-22T20:53:26.400000Z
#EXT-X-PROGRAM-DATE-TIME:2015-02-22T20:53:26.400000Z
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599752.ts
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599753.ts
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599754.ts
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599755.ts
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599756.ts
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599757.ts
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599758.ts
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599759.ts
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222599760.ts
(plus a few hundred more lines)

If I curl the URL I entered I get
#EXT-X-VERSION:2
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=339200,CODECS="mp4a.40.2"
http://as-hls-uk-live.edgesuite.net/poo ... _length=24

Curl on this second url gives

#EXTM3U
#EXT-X-VERSION:2
## Created with Unified Streaming Platform(version=1.7.3)
#EXT-X-MEDIA-SEQUENCE:222601420
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:7
#USP-X-TIMESTAMP-MAP:MPEGTS=5054523808,LOCAL=2015-02-22T23:51:21.600000Z
#EXT-X-PROGRAM-DATE-TIME:2015-02-22T23:51:21.600000Z
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222601420.ts?dvr_window_length=24
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222601421.ts?dvr_window_length=24
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222601422.ts?dvr_window_length=24
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222601423.ts?dvr_window_length=24
#EXTINF:6, no desc
bbc_radio_three-audio=320000-222601424.ts?dvr_window_length=24

I can't see the URL I should use. The other thing that might be pertinent is this is an AAC stream. I have assumed this would be automatically handled in mpd?

lordpixel
Posts: 6
Joined: April 7th, 2015, 3:40 am

Re: debugging HLS problem

Post by lordpixel »

Here's the question - does mpd support HLS steams?

There's a difference between a regular AAC stream and one that's been segmented into multiple files for deliver via HTTP.

Does mpd natively handle the HLS format or would the client app be responsible for unpacking it?

meteoritedude
Posts: 1
Joined: April 21st, 2015, 9:38 pm

Re: debugging HLS problem

Post by meteoritedude »

I hunt down radio srtreams from the web page originating the broadcast using browser elements, then testing it in VLC.
Lately, I have run into radio stations using iHeart/akamainstream that send segmented streams.
I call them concatenated podcasts.
The url changes after receiving 1.1k chunks of data.
VLC is able to play these streams, but mpd running on a pi2 radio.... no joy.
So my system of mining is no longer foolproof either now.

So this is a new issue for the player as the internet model of streaming morphs.

DuffyMoon
Posts: 11
Joined: May 12th, 2015, 10:31 pm

Re: debugging HLS problem

Post by DuffyMoon »

Check out Minimstreamer. I installed it on my NAS and it works like a charm.

Post Reply