Skip to content

Commit 14120ec

Browse files
author
Clement Champetier
committed
VideoProperties: add log when bitRate is not available in the container
1 parent dfc2c98 commit 14120ec

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
@@ -329,9 +329,10 @@ size_t VideoProperties::getBitRate() const
329329
if(_codecContext->bit_rate || _codecContext->rc_max_rate)
330330
return _codecContext->bit_rate;
331331

332+
LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown.")
332333
if(_levelAnalysis == eAnalyseLevelHeader)
333334
{
334-
LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown.")
335+
LOG_INFO("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)
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