MP3 format for RTSP https://en.wikipedia.org/wiki/RTP_payload_formats.
More...
#include <RTSPFormat.h>
◆ RTSPFormatMP3() [1/2]
◆ RTSPFormatMP3() [2/2]
Provide dynamic frame duration if encoder is available.
◆ audioInfo()
◆ begin() [1/2]
◆ begin() [2/2]
◆ convert()
| virtual int convert |
( |
void * |
data, |
|
|
int |
sampleCount |
|
) |
| |
|
inlinevirtualinherited |
◆ defaultConfig()
◆ defaultVideoConfig()
◆ format()
| const char * format |
( |
char * |
buffer, |
|
|
int |
len |
|
) |
| |
|
inlineoverridevirtual |
◆ fragmentSize()
Sized to match one actual encoded frame once the encoder has parsed one (encoder->frameSize() > 0), instead of the fixed constructor guess. A fragment size covering several frames' worth of bytes, sent at the one-frame pace of timerPeriodUs(), overruns real-time bandwidth - harmless over TCP (just buffers ahead) but causes packet loss over UDP, which has no flow control.
Reimplemented from RTSPFormat.
◆ mediaType()
◆ name()
| virtual const char * name |
( |
| ) |
|
|
inlinevirtualinherited |
◆ readHeader() [1/2]
| virtual int readHeader |
( |
uint8_t * |
data | ) |
|
|
inlinevirtualinherited |
Optional header: e.g. rfc2250.
◆ readHeader() [2/2]
| int readHeader |
( |
unsigned char * |
buffer | ) |
|
|
inlineoverride |
rfc2250 header before the playload
◆ rtpPayloadType()
◆ setEncoder()
◆ setFragmentSize()
| void setFragmentSize |
( |
int |
fragmentSize | ) |
|
|
inlineinherited |
Defines the fragment size in bytes.
◆ setName()
| void setName |
( |
const char * |
name | ) |
|
|
inlineinherited |
Defines the name of the stream.
◆ setProfileLevelId()
| virtual void setProfileLevelId |
( |
const char * |
| ) |
|
|
inlinevirtualinherited |
Optional: receives the 3-byte profile-level-id (as 6 hex digits) once an encoder has parsed it from the SPS. Default no-op; only RTSPFormatH264 acts on it.
Reimplemented in RTSPFormatH264.
◆ setSpropParameterSets()
| virtual void setSpropParameterSets |
( |
const char * |
, |
|
|
const char * |
|
|
) |
| |
|
inlinevirtualinherited |
Optional: receives base64-encoded SPS/PPS once an encoder has learned them (H.264 sprop-parameter-sets). Default no-op; only RTSPFormatH264 acts on it. Declared here (rather than only on RTSPFormatH264) so video encoders (see RTSPVideoEncoder) can push this through a generic RTSPFormat* without needing to know the concrete format type.
Reimplemented in RTSPFormatH264.
◆ setTimerPeriodUs()
| void setTimerPeriodUs |
( |
int |
period | ) |
|
|
inlineinherited |
Defines the timer period in microseconds.
◆ setUseRfc2250Header()
| void setUseRfc2250Header |
( |
bool |
| ) |
|
|
inlinevirtual |
Optional: Configure RFC2250 header usage (default: no-op)
Reimplemented from RTSPFormat.
◆ timerPeriodUs()
Timer period in microseconds.
Reimplemented from RTSPFormat.
◆ timestampIncrement()
| virtual int timestampIncrement |
( |
| ) |
|
|
inlinevirtual |
Fragment size in samples (for audio) or timestamp increment (for video)
Reimplemented from RTSPFormat.
◆ useRfc2250Header()
| bool useRfc2250Header |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ videoInfo()
◆ cfg
◆ fragment_size
◆ name_str
| const char* name_str = "RTSPAudioTools" |
|
protectedinherited |
◆ p_encoder
◆ STD_URL_PRE_SUFFIX
| const char* STD_URL_PRE_SUFFIX = "trackID" |
|
protectedinherited |
◆ timer_period_us
| int timer_period_us = 10000 |
|
protectedinherited |
◆ use_rfc2250_header_
| bool use_rfc2250_header_ = false |
|
protected |
◆ video_cfg
The documentation for this class was generated from the following file: