Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Toward running two ices0 encoders ices0-A, ices0-B in one.

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients
View previous topic :: View next topic  
Author Message
mkido



Joined: 22 Jan 2010
Posts: 63
Location: Los Angeles, California

PostPosted: Mon Nov 29, 2010 8:28 pm    Post subject: Toward running two ices0 encoders ices0-A, ices0-B in one. Reply with quote

Hello! IceCasters, everyone, and karlH and jcr,

How are you today? Thanks for your a lot of help during the last 3 to 4 weeks, and I am glad to have access to "packages.ATrpms.net". They are wonderful Fedora Core 12, FC-12 ices0 both ready RPM and Source codes RPM.

Just yesterday, I successfully compiled "ices0-0.4-4.src.rpm (fc12)" on my FC-12. It became a good running "ices" at /usr/local/bin/.

My first customization is simple. I want to run two different souce clients in one computer by different names (ices0-A, ices0-B) and different ports (8000, 8001). CLASSIC and CONTEMPORARY. And needless to say, ices.conf file(s) should be two different files, ices0-A.conf, ices0-B.conf, like that and reading different file of playlist.txt. Which is the best way to make these customization? At source codes editing, OR after compilation. I can go either way. Thanks.


PROOF of COMPILATION SUCCESS:
Code:
[mkido@localhost ~]$ whereis ices
ices: /usr/local/bin/ices
[mkido@localhost ~]$ whereis ices0
ices0:
[mkido@localhost ~]$ strace -e open ices
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/usr/lib/libshout.so.3", O_RDONLY) = 3
open("/usr/lib/libtheora.so.0", O_RDONLY) = 3
open("/usr/lib/libspeex.so.1", O_RDONLY) = 3
open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
open("/lib/libz.so.1", O_RDONLY)        = 3
open("/usr/lib/libpython2.6.so.1.0", O_RDONLY) = 3
open("/lib/libpthread.so.0", O_RDONLY)  = 3
open("/lib/libdl.so.2", O_RDONLY)       = 3
open("/lib/libutil.so.1", O_RDONLY)     = 3
open("/usr/lib/libmp3lame.so.0", O_RDONLY) = 3
open("/usr/lib/libvorbisfile.so.3", O_RDONLY) = 3
open("/usr/lib/libvorbis.so.0", O_RDONLY) = 3
open("/usr/lib/libogg.so.0", O_RDONLY)  = 3
open("/lib/libm.so.6", O_RDONLY)        = 3
open("/lib/libc.so.6", O_RDONLY)        = 3
open("/etc/resolv.conf", O_RDONLY)      = 3
open("/etc/nsswitch.conf", O_RDONLY)    = 3
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libnss_files.so.2", O_RDONLY) = 3
open("/etc/hosts", O_RDONLY|O_CLOEXEC)  = 3
open("ices.conf", O_RDONLY)             = -1 ENOENT (No such file or directory)
open("/usr/local/etc/ices.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/tmp/ices.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 EACCES (Permission denied)
Error while opening /tmp/ices.log, error: Permission denied
Logfile opened
open("playlist.txt", O_RDONLY)          = -1 ENOENT (No such file or directory)
Could not find a valid playlist file.
Ices Exiting...
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/lib/libnss_dns.so.2", O_RDONLY)  = 3
open("/lib/libresolv.so.2", O_RDONLY)   = 3
[mkido@localhost ~]$ ^C
[mkido@localhost ~]$
Back to top
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Nov 29, 2010 8:58 pm    Post subject: Reply with quote

use the same binary but use a different conf file for each instance of ices you run eg

ices -c ...ices0-A.conf
ices -c ...ices0-B.conf


You don't need to use 2 different ports as icecast will allow more than 1 stream per server, just as long as you have unique mountpoints.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mkido



Joined: 22 Jan 2010
Posts: 63
Location: Los Angeles, California

PostPosted: Tue Nov 30, 2010 12:54 am    Post subject: Thank again, karl! Reply with quote

Hi! Karl, wonderful to get your help again.

Aha, yaeh? The ices binary doens't confuse? and doesn't mixed up? Well, let me try. Thanks so much. A little later. mkido
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Source Clients All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber