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

Infer capabilities from input codec #2191

Merged
merged 1 commit into from
Feb 8, 2022
Merged

Conversation

cyberj0g
Copy link
Contributor

What does this pull request do? Explain your changes. (required)
This is part of #2123 implementation and a follow up to #2150. Will rebase once #2150 is merged.

Specific updates (required)

  • Add LPMS function GetCodecInfo
  • Call it early in MediaServer.HandlePush to both determine video\audio codec and check if segment doesn't have video frames
  • pass codec info to registerConnection to infer additional job capabilities from it

How did you test each of these updates (required)
Tests

Does this pull request close any open issues?
#2123

Checklist:

server/mediaserver.go Outdated Show resolved Hide resolved
server/push_test.go Outdated Show resolved Hide resolved
core/streamdata.go Outdated Show resolved Hide resolved
server/mediaserver.go Outdated Show resolved Hide resolved
server/mediaserver.go Outdated Show resolved Hide resolved
server/mediaserver.go Outdated Show resolved Hide resolved
server/mediaserver.go Outdated Show resolved Hide resolved
server/mediaserver.go Outdated Show resolved Hide resolved
server/mediaserver.go Outdated Show resolved Hide resolved
Copy link
Contributor

@darkdarkdragon darkdarkdragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you run go fmt ./... ?

server/mediaserver.go Outdated Show resolved Hide resolved
@cyberj0g
Copy link
Contributor Author

cyberj0g commented Feb 3, 2022

Could you run go fmt ./... ?

Done.

@darkdarkdragon
Copy link
Contributor

@cyberj0g could you please rebase it on master?

@cyberj0g cyberj0g force-pushed the ip/infer-capabilities branch from 560c5b4 to c278aab Compare February 7, 2022 17:49
@cyberj0g
Copy link
Contributor Author

cyberj0g commented Feb 7, 2022

@darkdarkdragon done

Copy link
Contributor

@darkdarkdragon darkdarkdragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyberj0g cyberj0g merged commit 198d694 into master Feb 8, 2022
@darkdarkdragon darkdarkdragon deleted the ip/infer-capabilities branch February 8, 2022 14:13
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 this pull request may close these issues.

3 participants