Skip to content

Add analyse level full #291

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
merged 19 commits into from
Nov 23, 2016
Merged

Conversation

cchampet
Copy link
Member

@cchampet cchampet commented Nov 21, 2016

I compiled ffmpeg-2.7.7 and avTranscoder in release mode without any specific options, and I get 1min of process to decode and compute all the properties (bitrate, duration, nbFrames) of an AVC stream of 3min (stored in local).

Clement Champetier added 2 commits November 2, 2016 18:44
@coveralls
Copy link

coveralls commented Nov 21, 2016

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling d853c8c on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling d853c8c on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling d853c8c on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

coveralls commented Nov 21, 2016

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling 7f1077f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling 7f1077f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling 7f1077f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@cchampet cchampet changed the title [WIP] Add analyse level full Add analyse level full Nov 22, 2016
@coveralls
Copy link

coveralls commented Nov 22, 2016

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling 84fc4bf on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling 84fc4bf on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.273% when pulling 84fc4bf on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

VideoFrame frame(VideoFrameDesc(getWidth(), getHeight(), getPixelFormatName(getPixelProperties().getAVPixelFormat())), false);

_nbFrames = nbDecodedFrames;
Copy link
Member

Choose a reason for hiding this comment

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

Does this have a real sense to set the number of images with the GOP image number?


// Returns at the beginning of the stream
const_cast<InputFile&>(_fileProperties->getInputFile()).seekAtFrame(0, AVSEEK_FLAG_BYTE);
}
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we use a switch statement here? We might have this const_cast<InputFile&>(_fileProperties->getInputFile()).seekAtFrame(0, AVSEEK_FLAG_BYTE); line twice, but it could be clearer, don't you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Something like that? ad44be7

LOG_INFO("Need a deeper analysis: see eAnalyseLevelFirstGop.")
return 0;
}
else
Copy link
Member

Choose a reason for hiding this comment

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

Not necessary! :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Humm... I think it is ;)

Copy link
Member

Choose a reason for hiding this comment

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

I think it is not!

Copy link
Member Author

Choose a reason for hiding this comment

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

a61d95f :)

Copy link
Member

Choose a reason for hiding this comment

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

Well, you changed it into the getDuration() method, but not into this getNbFrames()!

Copy link
Member Author

Choose a reason for hiding this comment

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

"Et voilà" 0f7508f :)

LOG_INFO("Need a deeper analysis: see eAnalyseLevelFirstGop.")
return 0;
}
else
Copy link
Member

Choose a reason for hiding this comment

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

Not necessary too!

Use a switch statement instead of several if.
Else statement was not necessary!
@coveralls
Copy link

coveralls commented Nov 23, 2016

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

5 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

coveralls commented Nov 23, 2016

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling a61d95f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

Else statement was not necessary!
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling 0f7508f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling 0f7508f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling 0f7508f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling 0f7508f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 78.267% when pulling 0f7508f on cchampet:addAnalyseLevelFull into cbb248b on avTranscoder:develop.

@valnoel valnoel merged commit 244f417 into avTranscoder:develop Nov 23, 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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy