JW
2004-Aug-06 14:22 UTC
[icecast] Problems streaming just one file, yet /default works fine.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, We are needing to use icecast to stream a single mp3 _from_the_beginning_ of the file. Using Icecast and Shout, everything works fine, the problem with that is that when you conenct to /default you start listening at whatever point shout is currently playing at. This is not satisfactory at all, the stream must start at the beginning of the file each time a listener click a link to it. The help documentation says that what I am trying to do can be done: # Static files (http support) There is support in icecast for streaming files directory from the server to the client. <snip> All files must end in .mp3, and they must all be in the file tree rooted at a directory specified with the static_dir variable. <I did that> This directory corresponds to the virtual directory http://server:port/file/. <it does> So a file named stream.mp3 in the static_dir directory can be accessed through a http request (in a browser or mp3 player or whatever) with the url http://server:port/file/stream.mp3. Ok, but when actually click on <a href="http://<myserver">http://<myserver</a>>:8000/file/, instead of streaming the file I get sent to <a href="http://<myserver">http://<myserver</a>>:8000/playlist.pls?mount=/file/king_audio_6.6meg.mp3&file=dummy.pls which does not stream, but instead the browser starts downloading it. I have also tried making a link in a page to <a href="http://<myserver">http://<myserver</a>>:8000//file/king_audio_6.6meg.mp3 and pasting that directly into a browser What happens then is the browser starts downloading the file again, instead of sending it to the media player (which it does correctly when we hit /default) More interesting, we noticed the download says "king_audio_6.6meg.mpga" instead of .mp3. ` Why is icecast setting the mime type to mpga? By the way we have tried ths on Windows and Linux, Netscape Mozilla nd IE, all with the same results. At any rate, all that matters is that we find a way to _stream_ (not download) a file _from the beginning_ of the file. Any ideas what I need to change to get this working right? Thanks. - -- - ---------------------------------------------------- Jonathan Wilson System Administrator Cedar Creek Software http://www.cedarcreeksoftware.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9arn1Q5u80xXOLBcRAvH0AJ9Iq26mVsCHcOhu4VEJYeuIuqrR7gCfS0ou DAR1vncBejFA6AHSovvsuIA=1A49 -----END PGP SIGNATURE----- --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Geoff Shang
2004-Aug-06 14:22 UTC
[icecast] Problems streaming just one file, yet /default works fine.
Hi: first off, it's probably simplest to use your webserver to serve the file. Second, you need to use a playlist file (pls) or mpegurl (m3u) to launch your player. I've not messed with the static streaming in icecast 1.x but this seems to be what it is trying to do, by generating an.pls file on the fly. Here's a worked example. You have a webserver running. You have a file called static.mp3 which you want to serve and it's in your documentroot. Make a text file called static.m3u which contains the URL of static.mp3 as follows: http://server/static.mp3 Save this as, say static.m3u and we'll say it's in your documentroot too, just for simplicity. Now, put a link on your webpage pointing at http:/server/static.m3u. The m3u file will be downloaded and your player will be launched. The player will read the URL in static.m3u and open a connection to start streaming static.mp3. you will need to have your webserver set to send the right MIME type for your content. MP3 files should be audio/mpeg , M3U should be audio/mpegurl and pls files should be audio/scpls. Of course, for this to work, you need to have a player associated with the content type you use. The pls format is a bit more complicated, but not a lot. Hope this helps somewhat. Geoff. <p> -- Geoff Shang <gshang@uq.net.au> ICQ number 43634701 Make sure your E-mail can be read by everyone! http://www.betips.net/etc/evilmail.html Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html <p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
JW
2004-Aug-06 14:22 UTC
[icecast] Problems streaming just one file, yet /default works fine.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 <p>GS >Hi: GS > GS >first off, it's probably simplest to use your webserver to serve the file. GS >Second, you need to use a playlist file (pls) or mpegurl (m3u) to launch GS >your player. The .m3u was the key. Your instructions worked, so thanks! - -- - ---------------------------------------------------- Jonathan Wilson System Administrator Cedar Creek Software http://www.cedarcreeksoftware.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9a+h/Q5u80xXOLBcRAvyzAJ9l10/EW/1zX748bjjP/SodIqEJjgCfSGYX jZpYqjNVWqjVD70kXRxGRek=Olan -----END PGP SIGNATURE----- --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.