libgpac
Documentation of the core library of GPAC
|
#include <gpac/internal/media_dev.h>
#include <gpac/constants.h>
#include <gpac/maths.h>
#include <gpac/filters.h>
#include <gpac/ietf.h>
#include <gpac/config_file.h>
#include <gpac/base_coding.h>
#include <gpac/rtp_streamer.h>
#include "out_rtp.h"
Data Structures | |
struct | GF_RTPOutCtx |
Macros | |
#define | M2TS_MIME_TYPES "video/mpeg-2|video/mp2t|video/mpeg" |
#define | M2TS_FILE_EXTS "ts|m2t|mts|dmb|trp" |
#define | OFFS(_n) #_n, offsetof(GF_RTPOutCtx, _n) |
Functions | |
GF_Err | rtpout_create_sdp (GF_List *streams, Bool is_rtsp, const char *ip, const char *info, const char *sess_name, const char *url, const char *email, u32 base_pid_id, FILE **sdp_tmp, u64 *session_id) |
static Bool | check_mime_ext (const char *string, const char *pattern) |
GF_Err | rtpout_init_streamer (GF_RTPOutStream *stream, const char *ipdest, Bool inject_xps, Bool use_mpeg4_signaling, Bool use_latm, u32 payt, u32 mtu, u32 ttl, const char *ifce, Bool is_rtsp, u32 *base_pid_id, const char *netcap_id) |
static GF_Err | rtpout_setup_sdp (GF_RTPOutCtx *ctx) |
static u16 | rtpout_check_next_port (GF_RTPOutCtx *ctx, u16 first_port) |
void | rtpout_del_stream (GF_RTPOutStream *st) |
static GF_Err | rtpout_configure_pid (GF_Filter *filter, GF_FilterPid *pid, Bool is_remove) |
static GF_Err | rtpout_initialize (GF_Filter *filter) |
static void | rtpout_finalize (GF_Filter *filter) |
static GF_Err | rtpout_send_xps (GF_RTPOutStream *stream, GF_List *pslist, Bool *au_start, u32 pck_size, u32 cts, u32 dts, u32 duration) |
static Bool | rtpout_init_clock (GF_RTPOutCtx *ctx) |
static void | rtpout_process_rtcp (void *cbk, u32 ssrc, u32 rtt_ms, u64 jitter_rtp_ts, u32 loss_rate) |
GF_Err | rtpout_process_rtp (GF_List *streams, GF_RTPOutStream **active_stream, Bool loop, s32 delay, u32 *active_stream_idx, u64 sys_clock_at_init, u64 *active_min_ts_microsec, u64 microsec_ts_init, Bool *wait_for_loop, u32 *repost_delay_us, Bool *first_RTCP_sent, u32 base_pid_id) |
static GF_Err | rtpout_process (GF_Filter *filter) |
static GF_FilterProbeScore | rtpout_probe_url (const char *url, const char *mime) |
const GF_FilterRegister * | rtpout_register (GF_FilterSession *session) |
Variables | |
static const GF_FilterCapability | RTPOutCaps [] |
static const GF_FilterArgs | RTPOutArgs [] |
GF_FilterRegister | RTPOutRegister |
struct GF_RTPOutCtx |
Data Fields | ||
---|---|---|
char * | ip | |
char * | dst | |
char * | ext | |
char * | mime | |
u32 | port | |
Bool | loop | |
Bool | xps | |
Bool | mpeg4 | |
u32 | mtu | |
u32 | ttl | |
char * | ifce | |
u32 | payt | |
u32 | tt | |
s32 | delay | |
char * | info | |
char * | url | |
char * | ||
s32 | runfor | |
s32 | tso | |
Bool | latm | |
Double | start | |
Double | speed | |
u64 | sys_clock_at_init | |
GF_List * | streams | |
u32 | base_pid_id | |
Bool | first_RTCP_sent | |
GF_RTPOutStream * | active_stream | |
u32 | active_stream_idx | |
u64 | active_min_ts_microsec | |
GF_FilterPid * | opid | |
Bool | wait_for_loop | |
u64 | microsec_ts_init | |
GF_FilterCapability | in_caps[3] | |
char | szExt[10] |
#define M2TS_MIME_TYPES "video/mpeg-2|video/mp2t|video/mpeg" |
#define M2TS_FILE_EXTS "ts|m2t|mts|dmb|trp" |
#define OFFS | ( | _n | ) | #_n, offsetof(GF_RTPOutCtx, _n) |
GF_Err rtpout_create_sdp | ( | GF_List * | streams, |
Bool | is_rtsp, | ||
const char * | ip, | ||
const char * | info, | ||
const char * | sess_name, | ||
const char * | url, | ||
const char * | email, | ||
u32 | base_pid_id, | ||
FILE ** | sdp_tmp, | ||
u64 * | session_id | ||
) |
|
static |
GF_Err rtpout_init_streamer | ( | GF_RTPOutStream * | stream, |
const char * | ipdest, | ||
Bool | inject_xps, | ||
Bool | use_mpeg4_signaling, | ||
Bool | use_latm, | ||
u32 | payt, | ||
u32 | mtu, | ||
u32 | ttl, | ||
const char * | ifce, | ||
Bool | is_rtsp, | ||
u32 * | base_pid_id, | ||
const char * | netcap_id | ||
) |
|
static |
|
static |
void rtpout_del_stream | ( | GF_RTPOutStream * | st | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
GF_Err rtpout_process_rtp | ( | GF_List * | streams, |
GF_RTPOutStream ** | active_stream, | ||
Bool | loop, | ||
s32 | delay, | ||
u32 * | active_stream_idx, | ||
u64 | sys_clock_at_init, | ||
u64 * | active_min_ts_microsec, | ||
u64 | microsec_ts_init, | ||
Bool * | wait_for_loop, | ||
u32 * | repost_delay_us, | ||
Bool * | first_RTCP_sent, | ||
u32 | base_pid_id | ||
) |
|
static |
|
static |
const GF_FilterRegister* rtpout_register | ( | GF_FilterSession * | session | ) |
|
static |
|
static |
GF_FilterRegister RTPOutRegister |