Difference between revisions of "Icecast URL Auth"
From Giss
Line 18: | Line 18: | ||
To test it: | 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 | + | 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 |
Revision as of 20:18, 29 July 2007
Draft to authenticate sources against mysql
In icecast.xml:
<mount> <mount-name>/*.ogg</mount-name> <authentication type="url"> <option name="stream_auth" value="http://server/script.php"/> </authentication> </mount>
One script.php to allow all mountpoints and any user/pass could be:
<?php 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