Hi !

Le jeudi 20 janvier 2011 10:20:35, Tarkan Kaya a écrit :
> Why would the script below return this ->
> 
> root@playnice:~# liquidsoap /home/playnice/pntv.liq
> notification: This doesn't look like a Speex file
> notification: This doesn't look like a Speex file
> init: security exit, root euid (user).

You should not run liquidsoap as root... In your case, you should just run the 
script using a normal user.

For documentation purposes, in the recent SVN there are options for liquidsoap 
to switch user and group when starting as daemon. Those are meant for the very 
limited cases where you cannot start the daemon directly using a non-
administrator user.

> set("log.file.path","/tmp/tv.log")
> 
> playnicetv    = playlist("/home/playnice/playnicetv")
> ads             = playlist("/home/playnice/ads")
> 
> security = single("/home/playnice/1kHz_tone_720.ogv")
> 
> broadcast = switch([
>                  ({0h-23h}, playnicetv),
>              ])
> 
> broadcast = fallback(track_sensitive = false, [broadcast, security])
> 
> output.icecast(%theora(quality=40,width=720,height=560),
>          description="Playnice TV!",
>          genre="Everything", url="http://www.playnice.tv";,
>          host = "localhost", port = 8000,
>          password = "xxxxxxx", mount = "xxxxxxx", broadcast)


Please note that in the above, only video will be produced. If you want video 
and audio you should use:
  %ogg(%theora,%vorbis) 
(or %ogg(%theora,%speex), %ogg(%theora,%flac) :))

Also, if width and height parameters are global, you should set them as global 
settings at the beginning of your script:

set("frame.video.width",720)
set("frame.video.height",560)

Romain

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to