Ok I found how to do it, using the bridges function
Code: Select all
new VideoStream broadcast enabled
setup VideoStream input myvideostreamoverhttp
setup VideoStream output #duplicate{dst=bridge-out{id=1},select=video,vcodec=mp2v}
setup VideoStream loop
new AudioStream broadcast enabled
setup AudioStream input myaudiostreamovermms
setup AudioStream option novideo
setup AudioStream output #bridge-in:transcode{acodec=mpga,ab=192,channels=2}:duplicate{dst=std{access=udp,mux=ts,url=192.168.0.25:1234}}
control VideoStream play
control AudioStream play
But still a problem
when the loop of the video file is done, VLC Player (I guess other players too) didn't show the last received frame, so, until a new frame is received (aroud 2 seconds) we can't see any video.
I don't know what to do, the video stream have to be refreshed, cause the video content change each 3 minutes...
perpahps I can put a picture in background ? the same picture as the video background one ? just to let the user see something, and when the video is back, then the user will see the dynamic fields of the video change.. don't know, if you have an idea, or a solution, I'll be glad to know it
Else, perhaps it's not too complicate to update VLC to let him send the last received frame until he receive a new one ? if yes, in wich file I have to take a look ? I'm not a C++ boss, but perhaps I can do it.
Thx for your helps
JB