在网站上播放flv
我的客户想要在他们的网站上播放 Flash 视频。 只是为了确保我理解正确,我需要: 1.创建FLV文件 2. 使用一些 flv 播放器或将 flv 包含在 swf
问题中: 1. 播放器选项 - 访问者必须下载/安装它还是仅在网站本身安装一次?您可以推荐任何可以确保跨浏览器兼容性的免费播放器吗?
swf 选项:我是否需要 flash 应用程序才能进行包装?
我以后可以使用 flashobject 库之类的东西来进行实际嵌入吗?
如果确实是这些选项,那么在这两个选项之间进行选择的主要考虑因素是什么?
任何帮助将不胜感激。祝你有美好的一天,让我们为今天的很多目标祈祷:-)
my client wants to play a flash video in their website.
just to make sure i understand correctly, i need to:
1. create an FLV file
2. use either some flv player or wrap the flv inside swf
questions:
1. the player option - will visitor have to download /install it or is it install only once, in the website itself? any FREE player you can recommend the will ensure cross browser compatibility?
swf option: will i need the flash application in order to do the wrapping?
will i be able to later use something like flashobject library for the actual embedding?
what are the main considerations for choosing between the two options , if indeed these are the options?
any help would be highly appreciated. have a nice day and let's pray for a lot of goals today :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 FFMpeg。这非常简单:
ffmpeg -i input.avi output.flv
我使用 FlowPlayer 取得了成功。
Use FFMpeg. It's seriously extremely simple:
ffmpeg -i input.avi output.flv
I've had success using FlowPlayer.
为了传送 Flash 视频,需要在以下容器之一中对音频和视频进行编码
实现
是的,您需要一些包装 FLV 播放器来播放该文件。
如果您有 Dreamweaver CS3/CS4,则有一个选项允许播放 FlvPlayer.swf(播放器的类型取决于您希望如何下载)。为此选项选择“插入”->“媒体”->“Flash 视频”。
[确保取消选择“必要时提示用户下载 Flash Player”选项]。
如果您没有软件,有许多开源解决方案,其中最流行的是 Flowplayer(使用 RTMP 或 HTTP 流),它是一个开源 (GPL 3) 视频播放器。它是免费的,但 Flowplayer 商标出现在播放器上,需要商业许可才能删除。
在你的情况下,这样做的优点是
视频文件可以是任何格式(mpg、avi、wmv、mov),网络设置将负责转换。
关于 Flash 插件、下载和兼容性,Mark Pilgrim (Dive into HTML5) 谈到了以下内容视频工作流程,确保跨浏览器的最大兼容性
Ogg 中的视频和 Vorbis 音频
容器。
(VP8 + 沃比斯)。
基线视频和 AAC“低
MP4 中的复杂性”音频
容器。
单一元素,并下降
回到基于 Flash 的视频播放器。
您需要检查Mark 的网站以获取编码命令,并放置
AddType
ogg 格式等配置文件的处理程序。下面讨论您是要自己部署视频还是在 Flash CS3 中自定义视频。
下载
这取决于您想要使用的传输格式,无论是渐进式还是流式传输。
渐进式下载表示视频将下载到硬盘上。甚至可以在下载完成之前开始播放视频。
流式传输意味着发生缓冲,以便一次下载少量数据。要使用此选项,需要 Flash 视频流服务。
祝你的目标好运。
In order to deliver flash video one needs to encode the audio and video in one of the following containers
Implementing
Yes you need some some of wrapping FLV Player to play back the file.
If you have Dreamweaver CS3/CS4 there is an option that allows a playback to a FlvPlayer.swf (The type of player depends on how you want it to be downloaded). Select Insert->Media->Flash Video for this option.
[Make sure to Deselect the Prompt Users to Download Flash Player If Necessary option].
If you do not have software, there are many open source solutions with the most popular being Flowplayer (uses RTMP or HTTP Streaming) which is an Open Source (GPL 3) video player. It is free but the Flowplayer trademark appears on the player needing a commercial license to be removed.
The pros for this in your case are
The video file can be in any format (mpg,avi,wmv,mov) and the web setup will take care of conversion.
In terms of flash plugins, downloads and compatablity, Mark Pilgrim (Dive into HTML5) has talked about the following video workflow to ensure maximum compatablity across browsers
video and Vorbis audio in an Ogg
container.
(VP8 + Vorbis).
baseline video and AAC “low
complexity” audio in an MP4
container.
single element, and fall
back to a Flash-based video player.
You will need to check Mark's site for encoding commands and as well placing
AddType
handlers to your config files for the ogg formats and so forth.The following talks about if you are going to deploy the video yourself or customize it in Flash CS3.
Downloading
This depends on what delivery format you want to use whether it be progressive or streaming.
Progressive download means the video will be download to the hard drive. It is possible to start playing the video even before it finishes to download.
Streaming means that buffering occurs such that there are small amounts of data downloaded at a time. To use this option a Flash Video Streaming Service is needed.
Good luck with your goals.
我正在使用 http://www.platipus.nl/flvplayer/download/1.0/
这对我来说很完美。
修改很简单:
我使用的是旧版本,也许最近的版本有更多选项。
阿曼欢呼。
I am using http://www.platipus.nl/flvplayer/download/1.0/
this works perfect for me.
The emending is pretty simple:
I am using an older version, maybe the recent one has a more options.
cheers Arman.