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:
Bradley Jokinen
2015-08-25 09:02:53 -05:00
parent 514cfbd9f5
commit 723e8a1f9a
3 changed files with 35 additions and 0 deletions
+8
View File
@@ -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) */