|
| void | janus_pp_setup_avformat (void) |
| AVFormatContext * | janus_pp_create_avformatcontext (const char *format, const char *metadata, const char *destination) |
| AVStream * | janus_pp_new_audio_avstream (AVFormatContext *fctx, int codec_id, int samplerate, int channels, const uint8_t *extradata, int size) |
| AVStream * | janus_pp_new_video_avstream (AVFormatContext *fctx, int codec_id, int width, int height) |
| int | janus_pp_frame_append (uint8_t *frame, int size, int *frame_len, const uint8_t *data, int len) |
| | Helper to append data to a video frame we're assembling for FFmpeg.
|
- Copyright
- GNU General Public License v3
Recordings post-processing utility
◆ janus_pp_create_avformatcontext()
| AVFormatContext * janus_pp_create_avformatcontext |
( |
const char * | format, |
|
|
const char * | metadata, |
|
|
const char * | destination ) |
◆ janus_pp_frame_append()
| int janus_pp_frame_append |
( |
uint8_t * | frame, |
|
|
int | size, |
|
|
int * | frame_len, |
|
|
const uint8_t * | data, |
|
|
int | len ) |
Helper to append data to a video frame we're assembling for FFmpeg.
- Note
- The data is only appended if it fits in the frame buffer, leaving room for the FFmpeg input padding: if it doesn't, nothing is written
- Parameters
-
| [in] | frame | The frame buffer |
| [in] | size | The size of the frame buffer |
| [in,out] | frame_len | The current length of the frame, updated on success |
| [in] | data | The data to append |
| [in] | len | The length of the data to append |
- Returns
- 0 if the data was appended, -1 otherwise
◆ janus_pp_new_audio_avstream()
| AVStream * janus_pp_new_audio_avstream |
( |
AVFormatContext * | fctx, |
|
|
int | codec_id, |
|
|
int | samplerate, |
|
|
int | channels, |
|
|
const uint8_t * | extradata, |
|
|
int | size ) |
◆ janus_pp_new_video_avstream()
| AVStream * janus_pp_new_video_avstream |
( |
AVFormatContext * | fctx, |
|
|
int | codec_id, |
|
|
int | width, |
|
|
int | height ) |
◆ janus_pp_setup_avformat()
| void janus_pp_setup_avformat |
( |
void | | ) |
|