napa-baselibs / tests / Broadcaster @ 507372bb
Name | Size | Revision | Age | Author | Comment |
---|---|---|---|---|---|
Makefile.am | 408 Bytes | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
NAPA1peer.cfg | 2.35 KB | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
README.txt | 1.63 KB | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
crc.c | 5.67 KB | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
crc.h | 1.75 KB | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
ml.c | 5.99 KB | 507372bb | almost 10 years | Csaba Kiraly | reducing naming confusion GRAPES was used for ... |
mon.c | 5.93 KB | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
package.sh | 124 Bytes | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
peer.c | 3.49 KB | 507372bb | almost 10 years | Csaba Kiraly | reducing naming confusion GRAPES was used for ... |
peer.cfg.template | 2.05 KB | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
peer.h | 3.06 KB | 507372bb | almost 10 years | Csaba Kiraly | reducing naming confusion GRAPES was used for ... |
playout.c | 7.25 KB | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
rep.c | 485 Bytes | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
som.c | 5.82 KB | 507372bb | almost 10 years | Csaba Kiraly | reducing naming confusion GRAPES was used for ... |
source.c | 5.9 KB | 507372bb | almost 10 years | Csaba Kiraly | reducing naming confusion GRAPES was used for ... |
source.cfg.template | 1.63 KB | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
version.c | 26 Bytes | 956892f0 | over 10 years | ArpadBakay | New directory structure + build-all.sh that bui... |
Latest revisions
README
Repository-based Broadcasting
=============================
This simple demo application implements a "Broadcasting Server", which
- injects a video stream,
- "chunkizes" it,
- retrieves a peer list periodically from the Repository
- broadcasts the stream to all the peers on the list
Usage
=====
1. Start a vlc process with a video file and instruct it to stream to your
computer using UDP streaming.
For example, on Unix, to stream to the localhost (port 5556) use:
vlc -L --sout udp://127.0.0.1:5556 -I none --quiet starwars.avi
2. Make sure a repository server is available. Either start a
ModularRepository instance or use the public server at
repository.napa-wine.eu:9832
2. Start ONE source node:
a) create a local source.cfg based on source.cfg.template
b) carefully review and edit source.cfg
c) start the source by:
./peer source.cfg
3. Start 1..n "client" peers:
a) create a peer.cfg based on peer.cfg.template
b) carefully review and edit peer.cfg
c) (optionally) direct the "playout stream" to your PC's IP address
start a VLC GUI on your PC and open network stream udp://0.0.0.0:port
where the port is the same as specified in the "playout stream"
d) start the peer by
./peer peer.cfg
Important advices:
- if you use multiple peers on the same hosts, avoid port conflicts, and
configure a different port for each instance ("network" section of
the config file)
The config file's port setting can be overridden from the command line,
see ./peer -h for help
- your source and "client" peers must use the same channel name ("som"
section of the config file). Please don't use the name "MyChannel".
Also available in: Atom