#include <flvmuxer.h>
◆ FlvMuxer()
| ttv::broadcast::FlvMuxer::FlvMuxer |
( |
std::shared_ptr< StreamStats > |
streamStats | ) |
|
◆ ~FlvMuxer()
| virtual ttv::broadcast::FlvMuxer::~FlvMuxer |
( |
| ) |
|
|
virtual |
◆ BeginChunk()
◆ EndChunk()
| TTV_ErrorCode ttv::broadcast::FlvMuxer::EndChunk |
( |
size_t |
length | ) |
|
|
private |
◆ GetAverageSendBitRate()
| TTV_ErrorCode ttv::broadcast::FlvMuxer::GetAverageSendBitRate |
( |
uint64_t |
measurementWindowMilliseconds, |
|
|
uint64_t & |
bitsPerSecond |
|
) |
| const |
Computes the average sending bit rate in bits per second over a sliding window.
◆ GetCongestionLevel()
| TTV_ErrorCode ttv::broadcast::FlvMuxer::GetCongestionLevel |
( |
uint64_t |
measurementWindowMilliseconds, |
|
|
double & |
congestionLevel |
|
) |
| const |
Returns the fraction of time spent blocking on the socket over a sliding window.
◆ GetError()
Retrieves the fatal error if the stream has become invalid.
◆ SetFlvPath()
| void ttv::broadcast::FlvMuxer::SetFlvPath |
( |
const std::wstring & |
path | ) |
|
|
inline |
◆ SetRtmpUrl()
| void ttv::broadcast::FlvMuxer::SetRtmpUrl |
( |
const std::string & |
url | ) |
|
|
inline |
◆ Start()
Specifies that the encoding has begun.
- Parameters
-
| parameters | The parameters of the encoding. |
- Returns
- TTV_EC_SUCCESS if the start is successful.
- Any other error code otherwise. This will prevent the encoding stream from continuing if this is the only muxer.
Implements ttv::broadcast::IMuxer.
◆ Stop()
Specifies that the encoding has stopped.
- Returns
- TTV_EC_SUCCESS if the stop is successful. Any errors returned from this will be ignored.
Implements ttv::broadcast::IMuxer.
◆ Update()
| void ttv::broadcast::FlvMuxer::Update |
( |
| ) |
|
◆ WriteAudioHeader()
◆ WriteAudioPacket()
Writes an audio packet to the stream.
- Parameters
-
- Returns
- TTV_EC_SUCCESS if the writing is successful.
- Any other error code otherwise. This will stop the encoding stream if this is the only muxer.
Implements ttv::broadcast::IMuxer.
◆ WriteMetaPacket()
◆ WriteToOutput() [1/3]
| size_t ttv::broadcast::FlvMuxer::WriteToOutput |
( |
const uint8_t * |
data, |
|
|
size_t |
length, |
|
|
bool |
rtmpData = true |
|
) |
| |
|
private |
◆ WriteToOutput() [2/3]
template<class _T >
| size_t ttv::broadcast::FlvMuxer::WriteToOutput |
( |
_T * |
data, |
|
|
bool |
rtmpData = true |
|
) |
| |
|
inlineprivate |
◆ WriteToOutput() [3/3]
| size_t ttv::broadcast::FlvMuxer::WriteToOutput |
( |
const std::vector< uint8_t > & |
data, |
|
|
bool |
rtmpData = true |
|
) |
| |
|
inlineprivate |
◆ WriteVideoPacket()
Writes a video packet to the stream.
- Parameters
-
- Returns
- TTV_EC_SUCCESS if the writing is successful.
- Any other error code otherwise. This will stop the encoding stream if this is the only muxer.
Implements ttv::broadcast::IMuxer.
◆ WriteVideoSpsPps()
| virtual TTV_ErrorCode ttv::broadcast::FlvMuxer::WriteVideoSpsPps |
( |
const std::vector< uint8_t > & |
sps, |
|
|
const std::vector< uint8_t > & |
pps |
|
) |
| |
|
overridevirtual |
Writes the video SPS and PPS to the stream. This needs to be done before an IDR frame that it applies to.
- Parameters
-
| sps | The video SPS data. |
| pps | The video PPS data. |
- Returns
- TTV_EC_SUCCESS if the writing is successful.
- Any other error code otherwise. This will stop the encoding stream if this is the only muxer.
Implements ttv::broadcast::IMuxer.
◆ mAudioFlags
| std::vector<uint8_t> ttv::broadcast::FlvMuxer::mAudioFlags |
|
private |
◆ mFlvPath
| std::wstring ttv::broadcast::FlvMuxer::mFlvPath |
|
private |
◆ mInitParams
◆ mOutputFile
| FILE* ttv::broadcast::FlvMuxer::mOutputFile |
|
private |
◆ mRtmpStream
| std::unique_ptr<RtmpStream> ttv::broadcast::FlvMuxer::mRtmpStream |
|
private |
◆ mRtmpUrl
| std::string ttv::broadcast::FlvMuxer::mRtmpUrl |
|
private |
◆ mStreamStats
| std::shared_ptr<StreamStats> ttv::broadcast::FlvMuxer::mStreamStats |
|
private |
◆ mTotalVideoPacketsSent
| uint64_t ttv::broadcast::FlvMuxer::mTotalVideoPacketsSent |
|
private |
◆ mVideoFlags
| std::vector<uint8_t> ttv::broadcast::FlvMuxer::mVideoFlags |
|
private |
The documentation for this class was generated from the following file:
- modules/broadcast/broadcast_common/include/twitchsdk/broadcast/internal/muxers/flvmuxer.h