简体   繁体   English

如何用QuickTime电影替换Flash电影?

[英]How to replace Flash movie with QuickTime movie?

How do I replace a flash movie on a website with a quicktime movie? 如何用QuickTime影片替换网站上的Flash影片? I don't even know where to begin. 我甚至不知道从哪里开始。

EDIT: In the light of the new information you have posted about your question, I think SuperUser would be a better place for this question, rather than StackOverflow. 编辑:根据您发布的有关问题的新信息,我认为SuperUser将是一个更好的解决这个问题的地方,而不是StackOverflow。 That being said, on to the answer: 话虽如此,对答案:

Although fenomas did a great job explaining video conversion to this particular format in a nutshell, this is by no means a topic that can be fully explained in a post, and since there are literally dozens of ways of converting, I will only explain what I did: 尽管fenomas简而言之很好地解释了将视频转换为这种特定格式的工作,但这绝不是一个可以在帖子中充分说明的主题,并且由于字面上有数十种转换方式,我只解释一下做:

  1. Using Adobe Media Encoder I have converted your FLV file to an uncompressed AVI file for further processing (because QT Pro can not open FLV files directly). 使用Adobe Media Encoder,我已将您的FLV文件转换为未压缩的AVI文件,以进行进一步处理(因为QT Pro无法直接打开FLV文件)。 Although AME has the option of converting directly to MOV, I usually find that it does not provide enough options for the advanced user, thus exporting unnecessarily large files (for .mov videos, at least). 尽管AME可以选择直接转换为MOV,但我通常会发现它没有为高级用户提供足够的选项,因此导出了不必要的大文件(至少对于.mov视频而言)。 Note that an uncompressed video file, regardless of the format will usually be extremely large, this video in particular was over 1.3 GB in its uncompressed form. 请注意,无论格式如何,未压缩的视频文件通常都会非常大,尤其是该视频的未压缩形式超过1.3 GB。

  2. I have then opened the exported AVI file with QuickTime Pro, and I have used the Export option to encode it to QT video. 然后,我使用QuickTime Pro打开了导出的AVI文件,并使用“导出”选项将其编码为QT视频。 I used the h264 codec for encoding the video, with a multi-pass encode and a limit of 1000 kbps for the bitrate to keep the file-size down. 我使用h264编解码器对视频进行编码,并进行了多遍编码,并限制了比特率1000 kbps,以减小文件大小。 Please note however that this is not a "recipe" - these settings must be adjusted depending on the video that's being encoded and it usually depends on the video size. 但是请注意,这不是“食谱”-必须根据正在编码的视频来调整这些设置,并且通常取决于视频的大小。 This particular video might be further compressed to an even smaller file-size -- it's all about finding the right combination of file-size and quality. 可以将特定视频进一步压缩为更小的文件大小,这全都在于找到文件大小和质量的正确组合。 For the audio I have used AAC at a sample rate of 44.1 KHz and a bitrate of 96kbps, which is more than plenty when there is only a voice-over/narration and not actual music. 对于音频,我以44.1 KHz的采样率和96kbps的比特率使用AAC,这在只有旁白/旁白而不是实际音乐的情况下绰绰有余。

After you have downloaded the zip file (~26 MB) containing the encoded video, unzip it and upload it to your server, in the same folder as the file it's going to be embedded in (if you do not want to modify the embedding code below). 下载包含编码视频的zip文件(约26 MB)后,将其解压缩并将其上传到服务器中与要嵌入的文件相同的文件夹中(如果您不想修改嵌入代码)下面)。 Once the file is uploaded, replace the piece of code that you have posted as a comment to fenomas' answer with the following code: 文件上传后,用以下代码替换您发布的作为对fenomas答案的注释的代码段:

<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="240" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="debbie.mov">
    <param name="autoplay" value="false">
    <param name="controller" value="true">
    <param name="type" value="video/quicktime">
    <embed src="debbie.mov" width="320" height="240" autoplay="false" controller="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/" />
</object>

If everything was done correctly, you should now have an embedded .mov file in your website :) 如果一切都正确完成,那么您现在应该在网站中嵌入一个.mov文件:)

Assuming that your question is how to convert the file formats, please describe your source. 假设您的问题是如何转换文件格式,请描述您的来源。 Do you only have an SWF file? 您只有SWF文件吗? Or do you have an SWF video player which is playing a video in a separate format (like FLV, F4V, MP4, etc.)? 还是您有一个SWF视频播放器正在以另一种格式(例如FLV,F4V,MP4等)播放视频?

If your video is in a separate file (FLV, etc), then most any application that converts video formats should do the trick. 如果您的视频位于单独的文件(FLV等)中,则大多数可转换视频格式的应用程序都可以解决问题。 If you have both a video file (FLV..) plus a SWF file, the SWF probably just contains a player (ie play/pause buttons, etc.), and you can probably ignore it and just convert the video. 如果您同时拥有视频文件(FLV ..)和SWF文件,则SWF可能仅包含一个播放器(即播放/暂停按钮等),您可能会忽略它而只转换视频。 (Also note that for some formats, like MP4, depending on the codec the video may already playable in Quicktime! If you have a separate video file try dragging it into QT to check if it plays before worrying about converting.) (还请注意,对于某些格式,例如MP4,视编解码器而定,视频可能已在Quicktime中播放了!如果您有单独的视频文件,请尝试将其拖动到QT中以检查其是否播放,然后再担心转换。)

If you have only a SWF, however, then not all apps will convert for you. 但是,如果只有SWF,则并非所有应用都会为您转换。 In general, SWFs can be interactive, and they don't have any particular "length", so some applications will convert a SWF into other formats, but in actuality they're playing the SWF and capturing the output and encoding it into a new video. 通常,SWF可以是交互式的,并且没有任何特定的“长度”,因此某些应用程序会将SWF转换为其他格式,但是实际上它们正在播放SWF并捕获输出并将其编码为新的视频。 (And note that this will not work well if the SWF has any interactivity - like buttons that need to be clicked, etc.) (请注意,如果SWF具有任何交互性(例如需要单击的按钮等),则此方法将无法正常工作。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM