ffmpeg视频格式转换_使用FFMPEG转换视频格式

ffmpeg视频格式转换

FFMPEG

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版本

翻译自: https://davidwalsh.name/convert-video-ffmpeg

ffmpeg视频格式转换

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值