如何将各种视频文件格式转换为FLV(适用于FlowPlayer)?
我们需要允许用户上传视频文件(自然会采用各种不同的格式),并将它们全部转换为 FLV,以便可以使用 FlowPlayer 进行流式传输(http://flowplayer.org/)。
FFmpeg 和 mencoder 哪个更好?各个步骤的适当命令/参数应该是什么。
我看过:
hxxp://flowplayer.org/tutorials/mencoder.html
和:
hxxp://flowplayer.org/tutorials/ffmpeg.html
但我们无法弄清楚如何在不进入“试错”区域的情况下进行“通用”转换。我不需要将其编码为某个固定比特率等,我只是想将其转换为 FLV,以便它可以在 FlowPlayer 上播放
We need to allow our users to upload video files (which will be in various different formats naturally), and convert them all into FLV so it can be streamed using FlowPlayer (http://flowplayer.org/).
What would be better FFmpeg or mencoder? And what should be the appropriate commands / arguments for the various steps.
I've had a look at:
hxxp://flowplayer.org/tutorials/mencoder.html
and:
hxxp://flowplayer.org/tutorials/ffmpeg.html
But we havent been able to figure out how to make a "generic" conversion without getting into the "trial-and-error" zone. I dont need to encode "into" a certain fixed bitrate/etc, I just want to get it converted into FLV so it can play on FlowPlayer
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过查看网站上的其他问题? 视频转换为 flv 和 例如,以编程方式将视频转换为 FLV?
Have you tried looking at other questions on the site? Video Convert to flv and Programmatically convert a video to FLV for instance?
我个人发现 FFmpeg 命令行有点冗长和复杂。一些涉及 FFmpeg 的示例博客中的各种命令行开关也没有什么帮助。
然而,FFmpeg 有一个很棒的前端,名为 WinFF,它使转码变得轻松,只需放入您想要的文件即可。想要转换并单击输出文件夹,然后进行质量设置。就我个人而言,我将所有内容编码为 mp4,然后使用 flowplayer 直接播放,因为如果本机浏览器不支持 h.264,这将回退到 flash。 iOS 支持
为了完整起见,WinFF 还包含一个显示命令行的选项,如果您想构建的话,这会很方便了解正在使用哪些开关。转到主窗口并选择选项 ->显示命令线
Personally I've found the FFmpeg command line a little verbose and complicated. Some of the example blogs going into FFmpeg various command line switches of little help either.
However, there's a great front-end for FFmpeg called WinFF which makes the transcoding painless, just drop in the files you want to convert and click the output folder, and quality setting. Personally I encode everything to mp4 then use flowplayer to play that directly, as this will fall back to flash if native browser support for h.264 isn't available. iOS Support
For completeness sake WinFF also includes an option to display the command line, handy if you want to build to know what switches are being used. Go to the main window and select Options -> Display CMD Line