mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
FS-7983 Added param for specifying video encoding speed
With this patch, the param vencspd can be set to slow, medium, or fast to adjust the speed of video encoding on a per file basis. Currently, this only has an affect on files recorded using mod_av with H.264 as the video codec.
This commit is contained in:
@@ -298,6 +298,13 @@ struct switch_file_interface {
|
||||
struct switch_file_interface *next;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
SWITCH_VIDEO_ENCODE_SPEED_DEFAULT;
|
||||
SWITCH_VIDEO_ENCODE_SPEED_SLOW,
|
||||
SWITCH_VIDEO_ENCODE_SPEED_MEDIUM,
|
||||
SWITCH_VIDEO_ENCODE_SPEED_FAST
|
||||
} switch_video_encode_speed_t;
|
||||
|
||||
typedef struct switch_mm_s {
|
||||
int samplerate;
|
||||
int channels;
|
||||
@@ -308,6 +315,7 @@ typedef struct switch_mm_s {
|
||||
int vh;
|
||||
float fps;
|
||||
int vbuf;
|
||||
switch_video_encode_speed_t vencspd;
|
||||
} switch_mm_t;
|
||||
|
||||
/*! an abstract representation of a file handle (some parameters based on compat with libsndfile) */
|
||||
|
||||
Reference in New Issue
Block a user