shoutcast

Writing a Python Music Streamer

风流意气都作罢 提交于 2019-12-20 08:41:39
问题 I would like to implement a server in Python that streams music in MP3 format over HTTP. I would like it to broadcast the music such that a client can connect to the stream and start listening to whatever is currently playing, much like a radio station. Previously, I've implemented my own HTTP server in Python using SocketServer.TCPServer (yes I know BaseHTTPServer exists, just wanted to write a mini HTTP stack myself), so how would a music streamer be different architecturally? What

Method for launching audio player on Android from web page for streaming media

戏子无情 提交于 2019-12-19 09:09:27
问题 To link to SHOUTcast/HTTP internet radio streams, traditionally you would link to a playlist file, such as an M3U or PLS. From there, the browser would launch the audio player registered to handle the playlist. This works great on any PC, Palm, Blackberry, and iPhone. This method does not work in Android without installing extra software. Sure, Just Playlists or StreamFurious can handle it just fine, but I am assuming there has to be a way to invoke the audio or video player commonly

ICY metadata support with ffmpeg

为君一笑 提交于 2019-12-18 05:14:10
问题 Is there any way to get ICY metadata from shoutcast stream using FFMpeg ? One way would be to deal with the connection/stream by myself and send Custom IOStream to ffmpeg. Is there any other simple way? or demuxer available ? Thanks 回答1: There was discussion of a patch for supporting it here: http://web.archiveorange.com/archive/v/yR2T400567mWEyyZHg3k But, it doesn't look like it made it in yet. I suggest you simply parse this out yourself. See my answer here for how to do this: https:/

Is it possible to play shoutcast internet radio streams with html5?

谁说我不能喝 提交于 2019-12-17 10:17:25
问题 Is it possible to play shoutcast (or some) internet radio streams with html5? So I have next code: <html> <body> <audio src="http://shoutcast.internet-radio.org.uk:10272/" /> </body> </html> I save it as HTML page and start my browser (Google chrome 4.0.249.78, safary or FF) But it does not play/work!( And it does not play with any other internet radio I tried to play!( Why!?! What am I doing wrong? btw: from HTML5 (including next generation additions still in development) 2.6.1 Protocol

Fetch Icecast song title without buffering audio

蹲街弑〆低调 提交于 2019-12-13 18:34:09
问题 I want to write a small JavaScript library that can fetch "now playing" data for Icecast streams. From what I understand, I can do this by sending a HTTP request to a radio stream as follows: GET /radiotunes_bebop HTTP/1.1 Host: pub2.radiotunes.com Icy-MetaData:1 The server will then answer with some reponse headers. One of them is the icy-metaint field that indicates the interval at which the metadata is inserted into the stream. The metadata will look something like this: StreamTitle=

Getting hiccup noise from Shoutcast

﹥>﹥吖頭↗ 提交于 2019-12-12 10:13:46
问题 I'm trying to read Shoutcast stream and then play it using MediaStreamSource. Here is the excellent open source project that saved lot of my time. After little bit modification I'm able to hear perfect sound. But the problem is I'm getting a periodic blip/hiccup kind of noise. Any idea how I can stop that noise. I thought its may be Shoutcast sends some metadata in interval but don't find out how to stop that. Tried with request.Headers["Icy-MetaData"] = "0"; But it doesn't fix my problem

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

本小妞迷上赌 提交于 2019-12-12 07:13:26
问题 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 =

Send buffer stream to Icecast server using jshout in Java [closed]

久未见 提交于 2019-12-12 04:51:01
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I am trying to develop live streaming using Icecast or SHOUTcast library. I recorded audio in Java, and I need to send a byte stream to the Icecast Server. 回答1: http://icecast.org/download/#bindings lists: https://github.com/OlegKunitsyn/libshout-java Have you tried that yet? Also

Reading HTML file from URL

若如初见. 提交于 2019-12-11 23:48:39
问题 While most of the time I'd just use file_get_contents and CURL, I can't get it to work with a port in the URL. How can I read this file? http://174.120.124.178:7800/7.html (It's a shoutcast statistics file) Ultimately, I just want the text after the last comma. 回答1: It has nothing to do with the port. They're blocking you because you're not using a browser user agent. curl does let you fake the user agent, but that may be a violation of the site's terms of service. According to this post it's

How to reencode stream in fly and translate?

南笙酒味 提交于 2019-12-11 21:30:04
问题 I have urls to the Icecast/Shoutcast streams, how can i relay these streams in multiple bitrates? I know how to reencode file, but don't know how to reencode stream in multiple bitrates. For example i find two icecast/shoutcast stream url/server: http://icecast_stream.ru:8000/play http://shoutcast_stream:8000/ I want to relay it in multiple bitrates: http://localhost:8000/icecast_stream_32 http://localhost:8000/icecast_stream_64 http://localhost:8000/icecast_stream_128 http://localhost:8000