Project

General

Profile

Support #1169

Audio Streaming doesn't start

Added by Fabio Bizzi about 1 month ago. Updated 29 days ago.

Status:
Closed
Priority:
Minor
Assignee:
-
Category:
-
Target version:
-
Start date:
April 22, 2022
Due date:
% Done:

0%

Estimated time:
Affects version:

Description

Hello,

when I try to open this audio streaming source:

http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=173832

i get this error:Error reading meta data

The source works fine with VLC.

Audacious version: 4.1
Repository: ubuntuhandbook
O.S. Ubuntu 20.04.4 LTS

Many Thanks.

Fabio.

History

#1 Updated by John Lindgren about 1 month ago

  • Tracker changed from Bug to Support

The URL has an .htm so it's probably an HTML page? (Not at my computer to check right now.)

#2 Updated by Fabio Bizzi 29 days ago

Hello John,

thank you for your answer. :)

I think that it's a web page that builds an M3U Playlist, please take a look at the curl of the url:

$ curl -Lv http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=173832
*   Trying 212.162.82.10:80...
* Connected to mediapolis.rai.it (212.162.82.10) port 80 (#0)
> GET /relinker/relinkerServlet.htm?cont=173832 HTTP/1.1
> Host: mediapolis.rai.it
> User-Agent: curl/7.74.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 Moved Temporarily
< Date: Sun, 24 Apr 2022 14:56:06 GMT
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Methods: GET, OPTIONS, HEAD
< Vary: X-Forwarded-Proto
< Location: https://radiotreclassica-live.akamaized.net/hls/live/2032595/radiotreclassica/radiotreclassica/playlist.m3u8?auth=daEaFaBcXcgdlbTcZdtaRaMdwdobtb2aFaI-bIzwug-c0-BjywAGt&aifp=V001
< Content-Length: 0
< Content-Type: text/html
< 
* Connection #0 to host mediapolis.rai.it left intact
* Issue another request to this URL: 'https://radiotreclassica-live.akamaized.net/hls/live/2032595/radiotreclassica/radiotreclassica/playlist.m3u8?auth=daEaFaBcXcgdlbTcZdtaRaMdwdobtb2aFaI-bIzwug-c0-BjywAGt&aifp=V001'
*   Trying 2a02:26f0:8d00:11::adde:6b18:443...
* Connected to radiotreclassica-live.akamaized.net (2a02:26f0:8d00:11::adde:6b18) port 443 (#1)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=US; ST=Massachusetts; L=Cambridge; O=Akamai Technologies, Inc.; CN=a248.e.akamai.net
*  start date: Jul 15 00:00:00 2021 GMT
*  expire date: Jul 20 23:59:59 2022 GMT
*  subjectAltName: host "radiotreclassica-live.akamaized.net" matched cert's "*.akamaized.net" 
*  issuer: C=US; O=DigiCert Inc; CN=DigiCert SHA2 Secure Server CA
*  SSL certificate verify ok.
> GET /hls/live/2032595/radiotreclassica/radiotreclassica/playlist.m3u8?auth=daEaFaBcXcgdlbTcZdtaRaMdwdobtb2aFaI-bIzwug-c0-BjywAGt&aifp=V001 HTTP/1.1
> Host: radiotreclassica-live.akamaized.net
> User-Agent: curl/7.74.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Last-Modified: Thu, 14 Apr 2022 14:44:33 GMT
< X-Akamai-Server: Akamai-SMT
< Akamai-Mon-Iucid-Ing: 2032595
< Expires: Sun, 24 Apr 2022 14:56:06 GMT
< Cache-Control: max-age=0, no-cache, no-store
< Pragma: no-cache
< Date: Sun, 24 Apr 2022 14:56:06 GMT
< Content-Length: 164
< Connection: keep-alive
< X-Akamai-Ctla-Debug: playlist.m3u8 playlist.m3u8 playlist_*.m3u8 variant.m3u8      
< Content-Type: application/x-mpegURL
< Akamai-Mon-Iucid-Del: 1237697
< Alt-Svc: h3-Q050=":443"; ma=93600,quic=":443"; ma=93600; v="46,43" 
< Content-Type: application/x-mpegURL
< Access-Control-Max-Age: 86400
< Access-Control-Allow-Credentials: true
< Access-Control-Expose-Headers: Server,range,hdntl,hdnts,Akamai-Mon-Iucid-Ing,Akamai-Mon-Iucid-Del,Akamai-Request-BC
< Access-Control-Allow-Headers: origin,range,hdntl,hdnts
< Access-Control-Allow-Methods: GET,POST,OPTIONS
< Access-Control-Allow-Origin: *
< 
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=259266,CODECS="mp4a.40.2" 
../../../2032595/radiotreclassica/radiotreclassica/radio3classica_256/chunklist.m3u8
* Connection #1 to host radiotreclassica-live.akamaized.net left intact
$ 

If you try to open directly with audacious the m38u link with the proper head:

https://radiotreclassica-live.akamaized.net/hls/live/2032595/radiotreclassica/radiotreclassica/radio3classica_256/chunklist.m3u8

Audacious starts queuing all the chunks, you can start play during the queuing, but at the end it stops at the last chunk.

The chunklist is very huge and it's filled with these chunks of ten seconds of playback each one.:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-DISCONTINUITY-SEQUENCE:0
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:85128
#EXT-X-PROGRAM-DATE-TIME:2022-04-24T11:08:09.397+00:00
#EXTINF:10.031,
oqn9n5yg/00000044/media_85128.aac
#EXTINF:10.031,
oqn9n5yg/00000044/media_85129.aac
#EXTINF:9.961,
oqn9n5yg/00000044/media_85130.aac
...
...
...
#EXTINF:10.031,
oqn9n5yg/00000045/media_86564.aac
#EXTINF:9.961,
oqn9n5yg/00000045/media_86565.aac
#EXTINF:10.031,
oqn9n5yg/00000045/media_86566.aac
#EXTINF:9.961,
oqn9n5yg/00000045/media_86567.aac

Moreover, the chunks list updates dynamically so if you curl another chunklist it's different from the previous.

VLC handle directly the first url and starts playing, but I LOVE Audacious and I don't like VLC, so please could take a look at it? Please... :) :) :)

Many Thanks.

Fabio.

#3 Updated by John Lindgren 29 days ago

So if understand correctly, it's an .htm URL redirecting to an .m3u8 playlist, which is made up of a zillion tiny 10-second tracks, and changes each time your access it?

That's an absolutely bonkers way to do streaming. No way we're supporting that in Audacious. You should contact mediapolis.rai.it and ask them to provide a normal MP3 or AAC stream.

#4 Updated by John Lindgren 29 days ago

  • Status changed from New to Closed

#5 Updated by Fabio Bizzi 29 days ago

Thank you anyway for your time. :)

Fabio.

Also available in: Atom PDF