Skip to content

Commit 462b50d

Browse files
author
Clement Champetier
committed
VideoProperties: update log when bitRate is not available in the container
1 parent dfc2c98 commit 462b50d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ size_t VideoProperties::getBitRate() const
331331

332332
if(_levelAnalysis == eAnalyseLevelHeader)
333333
{
334-
LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown.")
334+
LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown. "
335+
"Need a deeper analysis: see eAnalyseLevelFirstGop.")
335336
return 0;
336337
}
337338

src/AvTranscoder/properties/VideoProperties.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ class AvExport VideoProperties : public StreamProperties
4242

4343
/**
4444
* @return The video bitrate in bits/s.
45-
* @warning If there is no such info available in the container, this data is estimated by decoding the first GOP.
45+
* @note 0 if unknown.
46+
* @warning If there is no such info available in the container, this data is estimated using the information of the first GOP.
47+
* @see eAnalyseLevelFirstGop
4648
*/
4749
size_t getBitRate() const;
4850
size_t getMaxBitRate() const;

0 commit comments

Comments
 (0)