Libapache-mod-mp3

From YobiWiki
Jump to: navigation, search

Converted with HTML::WikiConverter::MediaWiki from my old phpwiki site


Turn your Apache server into a mp3 streaming machine!

http://media.tangent.org/faqs/mod_mp3.html#how%20do%20i%20use%20it

apt-get install libapache-mod-mp3
Uncomment in httpd.conf
LoadModule mp3_module /usr/lib/apache/1.3/mod_mp3.so
 <IfModule mod_mp3.c>
     Listen 80
     Listen 8000
     <VirtualHost _default_:8000>
         ServerName 10.0.0.9
         MP3Engine On<IfModule mod_mp3.c>
     Listen 80
     Listen 8000
     <VirtualHost _default_:8000>
         ServerName 10.0.0.9
         MP3Engine On
         MP3CastName "mod_mp3"
         MP3Genre "Sounds of Open Source"
         MP3 /mnt/mp3
         MP3 /tmp/cows.mp3
         Timeout 1200
         MP3Random on
         MP3Allow *.mp3
 #       MP3Loop on
 #       MP3Playlist /exemple.m3u ??
 #       MP3DefaultOperation rss/m3u/m3u2/pls/pls2/list/select
         #If you want to announce yourself, enable this:
 #       MP3DirectoryServer http://yp.modmp3.net/
 #       MP3Log /var/log/apache/mp3stream_log
         ErrorLog /var/log/apache/music_error_log
     </VirtualHost>
 </IfModule>

MP3DefaultOperation:

  • select

Plain HTML -> generates other playlists

  • rdf: RDF format Version 1.0
  • rss ou list: RSS format Version 0.91
  • m3u ou m3u2: audio/mpegurl (commentaires uniq dans m3u2)
 #EXTM3U
 #EXTINF:-1,Girls Just Want To Have Fun - CYNDI LAUPER.mp3
 http://localhost:8000/?op=play&song=c9c79ba43959c77e70b50010a327f362
  • pls: audio/x-scpls (Winamp)


[playlist]
http://localhost:8000/?op=play&song=34808a3eee4688c786789598638153d0
  • pls2: audio/x-scpls (ShoutCast)


[playlist]
numberofentries=128
File1=http://localhost:8000/?op=play&song=6d5eb0d2f1769bab107f1fe17d2e0b1d
Title1=Republica - Ready to go.mp3
Length1=-1
  • mbm: Musicbrainz DTD


<rdf:RDF>
<mq:Result>
<mq:status>OK</mq:status>
<mm:trackList>
<rdf:Seq>
<rdf:li rdf:resource="http://localhost:8000/?op=play&song=34808a3eee4688c786789598638153d0"/>

Alternatives?

Personal tools
Namespaces

Variants
Actions
Navigation
Tools