Skip to content

Commit 66a7b43

Browse files
author
Clement Champetier
committed
VideoProperties: added doc about possible estimate properties
1 parent fa1b5c8 commit 66a7b43

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/AvTranscoder/properties/VideoProperties.hpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,18 @@ class AvExport VideoProperties : public StreamProperties
4040
Rational getSar() const; // sample/pixel aspect ratio
4141
Rational getDar() const; // display aspect ratio
4242

43-
size_t getBitRate() const; ///< in bits/s, 0 if unknown
43+
/**
44+
* @return The video bitrate in bits/s.
45+
* @warning If there is no such info available in the container, this data is estimate by decoding the first GOP.
46+
*/
47+
size_t getBitRate() const;
4448
size_t getMaxBitRate() const;
4549
size_t getMinBitRate() const;
46-
size_t getNbFrames() const; ///< 0 if unknown
50+
/**
51+
* @note 0 if unknown.
52+
* @warning In case of a raw format, this data is estimate from the fps and the duration.
53+
*/
54+
size_t getNbFrames() const;
4755
size_t getTicksPerFrame() const;
4856
size_t getWidth() const;
4957
size_t getHeight() const;
@@ -63,7 +71,8 @@ class AvExport VideoProperties : public StreamProperties
6371

6472
/**
6573
* @brief Override method.
66-
* @return the stream duration in seconds, 0 if not available
74+
* @return The stream duration in seconds, 0 if not available.
75+
* @warning In case of a raw format, this data is estimate from the file size.
6776
*/
6877
float getDuration() const;
6978

0 commit comments

Comments
 (0)