使用CodeBlocks和MSys搭建FFMPEG调试系统
2009-12-22 09:55
363 查看
SVN下载最新的代码
安装Msys对代码进行编译,编译参数configuration: --disable-optimizations --disable-ipv6 --enable-shared --disabl
e-static --enable-memalign-hack --disable-mmx
安装CodeBlocks 可以进行debug,设置断点到行
用source Insight读代码
分析D:/msys/1.0/home/bgfx63/trunk/tests 中的测试代码入手来分析ffmpeg,视频压缩和转换的结构。
两组D:/msys/1.0/home/bgfx63/trunk/tests/vsynth1 和 D:/msys/1.0/home/bgfx63/trunk/tests/vsynth2 原始图片是pgm格式的。是灰度图像格式:
PGM 是便携式灰度图像格式(portable graymap file format),在黑白超声图像系统中经常使用PGM格式的图像.文件的后缀名为".pgm",PGM格式图像格式分为两类:P2和P5类型.不管是P2还是P5类型的PGM文件,都由两部分组成,文件头部分和数据部分.
http://blog.csdn.net/gamer_gerald/archive/2007/06/17/1655756.aspx
开始自己编写ffplay:
gcc -DHAVE_AV_CONFIG_H -I. -I"/home/bgfx63/trunk" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -fno-common -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wundef -fno-math-errno -I/mingw/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -MMD -MF ffplay.d -MT ffplay.o -c -o tutorial01.o tutorial01.c
gcc -L"/home/bgfx63/trunk"/libavcodec -L"/home/bgfx63/trunk"/libavdevice -L"/home/bgfx63/trunk"/libavfilter -L"/home/bgfx63/trunk"/libavformat -L"/home/bgfx63/trunk"/libavutil -L"/home/bgfx63/trunk"/libpostproc -L"/home/bgfx63/trunk"/libswscale -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/home/bgfx63/trunk"/libpostproc -Wl,-rpath-link,"/home/bgfx63/trunk"/libswscale -Wl,-rpath-link,"/home/bgfx63/trunk"/libavfilter -Wl,-rpath-link,"/home/bgfx63/trunk"/libavdevice -Wl,-rpath-link,"/home/bgfx63/trunk"/libavformat -Wl,-rpath-link,"/home/bgfx63/trunk"/libavcodec -Wl,-rpath-link,"/home/bgfx63/trunk"/libavutil -Wl,-Bsymbolic -o tutorial01.exe tutorial01.o cmdutils.o -lavdevice -lavformat -lavcodec -lavutil -lswscale -lm -lws2_32 -lvfw32 -L/mingw/lib -lmingw32 -lSDLmain -lSDL -mwindows
安装Msys对代码进行编译,编译参数configuration: --disable-optimizations --disable-ipv6 --enable-shared --disabl
e-static --enable-memalign-hack --disable-mmx
安装CodeBlocks 可以进行debug,设置断点到行
用source Insight读代码
分析D:/msys/1.0/home/bgfx63/trunk/tests 中的测试代码入手来分析ffmpeg,视频压缩和转换的结构。
两组D:/msys/1.0/home/bgfx63/trunk/tests/vsynth1 和 D:/msys/1.0/home/bgfx63/trunk/tests/vsynth2 原始图片是pgm格式的。是灰度图像格式:
PGM 是便携式灰度图像格式(portable graymap file format),在黑白超声图像系统中经常使用PGM格式的图像.文件的后缀名为".pgm",PGM格式图像格式分为两类:P2和P5类型.不管是P2还是P5类型的PGM文件,都由两部分组成,文件头部分和数据部分.
http://blog.csdn.net/gamer_gerald/archive/2007/06/17/1655756.aspx
开始自己编写ffplay:
gcc -DHAVE_AV_CONFIG_H -I. -I"/home/bgfx63/trunk" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -fno-common -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wundef -fno-math-errno -I/mingw/include/SDL -D_GNU_SOURCE=1 -Dmain=SDL_main -MMD -MF ffplay.d -MT ffplay.o -c -o tutorial01.o tutorial01.c
gcc -L"/home/bgfx63/trunk"/libavcodec -L"/home/bgfx63/trunk"/libavdevice -L"/home/bgfx63/trunk"/libavfilter -L"/home/bgfx63/trunk"/libavformat -L"/home/bgfx63/trunk"/libavutil -L"/home/bgfx63/trunk"/libpostproc -L"/home/bgfx63/trunk"/libswscale -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/home/bgfx63/trunk"/libpostproc -Wl,-rpath-link,"/home/bgfx63/trunk"/libswscale -Wl,-rpath-link,"/home/bgfx63/trunk"/libavfilter -Wl,-rpath-link,"/home/bgfx63/trunk"/libavdevice -Wl,-rpath-link,"/home/bgfx63/trunk"/libavformat -Wl,-rpath-link,"/home/bgfx63/trunk"/libavcodec -Wl,-rpath-link,"/home/bgfx63/trunk"/libavutil -Wl,-Bsymbolic -o tutorial01.exe tutorial01.o cmdutils.o -lavdevice -lavformat -lavcodec -lavutil -lswscale -lm -lws2_32 -lvfw32 -L/mingw/lib -lmingw32 -lSDLmain -lSDL -mwindows
相关文章推荐
- 使用CodeBlocks和MSys搭建FFMPEG调试系统
- Windows 系统下使用 MinGW + MSYS + GCC 编译 FFMPEG
- Windows 系统下使用 MinGW + MSYS + GCC 编译 FFMPEG
- Windows系统使用minGW+msys 编译ffmpeg 0.5的全过程详述
- windows下使用MinGW+msys编译ffmpeg,以及如何加入eclipse CDT调试
- Windows系统使用minGW+msys 编译ffmpeg全过程
- Windows 系统下使用 MinGW + MSYS + GCC 编译 FFMPEG
- 使用ffmpeg搭建HLS直播系统
- Windows系统使用minGW+msys 编译ffmpeg 0.5的全过程详述
- Windows系统使用minGW+msys 编译ffmpeg 0.5的全过程详述
- Windows系统使用minGW+msys 编译ffmpeg 0.5的全过程详述
- 使用nginx搭建前端项目web服务器以及利用反向代理调试远程后台接口
- windows 下使用 MinGW + msys 编译 ffmpeg
- 在Centos 6.6环境使用系统自带的internal-sftp搭建SFTP服务器
- 直播系列4-使用nginx+nginx-rtmp-module+ffmpeg搭建流媒体服务器笔记(一)
- VPS上使用Ubuntu server 14.04系统搭建Gnome桌面并用VNC连接
- Windows下使用MinGW+msys编译ffmpeg-2.6.3,没生成ffplay.exe
- 在新建立的文件系统使用DNS及搭建ftp客服端
- FFmpeg在windows下的编译,搭建mingw+msys环境,含mingw+msys下载
- 搭建一个开发Predix软件的Ubuntu 系统(2)配置使用Predix工业云平台的基础环境