Fork me on GitHub
Loading...
Searching...
No Matches
#include "pp-avformat.h"
Include dependency graph for pp-avformat.c:

Functions

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.

Detailed Description

Recordings post-processing utility

Function Documentation

◆ 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]frameThe frame buffer
[in]sizeThe size of the frame buffer
[in,out]frame_lenThe current length of the frame, updated on success
[in]dataThe data to append
[in]lenThe 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 )