ffmpeg视频格式转换
![FFMPEG](https://i-blog.csdnimg.cn/blog_migrate/c09c69fe3e1745963582ca0ebbdb575f.png)
Getting a video into the format you like can be important when providing media to your users on the web. Unfortunately your customer or video source may not give you media in the desired format. No problem: use the FFMPEG library to quickly and easily convert your media from and to any format you'd like.
在网络上向用户提供媒体时,将视频转换成您喜欢的格式可能很重要。 不幸的是,您的客户或视频来源可能无法为您提供所需格式的媒体。 没问题:使用FFMPEG库可快速轻松地将媒体与您想要的任何格式进行转换。
安装FFMPEG (Installing FFMPEG)
sudo port install ffmpegx
The above installs FFMPEG with MacPorts. The install process took quite a while because FFMPEG required that I upgrade quite a few packages. Be patient...it's worth it.
上面的程序在MacPorts上安装了FFMPEG。 安装过程花了很长时间,因为FFMPEG要求我升级很多软件包。 要有耐心...值得。
基本转换Shell脚本 (Basic Conversion Shell Script)
ffmpeg -i myVideo.mpeg myVideo.flv
This is a very basic conversion directive. Since Flash video has become the standard for embedding video, I've chosen to convert to the FLV format. If you want to control more of the conversion details, grab the documentation and experiment. I've installed FFMPEG on a few websites and used PHP to direct FFMPEG to dynamically generate videos.
这是一个非常基本的转换指令。 由于Flash视频已成为嵌入视频的标准,因此我选择转换为FLV格式。 如果您想控制更多的转换详细信息, 请阅读文档并进行实验。 我已经在一些网站上安装了FFMPEG,并使用PHP引导FFMPEG动态生成视频。
If you need to take control of your media, try FFMPEG. FFMPEG also has a GUI version if you prefer to avoid command line.
如果需要控制媒体,请尝试FFMPEG。 如果您不想使用命令行,则FFMPEG也具有GUI版本 。
ffmpeg视频格式转换