-
Notifications
You must be signed in to change notification settings - Fork 50
VideoProperties: improve how to analyse the first GOP #284
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
VideoProperties: improve how to analyse the first GOP #284
Conversation
…sing only the header
* The first GOP is already decoded once, in analyseGopStructure private method. * Use the results already computed to estimate the bitrate.
…ding So no need to check this attribute in other method.
Return immediatly at the beginning of the function if some attributes are not correctly set.
* Keep a reference to the InputFile. * This new reference will be used to refactor the decoding in case of deep analysis.
Use the avtranscoder objects: easier to maintain.
1 similar comment
LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown.") | ||
if(_levelAnalysis == eAnalyseLevelHeader) | ||
{ | ||
LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown.") |
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.
Maybe we could add a message that says something like "Enable first GOP analyze to extract the bitrate value"?
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.
Yes you are right! 14120ec
14120ec
to
462b50d
Compare
…into refactor_VideoPropertiesAnalyseFirstGOP Conflicts: src/AvTranscoder/properties/VideoProperties.cpp
3 similar comments
The data buffer of the VideoFrame will be allocated by the decoder.
Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*. |
5 similar comments
Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*. |
Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*. |
Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*. |
Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*. |
Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*. |
Analyse the first GOP only once instead of twice!