Icecast URL Auth

From Giss

Revision as of 11:48, 14 October 2010 by Sevy (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Draft to authenticate sources against mysql

In icecast.xml:

        <authentication type="url">
            <option name="stream_auth" value=''/>
            <option name="user" value='source'/>
            <option name="pass" value='pass'/>

One script.php to allow all mountpoints and any user/pass could be:

header('icecast-auth-user: 1');

To test it:

gst-launch-0.10 videotestsrc ! "video/x-raw-yuv",width=320,height=240 ! theoraenc quality=6
keyframe-force=6 ! oggmux name=mux ! shout2send ip=server port=8000 password=something mount=test.ogg
Personal tools