Thread Perl script als Router zwischen icecast und VLC client (14 answers)
Opened by cbxk1xg at 2023-01-16 00:20

rosti
 2023-01-19 09:42
#194609 #194609
User since
2011-03-19
3194 Artikel
BenutzerIn
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
use strict;
use warnings;
use IO::Socket;

my $s = IO::Socket::INET->new("46.105.122.141:9676") or die $!;
$s->print("GET / HTTP/1.0\r\n\r\n");

# NonStopOldies Stream auf Konsole
print while <$s>;


Audio-Stream sichtbar machen ;)

Der Response-Header sieht so aus
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
HTTP/1.0 200 OK
icy-notice1:<BR>This stream requires <a href="http://www.winamp.com">Winamp</a><BR>
icy-notice2:Shoutcast DNAS/posix(linux x86) v2.6.1.777<BR>
Accept-Ranges:none
Access-Control-Allow-Origin:*
Cache-Control:no-cache,no-store,must-revalidate,max-age=0
Connection:close
icy-name:NonStopOldies
icy-genre:Oldies
icy-br:128
icy-sr:44100
icy-url:http://www.nonstopoldies.com
icy-pub:1
content-type:audio/mpeg
X-Clacks-Overhead:GNU Terry Pratchett

Last edited: 2023-01-19 09:51:10 +0100 (CET)

View full thread Perl script als Router zwischen icecast und VLC client