question-mark
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.

Transcode stop but rmtp publish is still running

See original GitHub issue

Hi there!

I absolutely love this project. Was a life saver for my project.

First, here is my use case: I have an electron app that uses FFMPEG to send IP camera streams to Node-Media-Server hosted on a EC2 instance. I am using transcoding to generate HLS files that users can play on a mobile app and website.

On the electron app I have a routine that restarts ffmpeg command if it exits. On Node-Media-Server I have used the events to notify the viewers when a stream is available or offline.

Now the issue: sometimes Transcode just stop when the publishing is still happening. That way my app can’t restart FFMPEG because it is still running even though the transcoding is not.

When the transcoding stop this was the log displayed:

3/16/2021 01:55:43 1 [INFO] [rtmp play] Close stream. id=2ZRT4FJT streamPath=/live/6048f9e6d650ab0007d1ee6d streamId=1

3/16/2021 01:55:43 1 [INFO] [rtmp disconnect] id=2ZRT4FJT

3/16/2021 01:55:43 1 [INFO] [Transmuxing end] /live/6048f9e6d650ab0007d1ee6d

Any help or guidance will be much apreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
flavioribeirojrcommented, Apr 2, 2021

I have decided to migrate to https://github.com/arut/nginx-rtmp-module

So far I have no issues.

0reactions
benjamin658commented, Oct 21, 2021

For anyone who is struggling with this issue, we finally found that in the document config, ping and ping_timeout should be exchanged:

const config = {
  rtmp: {
    port: 1935,
    chunk_size: 60000,
    gop_cache: true,
    ping: 60, // 30 -> 60
    ping_timeout: 30 // 60 -> 30
  },
  http: {
    port: 8000,
    allow_origin: '*'
  }
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

RTMP Publish stops after receiving 3.954GB #354 - GitHub
Hi Guys, I am currently having a problem with publishing from FMLE to nginx-rtmp. I am using FMLE x64 in a Win7x64 machine...
Read more >
Set up and run Transcoder in Wowza Streaming Engine
Configure Wowza Streaming Engine Transcoder to decode audio and video in incoming live streams and re-encode them for adaptive bitrate ...
Read more >
How to Set Up an RTMP Encoder for Live Video Streaming
Learn how to set up an RTMP encoder and choose from the top RTMP live stream hardware and software options for RTMP-enabled video...
Read more >
ffmpeg live rtmp stream does not start to process for long time
I have rtmp stream created by flash player in h264 but when i convert it to video or tumbnail using ffmpeg it some...
Read more >
Publishing to a static stream - Flussonic Manual
Flussonic supports such configuration for RTMP streams. For WebRTC, the transcoder parameter will be added in future versions, but now you can use...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found