在网站上播放flv

发布于 2024-09-05 17:20:45 字数 384 浏览 5 评论 0原文

我的客户想要在他们的网站上播放 Flash 视频。 只是为了确保我理解正确,我需要: 1.创建FLV文件 2. 使用一些 flv 播放器或将 flv 包含在 swf

问题中: 1. 播放器选项 - 访问者必须下载/安装它还是仅在网站本身安装一次?您可以推荐任何可以确保跨浏览器兼容性的免费播放器吗?

  1. swf 选项:我是否需要 flash 应用程序才能进行包装?

  2. 我以后可以使用 flashobject 库之类的东西来进行实际嵌入吗?

  3. 如果确实是这些选项,那么在这两个选项之间进行选择的主要考虑因素是什么?

任何帮助将不胜感激。祝你有美好的一天,让我们为今天的很多目标祈祷:-)

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?

  1. swf option: will i need the flash application in order to do the wrapping?

  2. will i be able to later use something like flashobject library for the actual embedding?

  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

Bonjour°[大白 2024-09-12 17:20:45

1.创建 FLV 文件

使用 FFMpeg。这非常简单:ffmpeg -i input.avi output.flv

2.使用一些 flv 播放器或将 flv 包装在 swf 中

我使用 FlowPlayer 取得了成功。

1 . create an FLV file

Use FFMpeg. It's seriously extremely simple: ffmpeg -i input.avi output.flv

2 . use either some flv player or wrap the flv inside swf

I've had success using FlowPlayer.

可遇━不可求 2024-09-12 17:20:45

为了传送 Flash 视频,需要在以下容器之一中对音频和视频进行编码

  • Adob​​e Flash Video (FLV)
  • Adob​​e Flash Video 2.0 (F4V) [使用 Flash Player 9.0.r115 及更高版本的 H.264 编解码器]

实现

是的,您需要一些包装 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) 谈到了以下内容视频工作流程,确保跨浏览器的最大兼容性

  1. 制作一个使用 Theora 的版本
    Ogg 中的视频和 Vorbis 音频
    容器。
  2. 制作另一个使用 WebM 的版本
    (VP8 + 沃比斯)。
  3. 制作另一个使用 H.264 的版本
    基线视频和 AAC“低
    MP4 中的复杂性”音频
    容器。
  4. 链接到所有三个视频文件
    单一元素,并下降
    回到基于 Flash 的视频播放器。

<video id="movie" width="320" height="240" preload controls>
<source src="mymovie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
  <source src="mymovie.webm" type='video/webm; codecs="vp8, vorbis"' />
  <source src="mymovie.ogv" type='video/ogg; codecs="theora, vorbis"' />
  <object width="320" height="240" type="application/x-shockwave-flash" data="flowplayer-3.2.1.swf"> 
    <param name="movie" value="flowplayer-3.2.1.swf" /> 
    <param name="allowfullscreen" value="true" /> 
    <param name="flashvars" value='config={"clip": {"url": "http://wearehugh.com/dih5/good/bbb_480p.mp4", "autoPlay":false, "autoBuffering":true}}' /> 
    <p>Download video as <a href="mymovie.mp4">MP4</a>, <a href="mymovie.webm">WebM</a>, or <a href="mymovie.ogv">Ogg</a>.</p> 
  </object>
</video>

您需要检查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

  • Adobe Flash Video (FLV)
  • Adobe Flash Video 2.0 (F4V) [H.264 codec with Flash Player 9.0.r115 and later]

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

  1. Make one version that uses Theora
    video and Vorbis audio in an Ogg
    container.
  2. Make another version that uses WebM
    (VP8 + Vorbis).
  3. Make another version that uses H.264
    baseline video and AAC “low
    complexity” audio in an MP4
    container.
  4. Link to all three video files from a
    single element, and fall
    back to a Flash-based video player.

<video id="movie" width="320" height="240" preload controls>
<source src="mymovie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
  <source src="mymovie.webm" type='video/webm; codecs="vp8, vorbis"' />
  <source src="mymovie.ogv" type='video/ogg; codecs="theora, vorbis"' />
  <object width="320" height="240" type="application/x-shockwave-flash" data="flowplayer-3.2.1.swf"> 
    <param name="movie" value="flowplayer-3.2.1.swf" /> 
    <param name="allowfullscreen" value="true" /> 
    <param name="flashvars" value='config={"clip": {"url": "http://wearehugh.com/dih5/good/bbb_480p.mp4", "autoPlay":false, "autoBuffering":true}}' /> 
    <p>Download video as <a href="mymovie.mp4">MP4</a>, <a href="mymovie.webm">WebM</a>, or <a href="mymovie.ogv">Ogg</a>.</p> 
  </object>
</video>

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.

权谋诡计 2024-09-12 17:20:45

我正在使用 http://www.platipus.nl/flvplayer/download/1.0/
这对我来说很完美。

修改很简单:

 <p align="right"> 
 <embed src="http://www.aip.de/People/AKhalatyan/MOV/flvplayer.swf?file=http://www.aip.de/People/AKhalatyan/MOV/GalaxyMerger_ms4v2.flv"width="320" height="240" quality="high" type="application/x-shockwave-flash"        pluginspage="http://www.macromedia.com/go/getflashplayer">
 </embed>
 </p>  

我使用的是旧版本,也许最近的版本有更多选项。

阿曼欢呼。

I am using http://www.platipus.nl/flvplayer/download/1.0/
this works perfect for me.

The emending is pretty simple:

 <p align="right"> 
 <embed src="http://www.aip.de/People/AKhalatyan/MOV/flvplayer.swf?file=http://www.aip.de/People/AKhalatyan/MOV/GalaxyMerger_ms4v2.flv"width="320" height="240" quality="high" type="application/x-shockwave-flash"        pluginspage="http://www.macromedia.com/go/getflashplayer">
 </embed>
 </p>  

I am using an older version, maybe the recent one has a more options.

cheers Arman.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文