= {
.name = "restamp",
GF_FS_SET_HELP(
"This filter rewrites timing (offsets and rate) of packets.\n"
"\n"
"The delays (global or per stream class) can be either positive (stream presented later) or negative (stream presented sooner).\n"
"\n"
"The specified [-fps]() can be either 0, positive or negative.\n"
"- if 0 or if the stream is audio, stream rate is not modified.\n"
"- otherwise if negative, stream rate is multiplied by `-fps.num/fps.den`.\n"
"- otherwise if positive and the stream is not video, stream rate is not modified.\n"
"- otherwise (video PID), constant frame rate is assumed and:\n"
" - if [-rawv=no](), video frame rate is changed to the specified rate (speed-up or slow-down).\n"
" - if [-rawv=force](), input video stream is decoded and video frames are dropped/copied to match the new rate.\n"
" - if [-rawv=dyn](), input video stream is decoded if not all-intra and video frames are dropped/copied to match the new rate.\n"
"\n"
"Note: frames are simply copied or dropped with no motion compensation.\n"
)
.max_extra_pids = 0xFFFFFFFF,
}
#define GF_FS_SET_HELP(_help)
Definition filters.h:2152
#define SETCAPS(__struct)
Definition filters.h:2144
@ GF_FS_REG_ALLOW_CYCLIC
Definition filters.h:2180
@ GF_FS_REG_EXPLICIT_ONLY
Definition filters.h:2173
@ GF_FS_REG_TEMP_INIT
Definition filters.h:2202
attribute Array args
Definition jsf.idl:24
static GF_Err restamp_configure_pid(GF_Filter *filter, GF_FilterPid *pid, Bool is_remove)
Definition restamp.c:68
static void restamp_finalize(GF_Filter *filter)
Definition restamp.c:478
static GF_Err restamp_update_arg(GF_Filter *filter, const char *arg_name, const GF_PropertyValue *new_val)
Definition restamp.c:440
static GF_FilterArgs RestampArgs[]
Definition restamp.c:490
static GF_Err restamp_process(GF_Filter *filter)
Definition restamp.c:337
static GF_Err restamp_initialize(GF_Filter *filter)
Definition restamp.c:460
static const GF_FilterCapability RestampCaps[]
Definition restamp.c:507