ffmpeg support on linux, and check compiled vs. runtime versions of ffmpeg
This commit is contained in:
@@ -4,6 +4,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavutil/avutil.h>
|
||||
#include <libavutil/channel_layout.h>
|
||||
#include <libavutil/samplefmt.h>
|
||||
#include <libswresample/swresample.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#define fprintf fprintf_s
|
||||
#endif
|
||||
@@ -97,6 +104,11 @@ int main(int argc, char **argv)
|
||||
infile = argv[1];
|
||||
outfile = argv[2];
|
||||
|
||||
fprintf(stderr, "ffmpeg compiled version: %s\n", fmpg_ffmpeg_version());
|
||||
fprintf(stderr, "ffmpeg runtime version avformat: %d - %s\n", avformat_version(), fmpg_int_version2string(avformat_version()));
|
||||
|
||||
//fprintf(stderr, "ffmpeg runtme config string: %s\n", avformat_configuration());
|
||||
|
||||
fmpg = fmpg_init();
|
||||
if (!fmpg) {
|
||||
fprintf(stderr, "fmpg_init failed\n");
|
||||
|
||||
Reference in New Issue
Block a user