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.
This commit is contained in:
Will Storey
2016-12-31 13:12:45 -08:00
commit 7f16d84882
7 changed files with 1758 additions and 0 deletions

27
videostreamer.h Normal file
View File

@@ -0,0 +1,27 @@
#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