-
Notifications
You must be signed in to change notification settings - Fork 294
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 🙏
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())); |
There was a problem hiding this comment.
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
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
we have a problem with ffmpeg expecting annexb h26X streams while we are feeding non-annexb with the default packetizers. |
Yakes over the work done in #271