mirror of
https://github.com/livepeer/lpms
synced 2026-04-22 15:57:25 +08:00
24 lines
746 B
C
24 lines
746 B
C
#ifndef _LPMS_EXTRAS_H_
|
|
#define _LPMS_EXTRAS_H_
|
|
|
|
typedef struct s_codec_info {
|
|
char * format_name;
|
|
char * video_codec;
|
|
char * audio_codec;
|
|
int audio_bit_rate;
|
|
int pixel_format;
|
|
int width;
|
|
int height;
|
|
double fps;
|
|
double dur;
|
|
} codec_info, *pcodec_info;
|
|
|
|
int lpms_rtmp2hls(char *listen, char *outf, char *ts_tmpl, char *seg_time, char *seg_start);
|
|
int lpms_get_codec_info(char *fname, pcodec_info out);
|
|
int lpms_compare_sign_bypath(char *signpath1, char *signpath2);
|
|
int lpms_compare_sign_bybuffer(void *buffer1, int len1, void *buffer2, int len2);
|
|
int lpms_compare_video_bypath(char *vpath1, char *vpath2);
|
|
int lpms_compare_video_bybuffer(void *buffer1, int len1, void *buffer2, int len2);
|
|
|
|
#endif // _LPMS_EXTRAS_H_
|