-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TEMP - ffmpeg output debugging #3406
base: master
Are you sure you want to change the base?
Conversation
* Reduce segmenter ffmpeg's analyzeduration to 2s. This avoids waiting for audio during RTMP pull at the risk of missing late tracks, especially video with a long GOP. * Send current segment immediately when the publisher is ready to receive data, rather than waiting for the next segment. This reduces time-to-first-frame at the risk of higher *perceived* latency if playback happens to start at the current segment (which we are effectively buffering, instead of staying on the leading edge by waiting for the next segment) * Rearrange retry sleeps in the segmenter: if ffmpeg needs to retry, it will immediately check for stream existence and exit if necessary. If the stream still exists, only then will it sleep for 5 seconds. This avoids a 5 second delay in signaling EOF. * Add some comments around how retries are still kinda broken anyway * Fix a couple of missing body closes in mediamtx HTTP request handling * Log ffmpeg output on rtmp pull errors
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3406 +/- ##
===================================================
- Coverage 32.11405% 32.08888% -0.02517%
===================================================
Files 147 147
Lines 40789 40821 +32
===================================================
Hits 13099 13099
- Misses 26916 26948 +32
Partials 774 774
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
No description provided.