【Android】学习记录<1> -- 初识ffmpeg

深入学习FFmpeg在Android软编码的应用
本文详细介绍了FFmpeg作为多媒体框架的强大能力,包括视频格式转换、转码、剪切、拼接等核心功能,并指导如何在Mac OS X环境中安装及基本使用方法。

  工作需要用到ffmpeg来进行Android的软编码,对这玩意儿一点都不了解,做个学习记录先。

FFmpeg:http://www.ffmpeg.org

Fmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATEacross Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations.

当前我使用ffmpeg的目的:

 - 视频格式转换;

 - 视频转码(降低码率或者修改分辨率);

 - 视频剪切;

 - 视频拼接;

FFmpeg安装步骤:

1.根据自己所需环境下载(这里使用的是OS X);

 

 

 

 

 

 

 

 

2.在Mac上大家还可以使用Homebrew下载:

- Homebrew官网:http://brew.sh/ (官网其实写的很明确了,如果还有疑问的朋友可以再看看别的帖子)

- 安装完后使用Homebrew的命令安装ffmpeg:

➜  ~  brew install ffmpeg

3.ffmpeg简单使用方法(常用命令)在官网http://www.ffmpeg.org的Document中都有详细介绍:http://www.ffmpeg.org/ffmpeg.html

$ ffmpeg -i input.mp4 output.avi

 例如要将Video进行分辨率的转换:

 
  
$ ffmpeg -i input.mp4 -s 1280x720 output.mp4

  

 

转载于:https://www.cnblogs.com/raomengyang/p/5021183.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值