I want to live stream from one source(ffmpeg) to multiple clients for which I'm using mkvserver. I'm able to live stream a webcam from ffmpeg(client) to mkvserver(server) as follows:
On Server :
nc -l <port-number> | ./server
On Client :
ffmpeg -f avfoundation -framerate 30 -i 0 -b 900k -f matroska -r 20 tcp://<ip-address>:<port-number>
To view the genereted steam on server, I used the ffplay as:
ffplay tcp://<ip-address>:<port>
but I got the Connection timed out error. Please suggest a way to view the generated stream on the server via ffplay. Thanks!