Re: Need some configuration help on card streaming!

"Stefan Seyfried" <[email protected]>
Newsgroups gmane.comp.video.videolan.vls.devel
Message-ID <[email protected]>
[email protected] writes:
 
> Q1: How do I start the card streaming? What should I enter in 'start
> <program> <channel> and <inputs>'?
> Q2: What is the difference between the 'video' and the 'v4l' parameter TYPE
> in inputs section?
> Q3: Why is vls complaining about 'invalid parameter' if I try to use the
> 'v4l' parameter?
> Q4: If 'v4l' is a valid inputs type, how should the section look like?
> Example is missing in doc.

here is a working vls.cfg, this is on a cvs version from about 13.05.2003:

------- start vls.cfg -------------
BEGIN "vls"
  LogFile = "vls.log"
  SystemLog = "enabled"
  ScreenLog = "enabled"
END

BEGIN "groups"
  master        = "help|browse|start|resume|suspend|stop|shutdown|logout|config|program|input|channel|show"
END
  BEGIN "users"
    bozo          = "JKg2TpPerilnw:master"        # password is 'bozo'
  END

BEGIN "Interfaces"
  Telnet        = "telnet"                # Port to use for that purpose
END
  BEGIN "telnet"
    LocalPort = "9999"
    Use = "true"
  END

BEGIN "Inputs"
  tuner = "v4l"
END
  BEGIN "tuner"
    Device = "/dev/video"
    Type = "Mpeg2-TS"
    Channel = "1"       # tuner 0, composite 1, svideo 2
#    Frequency = "3028"         # Frequency (MHz) * 16
#    Norm = "0"                 # PAL 0, NTSC 1, SECAM 2
    Size = "384 x 288"  # width x height
    DeInterlace = "0"
    Compression = "mpeg4"       # mpeg1 or mpeg4
    Bitrate = "2000"
#    Quality = "1.0"    # 1.0 - 31.0
    AudioDevice = "/dev/dsp"
    AudioCompression = "mp2" # mp2 mp3 ogg
    AudioBitrate = "128"
    AudioFreq = "32000" # 16000 22050 24000 32000 44100 48000
    AudioChannel = "2"
  END

BEGIN "Channels"
  localhost = "network"
  broadcast = "network"
  multicast = "network"
END
  BEGIN "localhost"
    DstHost = "127.0.0.1"
    DstPort = "1234"
    Type = "unicast"
  END
  BEGIN "broadcast"
    DstHost = "192.168.100.255"
    DstPort = "1234"
    Type = "broadcast"
  END
  BEGIN "multicast"
    DstHost = "224.0.1.2"
    DstPort = "5004"
    Type = "multicast"
    Interface = "eth0"
    TTL = "1"
  END

#BEGIN "Input"
#  ProgramCount = "1"
#END
#  BEGIN "1"
#    Name = "tv"
#  END

BEGIN "LaunchOnStartUp"
#  command1 = "start video localhost tuner"
  command2 = "start video broadcast tuner " #"--rtp"
END

------- end vls.cfg -------

I don't remember exactly how i got all this together and probably some
things are not perfect, but it works for me :-)
I believe multicast was too cumbersome for me and since i only have 
2-3 machines on this network, broadcast will do for me.
I use mpeg4 since current versions of vlc/ffmpeg complained about something
like "unknown video codec mpgv" when using mpeg1.
What i have seen in your config is, that your multicast configuration is
wrong:
BEGIN "multicast"                        # multicast example
  Type       = "multicast"
  TTL         = "1"                          # Time To Live
  DstHost = "192.168.1.50"               # multicast address
  DstPort  = "1234"                       # destination port
END

192.168.1.50 is not a multicast, it is even very unlikely to be a valid
broadcast address :-)

i put the startup command into the vls.cfg file, so the channel starts
broadcasting right away after startup. This works fine and very reliable
for me.
Now if only MPlayer could display those broadcasts ;-))

Good luck!

Stefan

P.S. to the developers: please dont drop vls, since i could never get vlc
to work as reliable with v4l-input as vls :-) I have to admit, i have not
tried very hard :-)
-- 
 Stefan Seyfried, [email protected]
+-----------------------------+

> "Checking for OpenGL ... yes" but I have no "gl" video output driver.
"The sun is shining" but i still feel cold.
				-- [A'rpi to Bob Lockie on mplayer-users]
.
-- 
This is the vls-devel mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.