【Android】学习记录<1> -- 初识ffmpeg
2015-12-05 10:58
555 查看
工作需要用到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:
3.ffmpeg简单使用方法(常用命令)在官网[b]http://www.ffmpeg.org的Document中都有详细介绍:http://www.ffmpeg.org/ffmpeg.html[/b]
例如要将Video进行分辨率的转换:
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简单使用方法(常用命令)在官网[b]http://www.ffmpeg.org的Document中都有详细介绍:http://www.ffmpeg.org/ffmpeg.html[/b]
$ ffmpeg -i input.mp4 output.avi
例如要将Video进行分辨率的转换:
$ ffmpeg -i input.mp4 -s 1280x720 output.mp4
相关文章推荐
- Android Studio目录结构
- android(17)(查询和添加联系人)
- Android API- Notification(通知)的简单使用
- 浅谈Android视图动画中的坐标系问题
- Android开发的菜鸟小记
- Android:Activity之间跳转和参数传递
- android(16)(短信的备份,xml的序列化)
- 如何防止使用singleInstance的activity返回时拉起其他应用的问题
- caused by android.system.errnoexception open failed eacces (permission denied)解决方案,安卓6.0(API23)权限问题
- Android自定义Toast取代系统的Toast
- Android自定义控件
- android(15)(ContentProvider内容提供者)
- Android 开发中的遇到的一些细节问题总结
- android camera HAL v3.0详细介绍(一)
- android MotionEvent中getX()和getRawX()的区别
- android获得控件在屏幕中的绝对坐标 getLocationInWindow 和 getLocationOnScreen
- Android动画不改变可见属性
- 如何关闭android studio开发环境自动保存
- android camera HAL v3.0详细介绍(二)
- Android Studio简单设置