本站首页    管理页面    写新日志    退出


«October 2025»
1234
567891011
12131415161718
19202122232425
262728293031


公告
 本博客在此声明所有文章均为转摘,只做资料收集使用。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:
日志总数:1304
评论数量:2242
留言数量:5
访问次数:7633288
建立时间:2006年5月29日




[视频处理]让ffmpeg支持wmv9的补丁
软件技术

lhwork 发表于 2007/2/5 20:30:41

Hooking Up The SMPTE VC-1 Decoder In FFmpeg Filed under: Open Source Multimedia — Multimedia Mike @ 5:22 pm Some people have asked me for my code to make the SMPTE VC-1 reference decoder work with FFmpeg, slow though it may be. I suppose I could make a patch. But the official version of FFmpeg is whatever happens to be in CVS at the current moment. So any patch I could produce would work for maybe a day. So get ready to do a little editing on your local FFmpeg CVS tree. The steps: procure the VC1_reference_decoder_release6.zip file from the main site and unzip the tree somewherehave a copy of FFmpeg’s CVS tree handy; the rest of these instructions will assume that you are sitting in the root of the FFmpeg treecreate a directory called libavcodec/libvc1copy all of the *.c and *.h files from VC1_reference_decoder_release6/decoder/ into libavcodec/libvc1/copy all of the *.c and *.h files from VC1_reference_decoder_release6/shared/ into libavcodec/libvc1/place the libvc1-makefile.txt into libavcodec/libvc1/Makefilechange directory into libavcodec/libvc1 and type ‘make’change directory back to the FFmpeg rootplace the smpte-vc1.c file into libavcodec/edit libavcodec/vc9.c, go the very end of the file, and add #if 0/#endif around the wmv3_decoder AVCodec structure; this will keep it from conflicting with the new SMPTE WMV3 decoder edit libavcodec/Makefile and add smpte-vc1.o to the end of the OBJS listedit the top-level Makefile and add “-L./libavcodec/libvc1 -lvc1″ (without the quotes) to FFLIBSrun ‘./configure’ at the top level if you have not already done so for this treerun ‘make’ at the top level Now, there’s also a magic step 12.5 that I had to do, which was edit the libavcodec/allcodecs.c and uncomment the section about wmv3. If you don’t, the wmv3 support won’t get compiled and this will all be for naught! Big thanks to merbanan on #ffmpeg (irc.freenode.net) for assistance with getting this going! I’ve also linked the reference decoder zip file locally if you can’t find it anymore…


阅读全文(3633) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 1.285 second(s), page refreshed 144817781 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号