[streaming] Re: unicast

Ollie Eisman ollie at predict.com
Sat Apr 3 02:00:30 CEST 2004



Benjamin PRACHT wrote:
> On Fri, Apr 02, 2004, Ollie Eisman wrote :
> 
>>Should it be possible to stream to two unicast clients from one vls 
>>server? I have tried without success.
> 
> 
> It should be possible, could you please ba a bit more explicit about hte
> error ?
> 

I am not getting any video or audio when I have two unicast clients defined.

I am using VLC on client2 (see vls.cfg below).

If I comment out all references to client1 in the vls.cfg and only have 
client2, I start receiving video and audio.



Here is the output:
-------------------

vls -f /var/local/etc/vls.cfg -vvvvvv
VideoLAN Server 0.5.5-cvs (Apr  2 2004) - (c) 1999-2003 VideoLAN
Info : Found V4L device BT848A( *** UNKNOWN/GENERIC **)
        4 channel(s)
48x32->768x480
Info : Changing to channel 2 (S-Video)
Info : Found V4L window 320x240
Only mp2 compression is supposed to work for the moment !
Info : Encoding video : 320x240 25 fps at 500 kb/s in mpeg1video
Info : Encoding audio : 16000 Hz stereo at 64 kb/s in mp2



vls.cfg:
--------


# vls configuration file (example)

# application wide settings
begin "global"
   logfile       = "/tmp/vls.log"             # log file
   screenlog     = "disable"              # log to the console
   systemlog     = "enable"             # log to the systemlog
end

# streams sources declaration
begin "inputs"
   webcam       = "v4l"
end

begin "input"
   programcount = "1"
   trickplay = "normal"
end

# --- format:
begin "webcam"
device        = "/dev/video0"     # video4linux device (default is 
/dev/video)
channel       = "2"              # channel source: webcam often 0
                                  # for tv card, may be tuner(0), 
composite(1),
                                  # svideo(2)
norm          = "1"              # pal=0, ntsc=1, secam=2
size          = ""               # size possibilities

                                  # - empty string : default size
                                  # - width x height
                                  # - subqcif(128x96), qsif(160x120),
                                  #   qcif(176x144), sif(320x240),
                                  #   cif(352x288), vga (640x480)
deinterlace   = "0"
compression   = "mpeg1"          # mpeg1 or mpeg4 [experimental]
bitrate       = "500"            # bitrate (approx.) in kbps
quality       = "1.0"            # 1.0 (good) to 31.0 (bad)

audiodevice   = "/dev/audio1"    # sound device (try /dev/dsp<x> or audio1)
audiocompression = "mp2"         # mp2, mp3 or ogg
audiobitrate  = "64"             # audio bitrate in kbps
audiofreq     = "16000"          # 16000, 22050, 24000, 32000, 44100, 48000
audiochannel  = "2"              # 1=mono, 2=stereo
audiomute     = "false"
end

# channel (outputs) declaration
begin "channels"
#  localhost     = "network"
   client1       = "network"
   client2       = "network"
#  multicast1    = "network"
#  localfile     = "file"
end

# channels configuration
#begin "localhost"         # the client is on the same host as the server
#  dsthost = "127.0.0.1"
#  dstport = "1234"
#end

begin "client1"                          # unicast
   dsthost = "192.132.2.232"                # destination ip address
   dstport = "1234"                       # destination port
end

begin "client2"                          # unicast
   dsthost = "192.132.2.96"              # destination ip address
   dstport = "1234"                       # destination port
end

#begin "multicast1"                       # multicast example
#  streamtype = "multicast"
#  ttl        = "1"                       # time to live
#  dsthost    = "240.2.12.42"             # multicast address
#  dstport    = "1234"                    # destination port
#end


#begin "localfile"                        # file output example
#  filename = "stream.ts"
#  append   = "no"                        # rewrite the file if it exists
#end


begin "launchonstartup"
   command1 = "start video client1 webcam"
   command2 = "start video client2 webcam"
end

-- 
This is the streaming mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the streaming mailing list