Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple clients on server-rpi??

See original GitHub issue

Subject says it all … i’ve tried to wrap the start_feed function with a bool so as not to start the spawned process a second time but I don’t get any output on the second client; the first continues to work fine.

Any ideas?

start_feed() {
        if (this.isFeedStarted) {

        var readStream = this.get_feed();
        this.readStream = readStream;

        readStream = readStream.pipe(new Splitter(NALseparator));
        readStream.on("data", this.broadcast);
        this.isFeedStarted = true;

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

KevinNovakcommented, Apr 14, 2018

@131 Could you post your implementation of multiple listeners?

pimterrycommented, Sep 10, 2017

@adrhc I’m not sure exactly why what you’re doing isn’t working, but you might be interested in I wrote this up as a solution for the original issue here generally for the raspivid case. Like the code in this repo, it creates a stream of frames, but it ensures there’s only one video streaming process, and keeps track of the overall stream state it has already seen, to let it create new streams for later consumers, who can then start watching from the current live stream too.

Code is here - it works by storing the initial SPS and PPS (configuration) frames sent when the raspivid process first starts streaming, and then keeping track of the latest IDR (full non-diff) frame as the videos plays. Whenever a client joins, that client is sent those original SPS & PPS frames, followed by the latest IDR frame, and then the rest of the stream from wherever it is currently. I’m not sure exactly how that maps to your situation, but it’s a good solution for anybody pulling video from raspivid, and hopefully it’s helpful!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple clients to one server - Raspberry Pi Forums
I am working on setting up a sensor network using RPi. I want 2-3 clients (sensing nodes) hooked up to 1 server. I...
Read more >
Connecting Multiple Raspberry Pi Clients to a ... - gists · GitHub
Connecting Multiple Raspberry Pi Clients to a Raspberry Pi Server with Socket. ... Running on Raspberry Pi 1. import socketio. sio = socketio.Client()....
Read more >
Multiple Raspberry Pi Clients Talk to Pi Server with Python ...
In this video I show you how multiple raspberry pi clients running python can send sensor data to a single raspberry pi server...
Read more >
Raspberry Pi Camera streaming to multiple clients
I'm just trying achive similar effect to youtube livestreams or google meets where multiple clients can connect and watch view from my webcam ......
Read more >
Clients and Servers
The server must be started first. Once a server is started, it goes to sleep waiting for clients to connect. Whenever a client...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found