GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
gpac_ts_muxer.c File Reference
#include "ts_muxer.h"
#include <gpac/mpegts.h>
+ Include dependency graph for gpac_ts_muxer.c:

Data Structures

struct  GF_AbstractTSMuxer
 

Functions

static GF_Err sendTSMux (GF_AbstractTSMuxer *ts)
 
Bool ts_encode_audio_frame (GF_AbstractTSMuxer *ts, AVFrame *encodedFrame, uint8_t *data, int encoded)
 
static GF_Err void_input_ctrl (GF_ESInterface *ifce, u32 act_type, void *param)
 
Bool ts_encode_video_frame (GF_AbstractTSMuxer *ts, AVFrame *encodedFrame, uint8_t *data, int encoded, AVCodecContext *videoCodecContext)
 
GF_AbstractTSMuxer * ts_amux_new (GF_AVRedirect *avr, u32 videoBitrateInBitsPerSec, u32 audioBitRateInBitsPerSec, GF_Socket *ts_output_udp_sk)
 
void ts_amux_del (GF_AbstractTSMuxer *ts)
 

Data Structure Documentation

struct avr_ts_muxer
+ Collaboration diagram for GF_AbstractTSMuxer:
Data Fields
AVFormatContext * oc
AVStream * audio_st
AVStream * video_st
AVPacketList * videoPackets
AVPacketList * audioPackets
volatile Bool encode
GF_Mutex * videoMx
GF_Mutex * audioMx
GF_Thread * tsEncodingThread
const char * destination
GF_M2TS_Mux * muxer
GF_ESIPacket videoCurrentTSPacket
GF_ESIPacket audioCurrentTSPacket
GF_ESInterface * video
GF_ESInterface * audio
u64 frameTimeSentOverTS
GF_Socket * ts_output_udp_sk

Function Documentation

static GF_Err sendTSMux ( GF_AbstractTSMuxer *  ts)
static

Sends the TS mux to socket

Parameters
avrThe AVRedirect structure pointer

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool ts_encode_audio_frame ( GF_AbstractTSMuxer *  ts,
AVFrame *  encodedFrame,
uint8_t data,
int  encoded 
)

+ Here is the call graph for this function:

static GF_Err void_input_ctrl ( GF_ESInterface ifce,
u32  act_type,
void *  param 
)
static

+ Here is the caller graph for this function:

Bool ts_encode_video_frame ( GF_AbstractTSMuxer *  ts,
AVFrame *  encodedFrame,
uint8_t data,
int  encoded,
AVCodecContext *  videoCodecContext 
)

+ Here is the call graph for this function:

GF_AbstractTSMuxer* ts_amux_new ( GF_AVRedirect avr,
u32  videoBitrateInBitsPerSec,
u32  audioBitRateInBitsPerSec,
GF_Socket *  ts_output_udp_sk 
)

+ Here is the call graph for this function:

void ts_amux_del ( GF_AbstractTSMuxer *  ts)

+ Here is the call graph for this function: