Files
videostreamer/videostreamer.h
Will Storey 7f16d84882 Initial import
This works for streaming mp4 from rtsp. But only to the first client as
it is unable to recognize discrete frames correctly. It needs further
work.
2016-12-31 13:12:45 -08:00

28 lines
502 B
C

#ifndef _VIDEOSTREAMER_H
#define _VIDEOSTREAMER_H
#include <libavformat/avformat.h>
#include <stdbool.h>
struct Videostreamer {
AVFormatContext * input_format_ctx;
AVFormatContext * output_format_ctx;
int video_stream_index;
};
void
vs_setup(void);
struct Videostreamer *
vs_open(const char * const, const char * const,
const char * const, const char * const,
const bool);
void
vs_destroy(struct Videostreamer * const);
int
vs_read_write(const struct Videostreamer *, const bool);
#endif