在 Linux CLI 上将常见视频格式转换为 FLV 的最佳工具是什么 [英] What is the best tool to convert common video formats to FLV on a Linux CLI

查看:24
本文介绍了在 Linux CLI 上将常见视频格式转换为 FLV 的最佳工具是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被指派从事的新产品的一部分涉及将常见"视频格式的服务器端转换为 Flash 可以播放的格式.

Part of a new product I have been assigned to work on involves server-side conversion of the 'common' video formats to something that Flash can play.

据我所知,我唯一的选择是转换为 FLV.我一直在尝试使用 ffmpeg,但我发现一些 WMV 文件出现乱码(我试过播放音频速率).

As far as I know, my only option is to convert to FLV. I have been giving ffmpeg a go around, but I'm finding a few WMV files that come out with garbled sound (I've tried playing with the audio rates).

还有其他适用于 Linux 的好"CLI 转换器吗?或者还有其他 Flash 可以播放的视频格式吗?

Are there any other 'good' CLI converters for Linux? Or are there other video formats that Flash can play?

推荐答案

Flash可以播放以下格式:

Flash can play the following formats:

FLV with AAC or MP3 audio, and FLV1 (Sorenson Spark H.263), VP6, or H.264 video.
MP4 with AAC or MP3 audio, and H.264 video (mp4s must be hinted with qt-faststart or mp4box).

ffmpeg 是一个整体不错的转换工具;mencoder 在处理晦涩和专有格式时效果更好(由于 w32codecs 二进制解码器包),但它的多路复用相当不理想(阅读:通常完全损坏).一种解决方案可能是通过mencoder用x264编码H.264,然后用mp4box单独复用.

ffmpeg is an overall good conversion utility; mencoder works better with obscure and proprietary formats (due to the w32codecs binary decoder package) but its muxing is rather suboptimal (read: often totally broken). One solution might be to encode H.264 with x264 through mencoder, and then mux separately with mp4box.

作为 x264 的开发者(以及在线视频播放 Flash 的狂热用户),我在这类东西方面有相当多的经验,所以如果你需要更多帮助,我也可以在 Freenode IRC 上获得#x264、#ffmpeg 和 #mplayer.

As a developer of x264 (and avid user of flash for online video playback), I've had quite a bit of experience in this kind of stuff, so if you want more assistance I'm also available on Freenode IRC on #x264, #ffmpeg, and #mplayer.

这篇关于在 Linux CLI 上将常见视频格式转换为 FLV 的最佳工具是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆