[PHP/MP3] APACHE/PHP4 기반 간단한 mp3 스트림
안녕하세요?
아주 간단하게 핵심모듈(함수)만 만들어 보았습니다.
다른 icecast, apache-mp3, mod_mp3, ... 기타 스트림서버
도움없이 자체적으로 구현됩니다.
또한 lame이 설치되어 있다면
lame을 이용해서 bitrate를 조절할 수 있도록 했습니다.
모양새를 갖추려면 좀더 추가해야할 기능이 있습니다.
## [PHP/MP3] APACHE/PHP4 base very simple mp3 streamming modules(?)
## - <san2(at)linuxchannel.net>
## - 2002.05.13(Version 0.2)
## - http://www.linuxchannel.net ## There is no need to use together.
## (such as icecast, apache-mp3, mod_mp3 streamming server)
## [reference]
## 1. /usr/local/apache/conf/mime.types.default
## 2. http://sander.vanzoest.com/talks/apachecon/2001/notes/notes_apachecon.txt ## 3. http://www.mp3dev.org/ support
mp3 bitrate(use lame) ## 4. RFC 1806, The Content-Disposition Header
## 5. RFC 3003, The audio/mpeg Media Type
## [test] - current version 0.2
## 1. Linux/2.4 (redhat 7.x)
## 2. Apache/1.3.x
## 3. PHP/4.1.x
## 4. useragent :
## - MSIE5
## - netscape/4,6 (linux,win)
## - mozilla/0.9.x(linux)
## - xmms/1.2.x(linux) : ok
## - winamp(win) : ok
## - media-player(win) : fail
## - real-player(win) : fail
## 5. test only *.mp3(korean file name success)
## 6. support lame(mp3 bitrate)
## [TODO] - I just think.
## 1. user auth(option)
## 2. check more useragent
## 3. more useragent support
## 4. ID3tag support
## 5. ogg support
## 6. mp3 list view and select playing(unit readdir()).
## 7. etc, ....
소스 및 간단 사용법(예제):
http://ftp.linuxchannel.net/devel/php_stream/play.php 스크린샷 :
http://www.linuxchannel.net/images/php_stream.jpg 데모 :
(하루전송량이 400M제한되어 있기 때문에 장시간 접속을 자제해 주십시오)
http://www.linuxchannel.net/play.php *PS)
혹시 php class로 작성해 주실분 없나요?
class 작성이 너무 허접해서...