Skip to content

Instantly share code, notes, and snippets.

@NodeBoy2
NodeBoy2 / complex_filter_example
Created January 15, 2020 03:57
FFmpeg 多输入视频滤波器
extern "C"
{
#include <libavformat/avformat.h>
#include <libavfilter/avfilter.h>
#include <libavutil/opt.h>
#include <libavutil/pixfmt.h>
#include <libavfilter/buffersrc.h>
#include <libavfilter/buffersink.h>
}
#include <iostream>
@NodeBoy2
NodeBoy2 / simple_filter_example
Created January 15, 2020 03:56
FFmpeg 单输入视频滤波器
extern "C"
{
#include <libavformat/avformat.h>
#include <libavfilter/avfilter.h>
#include <libavutil/opt.h>
#include <libavutil/pixfmt.h>
#include <libavfilter/buffersrc.h>
#include <libavfilter/buffersink.h>
}
#include <iostream>
@NodeBoy2
NodeBoy2 / transcoder_example
Created January 15, 2020 02:51
FFmpeg 视频转码示例
extern "C"
{
#include <libavformat/avformat.h>
}
#include <iostream>
#include <string>
#include <memory>
#include <thread>
std::string strInput = "/Users/fengyifan/Desktop/videos/3001.flv";
std::string strOutFmt = "flv";
@NodeBoy2
NodeBoy2 / remuxer_example
Last active January 15, 2020 02:49
FFmpeg 视频格式转换示例
extern "C"
{
#include <libavformat/avformat.h>
}
#include <iostream>
#include <string>
#include <memory>
#include <thread>
std::string strInput = "/Users/fengyifan/Desktop/videos/3001.flv";
std::string strOutFmt = "flv";