Skip to content
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

Should not save (when recording) segments with zero video frames #1888

Closed
darkdarkdragon opened this issue May 17, 2021 · 2 comments · Fixed by #1912
Closed

Should not save (when recording) segments with zero video frames #1888

darkdarkdragon opened this issue May 17, 2021 · 2 comments · Fixed by #1912
Assignees

Comments

@darkdarkdragon
Copy link
Contributor

Problem

Mist sometimes emit segments with zero video frames. We have special check for such frames in lpms, so they not transcoded. But if recording is enabled - these segments saved in the source stream.
And these segments cause problems when playing such streams - our test player and bitmovin player stop at such a segment.

Proposed solution

We do have function in lpms that check for such segments
https://github.com/livepeer/lpms/blob/master/ffmpeg/extras.h#L5
but we don't expose this function publicly.
We should expose this function and use to check source segments before saving.

Other potential solutions

We could delay saving source segment until transcoder response and check for specific error.
That solution have potential problem that if transcoder is unavailable then broadcaster can't tell if segment is good or bad.

@yondonfu
Copy link
Member

yondonfu commented May 17, 2021

That solution have potential problem that if transcoder is unavailable then broadcaster can't tell if segment is good or bad.

And the reason that its important for the broadcaster to be able to determine if the source segment has zero video frames is because even if there are no transcoded results we still want to include the source segment in the recording without corresponding transcoding renditions right?

@darkdarkdragon
Copy link
Contributor Author

That solution have potential problem that if transcoder is unavailable then broadcaster can't tell if segment is good or bad.

And the reason that its important for the broadcaster to be able to determine if the source segment has zero video frames is because even if there are no transcoded results we still want to include the source segment in the recording without corresponding transcoding renditions right?

Yes - if our transcoding pipeline is down then user at least will get his source stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants