Skip to content

Commit 76740bb

Browse files
author
Clement Champetier
committed
VideoProperties: added log when compute the video bitrate
1 parent 1509051 commit 76740bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/AvTranscoder/properties/VideoProperties.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ size_t VideoProperties::getBitRate() const
337337
if(getGopSize() == 0)
338338
throw std::runtime_error("cannot compute bit rate: need to get info from the first gop (see eAnalyseLevelFirstGop)");
339339

340+
LOG_WARN("The bitrate of the stream '" << _streamIndex << "' of file '" << _formatContext->filename << "' is unknown.")
341+
LOG_INFO("Decode the first GOP to compute the bitrate.")
342+
340343
// discard no frame type when decode
341344
_codecContext->skip_frame = AVDISCARD_NONE;
342345

0 commit comments

Comments
 (0)