Linux 如何将各种视频文件格式转换为 FLV(用于 FlowPlayer)?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3677132/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-03 23:17:31  来源:igfitidea点击:

How to convert various video file formats into FLV (for FlowPlayer)?

videoffmpegvideo-encodingflowplayermencoder

提问by argvargc

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/).

我们需要允许我们的用户上传视频文件(自然会有各种不同的格式),并将它们全部转换为 FLV,以便可以使用 FlowPlayer ( http://flowplayer.org/)进行流式传输。

What would be better FFmpeg or mencoder? And what should be the appropriate commands / arguments for the various steps.

FFmpeg 或 mencoder 哪个更好?以及各个步骤的适当命令/参数应该是什么。

I've had a look at:
hxxp://flowplayer.org/tutorials/mencoder.html

我看过:
hxxp://flowplayer.org/tutorials/mencoder.html

and:
hxxp://flowplayer.org/tutorials/ffmpeg.html

和:
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

但是我们一直无法弄清楚如何在不进入“试错”区域的情况下进行“通用”转换。我不需要将“编码为”某个固定比特率/等,我只想将其转换为 FLV,以便它可以在 FlowPlayer 上播放

回答by tzmatt7447

Have you tried looking at other questions on the site? Video Convert to flvand Programmatically convert a video to FLVfor instance?

您是否尝试过查看网站上的其他问题?例如,视频转换为 flv并以编程方式将视频转换为 FLV

回答by wonea

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.

我个人发现 FFmpeg 命令行有点冗长和复杂。一些示例博客进入 FFmpeg 各种命令行开关也没什么帮助。

However, there's a great front-end for FFmpeg called WinFFwhich 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

但是,FFmpeg 有一个很棒的前端,称为WinFF,它使转码变得轻松,只需放入要转换的文件并单击输出文件夹和质量设置即可。我个人将所有内容编码为 mp4,然后使用 flowplayer 直接播放,因为如果本机浏览器不支持 h.264,这将回退到 flash。 iOS 支持

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

为完整起见,WinFF 还包括一个显示命令行的选项,如果您想了解正在使用的开关,这很方便。转到主窗口并选择选项 -> 显示 CMD 行