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

Use VideoFrames as input for VideoDecoders #281

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

murillo128
Copy link
Member

Yakes over the work done in #271

Copy link
Contributor

@mildsunrise mildsunrise left a comment

Choose a reason for hiding this comment

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

LGTM, but when taking over a PR I think it's a good idea to either work on the same PR, or at least keep the history so that the additional changes (by you) are easier to see 🙏

@mildsunrise
Copy link
Contributor

I see you also adapted medooze/video-codecs-node#9 to be compatible with the new changes, thanks!

{
//Create new codec from pacekt
videoDecoder.reset(VideoCodecFactory::CreateDecoder((VideoCodec::Type)packet->GetCodec()));
videoDecoder.reset(VideoCodecFactory::CreateDecoder((VideoCodec::Type)videoFrame->GetCodec()));
Copy link
Contributor

Choose a reason for hiding this comment

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

cast no longer needed, better remove it

Suggested change
videoDecoder.reset(VideoCodecFactory::CreateDecoder((VideoCodec::Type)videoFrame->GetCodec()));
videoDecoder.reset(VideoCodecFactory::CreateDecoder(videoFrame->GetCodec()));

packets.Add(packet->Clone());
}
//Ensure it is video
if (frame.GetType()!=MediaFrame::Video)
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, I see you removed the Warning() here, any particular reason?

Copy link
Contributor

@bcostdolby bcostdolby left a comment

Choose a reason for hiding this comment

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

lgtm

@murillo128
Copy link
Member Author

we have a problem with ffmpeg expecting annexb h26X streams while we are feeding non-annexb with the default packetizers.

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.

None yet

3 participants