one input and several separate output

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
fredoche

one input and several separate output

Postby fredoche » 21 Jun 2006 13:44

Hi,

Here my goal :
1/ Capture video into a file when user wants
2/ At the same time, continuous stream the video source to several unicast ips

I try this :

Code: Select all

new stream broadcast enabled setup stream input 'dshow:// :dshow-vdev="Hauppauge WinTV Capture" :dshow-adev="Realtek AC97 Audio" :dshow-size=""' setup stream output #transcode{vcodec=mp1v,vb=1024,scale=1,acodec=mp3,ab=96,channels=2}:duplicate{dst=std{access=udp,mux=ts,url=192.168.0.1:1234}} new live broadcast enabled setup live input udp://@:1234 setup live output #transcode{vcodec=mp1v,vb=1024,scale=0.75,acodec=mp3,ab=96,channels=2}:duplicate{dst=std{access=udp,mux=ts,url=192.168.0.2:1234},dst=std{access=udp,mux=ts,url=192.168.0.3:1234},dst=std{access=udp,mux=ts,url=192.168.0.4:1234}} new capture broadcast enabled setup capture input udp://@:1234 setup capture output #transcode{vcodec=mp1v,vb=1024,scale=1,acodec=mp3,ab=96,channels=2}:duplicate{dst=std{access=file,mux=mpeg1,url="C:\capture.mpeg"}} control stream play control live play
Problem, user control the "live" with an web interface which send IR signal. capture -> 192.168.0.1 = 2.5 seconds of delay
192.168.0.1 -> users = 2.5 seconds of delay
thus : capture -> user = 5 seconds of delay.
This delay is too long for our need !

I can' put the dest ip directly in the "stream" channel because, it change all the time and I can't stop it when a capture is playing (channel "capture").

Thus, is it a "memory" stream ("fake" input ?) to replace the local (192.168.0.1) udp streaming ?

Code: Select all

capture -> memory +-> live +-> user1 | |-> user2 | +-> userX +-> file
Thx

Fredoche

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 24 Jun 2006 15:02

try using #duplicate. (See streaming howto chapters 3 and 4 for examples)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

fredoche

separate control

Postby fredoche » 26 Jun 2006 15:31

Yes, but I can't play/stop "file" stream without stopping users stream.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 29 Jun 2006 23:44

Well then you'll have to use your ugly hack :)
Or maybe something a bit better with the bridge-out bridge-in modules, but it's about the same and i'm not sure that it'll keep audio and video in sync...
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 23 guests