mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
FS-7503 FS-7514: First crack at recording mp4 <action application="capture_video" data="vlc://#transcode{vcodec=h264,acodec=mp3}:std{access=file,mux=mp4,dst=/var/www/sounds/file.mp4}"/>
This commit is contained in:
committed by
Michael Jerris
parent
c59874cbff
commit
4bcc6e6d64
@@ -324,6 +324,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_read_lock_unlock(switch_core_s
|
||||
|
||||
SWITCH_DECLARE(void) switch_core_session_stop_media(switch_core_session_t *session);
|
||||
SWITCH_DECLARE(switch_media_flow_t) switch_core_session_media_flow(switch_core_session_t *session, switch_media_type_t type);
|
||||
SWITCH_DECLARE(switch_status_t) switch_core_media_get_vid_params(switch_core_session_t *session, switch_vid_params_t *vid_params);
|
||||
|
||||
SWITCH_END_EXTERN_C
|
||||
#endif
|
||||
|
||||
@@ -78,6 +78,9 @@ typedef struct switch_image_rect {
|
||||
unsigned int h; /**< height */
|
||||
} switch_image_rect_t;
|
||||
|
||||
typedef enum {
|
||||
SWITCH_CONVERT_FMT_YUYV = 0
|
||||
} switch_convert_fmt_t;
|
||||
|
||||
/*!\brief Open a descriptor, allocating storage for the underlying image
|
||||
*
|
||||
@@ -222,6 +225,7 @@ SWITCH_DECLARE(switch_status_t) switch_img_scale(switch_image_t *src, switch_ima
|
||||
SWITCH_DECLARE(switch_status_t) switch_img_fit(switch_image_t **srcP, int width, int height);
|
||||
SWITCH_DECLARE(switch_img_position_t) parse_img_position(const char *name);
|
||||
SWITCH_DECLARE(void) switch_img_find_position(switch_img_position_t pos, int sw, int sh, int iw, int ih, int *xP, int *yP);
|
||||
SWITCH_DECLARE(switch_status_t) switch_img_convert(switch_image_t *src, switch_convert_fmt_t fmt, void *dest, switch_size_t *size);
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -1465,11 +1465,18 @@ typedef enum {
|
||||
CF_VIDEO_DEBUG_READ,
|
||||
CF_VIDEO_DEBUG_WRITE,
|
||||
CF_VIDEO_ONLY,
|
||||
CF_VIDEO_READY,
|
||||
/* WARNING: DO NOT ADD ANY FLAGS BELOW THIS LINE */
|
||||
/* IF YOU ADD NEW ONES CHECK IF THEY SHOULD PERSIST OR ZERO THEM IN switch_core_session.c switch_core_session_request_xml() */
|
||||
CF_FLAG_MAX
|
||||
} switch_channel_flag_t;
|
||||
|
||||
typedef struct switch_vid_params_s {
|
||||
int width;
|
||||
int height;
|
||||
} switch_vid_params_t;
|
||||
|
||||
|
||||
|
||||
typedef enum {
|
||||
CF_APP_TAGGED = (1 << 0),
|
||||
|
||||
Reference in New Issue
Block a user