Skip to content

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

Merged

Conversation

cchampet
Copy link
Member

@cchampet cchampet commented Nov 2, 2016

Analyse the first GOP only once instead of twice!

Clement Champetier added 7 commits November 2, 2016 17:29
* 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.
@coveralls
Copy link

coveralls commented Nov 3, 2016

Coverage Status

Coverage increased (+0.3%) to 77.174% when pulling dfc2c98 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into 103c33f on avTranscoder:develop.

1 similar comment
@coveralls
Copy link

coveralls commented Nov 3, 2016

Coverage Status

Coverage increased (+0.3%) to 77.174% when pulling dfc2c98 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into 103c33f on avTranscoder:develop.

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.")
Copy link
Member

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"?

Copy link
Member Author

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

@cchampet cchampet force-pushed the refactor_VideoPropertiesAnalyseFirstGOP branch from 14120ec to 462b50d Compare November 3, 2016 13:14
…into refactor_VideoPropertiesAnalyseFirstGOP

Conflicts:
	src/AvTranscoder/properties/VideoProperties.cpp
@coveralls
Copy link

coveralls commented Nov 3, 2016

Coverage Status

Coverage increased (+0.3%) to 77.174% when pulling 462b50d on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into 103c33f on avTranscoder:develop.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 77.174% when pulling 462b50d on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into 103c33f on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 77.174% when pulling 462b50d on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into 103c33f on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 77.174% when pulling 462b50d on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into 103c33f on avTranscoder:develop.

The data buffer of the VideoFrame will be allocated by the decoder.
@coveralls
Copy link

coveralls commented Nov 3, 2016

Coverage Status

Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*.

5 similar comments
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 2ccf4b6 on cchampet:refactor_VideoPropertiesAnalyseFirstGOP into * on avTranscoder:develop*.

@cchampet cchampet merged commit 3d0dc4a into avTranscoder:develop Nov 4, 2016
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