icecast

Python 3 get song name from internet radio stream

谁都会走 提交于 2019-12-03 22:02:12
How can I get song name from internet radio stream? Python: Get name of shoutcast/internet radio station from url I looked here, but there is only getting name of radio station. But how to get name of the playing song? Here is stream link from where I want to get name of song. http://pool.cdn.lagardere.cz/fm-evropa2-128 How should I do it? Can you help me please? To get the stream title, you need to request metadata. See shoutcast/icecast protocol description : #!/usr/bin/env python from __future__ import print_function import re import struct import sys try: import urllib2 except ImportError:

Play a Shoutcast Stream on iPhone with HTML5

我是研究僧i 提交于 2019-12-03 16:31:57
I know this question is already asked in past, but i finally found no answer.... So I got a shoutcast stream, encoding audio/mpeg and I want create a web-app for my iphone to listen to my stream mobile. I tried several methods of http://mydomain.com:8000/ . With semicolon, with stream.nsv, with stream.nsv&type=mp3 and so on... I tested it everytime with the Safari browser und nothing happened. I tried several options in the html5 audio tag. preload, auto-buffering etc..... it's still quiet... Do you have any solutions or snippets or what else? Thank you :) Landi HTML5 streaming web pp for

Why Icecast2 does not want to give the stream through https?

落花浮王杯 提交于 2019-12-03 08:35:56
On a server with Ubuntu 14.04 LTS installed Icecast2 2.4.1 with SSL support. Also on this server work HTTPS website. I want insert on the page HTML5-player that will also take the stream through the SSL (otherwise - mixed content error). The site has a commercial SSL certificate, Icecast - a self-signed. Icecast config file: <icecast> <location>****</location> <admin>admin@*************</admin> <limits> <clients>1000</clients> <sources>2</sources> <threadpool>5</threadpool> <queue-size>524288</queue-size> <source-timeout>10</source-timeout> <burst-on-connect>0</burst-on-connect> <burst-size

High audio latency with Icecast and Darkice

☆樱花仙子☆ 提交于 2019-12-03 06:13:09
I have successfully installed icecast and darkice on my ubuntu machine and was able to stream live on my lan. but to my disappointment it has a 15sec to 20sec delay.This is very poor performance. I don't think it is because of my lan connection because even when i tried to listen in that same ubuntu machine there was still a delay! I have tried to configure icecast to have no burst-size which means there will be no buffering,this helped me reduce the delay to around 6sec to 8sec. So please if you have any suggestions or very good configuration values it would be of great help to me. P.S the

Title of current icecast streamed song

与世无争的帅哥 提交于 2019-12-02 05:34:15
i've readed some question,but not one solved me. i've maked a simple client to read soundstream by icecast2 server. i read sound sound with: a = new WMPLib.WindowsMediaPlayer(); a.URL = "http://radiolink:8000/music"; a.controls.play(); it's works and i ear music. now i want to read title of current song. i've found here i have to create a request like: HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://radiolink:8000/music"); request.Headers.Clear(); request.Headers.Add("GET", " HTTP/1.0"); request.UserAgent = "WinampMPEG/5.09"; request.Headers.Add("Icy-MetaData", "1"); request

Extracting metadata from Icecast stream using Exoplayer

瘦欲@ 提交于 2019-12-01 01:25:07
Since switching from Mediaplayer to a simple implementation Exoplayer I have noticed much improved load times but I'm wondering if there is any built in functionality such as a metadata change listener when streaming audio? I have implemented Exoplayer using a simple example as below: Uri uri = Uri.parse(url); DefaultSampleSource sampleSource = new DefaultSampleSource(new FrameworkSampleExtractor(context, uri, null), 2); TrackRenderer audioRenderer = new MediaCodecAudioTrackRenderer(sampleSource); mExoPlayerInstance.prepare(audioRenderer); mExoPlayerInstance.setPlayWhenReady(true); I have an

Extracting metadata from Icecast stream using Exoplayer

随声附和 提交于 2019-11-30 19:25:25
问题 Since switching from Mediaplayer to a simple implementation Exoplayer I have noticed much improved load times but I'm wondering if there is any built in functionality such as a metadata change listener when streaming audio? I have implemented Exoplayer using a simple example as below: Uri uri = Uri.parse(url); DefaultSampleSource sampleSource = new DefaultSampleSource(new FrameworkSampleExtractor(context, uri, null), 2); TrackRenderer audioRenderer = new MediaCodecAudioTrackRenderer

PHP script to extract artist & title from Shoutcast/Icecast stream

帅比萌擦擦* 提交于 2019-11-30 07:23:45
I found a script which can extract the artist & title name from an Icecast or Shoutcast stream. I want the script to update automatically when a song changed, at the moment its working only when i execute it. I'm new to PHP so any help will be appreciated. Thanks! define('CRLF', "\r\n"); class streaminfo{ public $valid = false; public $useragent = 'Winamp 2.81'; protected $headers = array(); protected $metadata = array(); public function __construct($location){ $errno = $errstr = ''; $t = parse_url($location); $sock = fsockopen($t['host'], $t['port'], $errno, $errstr, 5); $path = isset($t[

Use PHP to show Icecast2 statistics

眉间皱痕 提交于 2019-11-30 02:27:46
I have some trouble viewing statistics (viewers, current song playing etc) with PHP and I can't find any information how to do this. There is a couple of XLS files included with Icecast2 and I could include this files with PHP to my site but I wan't to update the DIV that the include is in every 5 seconds and that won't work with XLS files. Thanks! Hi there and thanks for the code. I made a class from it and added some checks so it doesn't complain when the server is offline. Since I took it from here I will share the class back: <?php class IceCast { var $server = "http://localhost:8000"; var

Ice cast source client for ios

本秂侑毒 提交于 2019-11-29 23:47:32
问题 I have been trying to create a source client for ice cast for ios. I have been able to connect using asyncsocket to connect to the socket. I am also able to write data to the server. The icecast configuration is done for mp3 format. But the mp3 file written to the server is corrupt. I am providing some code snippets. Header: NSString *string = @"SOURCE /sync HTTP/1.0\r\n" "Authorization: Basic c291cmNlOmhhY2ttZQ==\r\n" "User-Agent: butt-0.1.12\r\n" "User-Agent: butt-0.1.12\r\n" "content-type: