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… |
|
|