I noticed rather strange VLC behavior, when making this command batch in VLM http interface:
del mainstream
new mainstream broadcast enabled
setup mainstream input rtp://@:1234
setup mainstream output #duplicate{dst=std{access=mmsh,mux=ts,url=127.0.0.1:1235}}
control mainstream play
(mainstream do not exist before executing this batch)
- Sometimes it works fine.
- Sometimes it gives an error, that mainstream media do not exist - and stream is not creating.
- BUT sometimes something wrong happens - it creates stream, but with errors (input is empty) and VLC begins to use CPU unnormally. (50% vs 0.1% in normal mode)
How should I execute batches from my scripts? A small delay between commands helps to solve this, but I'm not sure - maybe it will begin to work strange on a heavy loaded system. Seems like something goes wrong with concurent requests.
Will be glad if anyone can explain me this.