Closed TheRealMattLear closed 1 year ago
Hi @TheRealMattLear. Any chance you could provide more logs from before the error? At face value, it looks like the rtmp output connection broke, trying to see if that's because perhaps the streaming loop got stuck/delayed.
Hey @toots thanks so much for reviewing this. I'm actually seeing this more consistently after the disconnect from the rtmp source transitioning through to the single("/root/fallback.mp4") and only ocassionally when connecting the rtmp source initially, such as the example below (same config as above). In the below example i hit CTRL+C at 2023/04/26 00:25:08
to shutdown.
RTMP service provided by nginx-rtmp
@toots the problem does not seem to occur if I am to comment out bothh264_mp4toannexb
bitstream filters
I've done some additional tests that may help you get to the bottom of this:
TESTS - 3 repeats each - 30 second live broadcast w/30 second gap between connections
ADDITIONAL NOTE: I noticed that quickly disconnecting and reconnecting the live broadcast with aac filter (no h264 filters) would likely result in the output.url failing. In one example, not only did it fail but liquidsoap crashed (output below):
I've made some progress here @toots. Adding the aac_adtstoasc filter AFTER each h264_mp4toannexb seems to solve the problem:
Just the same, removing the filters on the individual inputs and applying at the end of the script seems to also be successful:
Important note, if h264_mp4toannexb came after the aac_adtstoasc filter then i'd see a fairly consistent output.url failed upon the live input disconnection.
Now very last point. If I have the filters on a per stream basis, then i'm seeing the following error on the live input disconnection, however, and here's the catch, the output destination never actually goes down (VLC reports no disconnection at the output url, nor do the nginx-rtmp server logs):
Great glad to hear and thanks for the details. These issues can get very technical. I'm moving this to a discussion, feel free to follow-up if needed.
Describe the bug
After input.rtmp(listen=false) becomes active we see
[output.url:4] Error while encoding data: Avutil.Error(Broken pipe)
with the source failing and reconnecting 2 seconds later.Full output:
To Reproduce
Version details
Install method .deb package install via apt