用cygwin 编译 Android 版的ffmpeg

参考博客: http://blog.csdn.net/huangxiansheng1980/article/details/5712003 


1. configure 的时候发现缺少yasm.exe 和 pkg-config.exe 

(1). 其中yasm.exe可以在网上下载现成的文件(在http://yasm.tortall.net/Download.html下载 cygwin版本的);

(2). 而pkg-config在网上没有找到现成的,看来要自己编译了,在http://pkgconfig.freedesktop.org/releases/ ,我下载的是pkg-config-0.23.tar.gz, 下载,解压缩,进入目录后执行 ./configure 进行配置,然后执行 make。然后在当前目录下生产pkg-config.exe。


   拷贝 yasm.exe 和 pkg-config.exe 到 cygwin的bin目录下。

2. 在ffmpeg的目录下再执行 ./configure  --enable-memalign-hack --disable-debug

    编译的时候 竟然出现library.mak:95: *** missing separator.  Stop.   哎,真是无语,在library.mak的95行在$后面加一个tab键就可以了。

    。。。。。

    编译终于开始了。





其实最后在cygwin上编译ffmpeg0.6.5通过还是通过以下两个朋友的博客。。。。

http://blog.sina.com.cn/s/blog_7a1896ee0100ppdp.html

http://www.cnblogs.com/scottwong/archive/2011/01/01/1909455.html



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Getting help: -h -- print basic options -h long -- print more options -h full -- print all options (including all format and codec specific options, very long) See man ffmpeg for detailed description of the options. Print help / information / capabilities: -L show license -h topic show help -? topic show help -help topic show help --help topic show help -version show version -buildconf show build configuration -formats show available formats -devices show available devices -codecs show available codecs -decoders show available decoders -encoders show available encoders -bsfs show available bit stream filters -protocols show available protocols -filters show available filters -pix_fmts show available pixel formats -layouts show standard channel layouts -sample_fmts show available audio sample formats -colors show available color names -sources device list sources of the input device -sinks device list sinks of the output device Global options (affect whole program instead of just one file: -loglevel loglevel set logging level -v loglevel set logging level -report generate a report -max_alloc bytes set maximum size of a single allocated block -y overwrite output files -n never overwrite output files -stats print progress report during encoding -max_error_rate ratio of errors (0.0: no errors, 1.0: 100% error maximum error rate -bits_per_raw_sample number set the number of bits per raw sample -vol volume change audio volume (256=normal) Per-file main options: -f fmt force format -c codec codec name -codec codec

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值