Closed ThisIsMissEm closed 4 years ago
Thanks for the message. It looks like the rtmp-server crashed by attempting to read the incoming buffer a little bit too much, beyond its end. The logs indicate that there were some extra bytes after the first video packet, which the server tried to read and died for. OBS was sending audio/video in supported format (AAC + AVC) so no worries. Maybe there's a bug on the server's side.
Though I'm interested in why the extra bytes were there, an easy workaround would be just to ignore such the extra bytes instead of crashing. Will implement the workaround so please hang tight for maybe a few days.
Okay, thanks! Hopefully you're able to reproduce it. I honestly don't know much about rtmp/video streaming, so was a little lost.
Could the extra bytes be metadata of some kind?
On 3. Jul 2020, at 06:03, Kuu Miyazaki notifications@github.com wrote:
Thanks for the message. It looks like the rtmp-server crashed by attempting to read the incoming buffer a little bit too much, beyond its end. The logs indicate that there were some extra bytes after the first video packet, which the server tried to read and died for. OBS was sending audio/video in supported format (AAC + AVC) so no worries. Maybe there's a bug on the server's side.
Though I'm interested in why the extra bytes were there, an easy workaround would be just to ignore such the extra bytes instead of crashing. Will implement the workaround so please hang tight for maybe a few days.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I was able to reproduce the issue with OBS Studio 25.0.8 on macOS. I just modified the code to ignore the extra bytes. The change has already be published to npm as @mediafish/rtmp-server@0.1.1
Could the extra bytes be metadata of some kind?
I don't think so because those extra bytes are very short, 1~3 bytes.
I think it's safe to ignore but you can check the logs if any skipping was happening:
2020-07-05T04:59:16.012Z rtmp-server Extra bytes found. Skipping trailing 4 bytes.
Feel free to open a new issue if the issue is persistent. Thanks.
Hi! I'm wanting to use this in conjunction with OBS, the streaming application recommended for Twitch streamers, amongst others.
When I start up the example server, I then start streaming in OBS, pointing it to
rtmp://localhost:1935/live
, the handshake seems to happen okay, but then suddenly the server crashes with:You can find the full log below:
Any ideas as to what's going wrong? Is it that OBS is sending video data to rtmp-server in an unsupported encoding?