cygw ffmpeg一个完整调用
gcc sp.c -I ../SDL2-2.0.14/include -I ../ffmpeg-4.3.1/ -L /usr/local/lib -lSDL2main -lSDL2 -lavdevice -lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lm -lpthread -lsecur32 -lMFPlat -lbcrypt -lole32 -lStrmiids
/* * Copyright (c) 2003 Fabrice Bellard * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /** * @file * simple media player based on the FFmpeg libraries */ //#include "config.h" #include <inttypes.h> #include <math.h> #include <limits.h> #include <signal.h> #include <stdint.h> #include "libavformat/avformat.h" #include "libavdevice/avdevice.h" int main(int argc, char **argv) { /* register all codecs, demux and protocols */ #if CONFIG_AVDEVICE avdevice_register_all(); #endif avformat_network_init(); /* never returns */ return 0; }
https://blog.csdn.net/caishi8860/article/details/45056481
还是用bing搜到的,现在百度连bing都不如了。