<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>zrong&#039;s Blog &#187; FLV</title>
	<atom:link href="http://zengrong.net/post/tag/flv/feed" rel="self" type="application/rss+xml" />
	<link>http://zengrong.net</link>
	<description>Flash、Flex、RIA、web、Linux和我的生活</description>
	<lastBuildDate>Thu, 09 Feb 2012 15:09:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>抛弃FLV，迎接MP4&#8212;&#8212;制作Flash Player支持的H.264视频格式</title>
		<link>http://zengrong.net/post/393.htm</link>
		<comments>http://zengrong.net/post/393.htm#comments</comments>
		<pubDate>Thu, 06 Dec 2007 16:17:18 +0000</pubDate>
		<dc:creator>zrong</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[AAC]]></category>
		<category><![CDATA[CODEC]]></category>
		<category><![CDATA[FlashPlayer]]></category>
		<category><![CDATA[FLV]]></category>
		<category><![CDATA[H.264]]></category>

		<guid isPermaLink="false">http://www.zengrong.net/?p=393</guid>
		<description><![CDATA[Flash Player 9.0.115发布了，这是一个支持H.264的正式版本。关于H.264，已经说得太多，播放H.264的视频也很简单，用NetStream即可（也就是播放FLV的那一套，但是怎么把现有的视频压缩成Flash Player支持的H.264格式呢？
首先，要了解Flash Player 9.0.115对视频编码到底支持到哪个程度。<p class="read-more"><a href="http://zengrong.net/post/393.htm">继续阅读 &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://zengrong.net/post/393.htm" title="抛弃FLV，迎接MP4&mdash;&mdash;制作Flash Player支持的H.264视频格式"></a><p>Flash Player 9.0.115发布了，这是一个支持H.264的正式版本。关于H.264，已经说得太多，播放H.264的视频也很简单，用NetStream即可（也就是播放FLV的那一套，想了解的可以看<a href="http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html" target="_blank" title="xploring Flash Player support for high-definition H.264 video and AAC audio">这篇官方提供的教程</a>），但是怎么把现有的视频压缩成Flash Player支持的H.264格式呢？</p>
<h3>首先，要了解Flash Player 9.0.115对视频编码到底支持到哪个程度。</h3>
<p>下面是Adobe官方提供的一个Flash Player支持的视频编码列表（<a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402866&amp;sliceId=1" title="List of codecs supported by Adobe Flash Player" target="_blank">原文</a>）：</p>
<table border="1" cellpadding="0" cellspacing="0">
<tr bgcolor="#e6e6fa">
<td valign="top" width="200"><strong>视频编码</strong></td>
<td valign="top" width="150"><strong>SWF 文件格式版本(发布的版本)</strong></td>
<td valign="top" width="150"><strong>支持播放的最小Flash Player版本</strong></td>
</tr>
<tr>
<td valign="top" width="200"><strong>Sorenson Spark</strong></td>
<td valign="top" width="150">6</td>
<td valign="top" width="150">6</td>
</tr>
<tr>
<td valign="top" width="200"><strong>On2 VP6</strong></td>
<td valign="top" width="150">6</td>
<td valign="top" width="150">8</td>
</tr>
<tr>
<td valign="top" width="200"><strong>H.264 (MPEG-4 Part 10)</strong></td>
<td valign="top" width="150">9</td>
<td valign="top" width="150">9.0.115.0*</td>
</tr>
</table>
<table border="1" cellpadding="0" cellspacing="0">
<tr bgcolor="#e6e6fa">
<td valign="top" width="200"><strong>音频编码</strong></td>
<td valign="top" width="150"><strong>SWF 文件格式版本(发布的版本)</strong></td>
<td valign="top" width="150"><strong>支持播放的最小Flash Player版本</strong></td>
</tr>
<tr>
<td valign="top" width="200"><strong>ADPCM</strong></td>
<td valign="top" width="150">6</td>
<td valign="top" width="150">6</td>
</tr>
<tr>
<td valign="top" width="200"><strong>MP3</strong></td>
<td valign="top" width="150">6</td>
<td valign="top" width="150">6</td>
</tr>
<tr>
<td valign="top" width="200"><strong>HE-AAC (MPEG-4 Part 3)</strong></td>
<td valign="top" width="150">9</td>
<td valign="top" width="150">9.0.115.0*</td>
</tr>
</table>
<p>*Flash Player 可以播放视频编码为H.264，音频编码为AAC的标准MPEG-4文件。文件的扩展名可以是：F4V, MP4, M4A, MOV, MP4V, 3GP, 3G2等等。</p>
<p><font color="#ff0000"><strong>注意：如果没有特别说明，下面的Flash Player都指Flash Player 9(v 9.0.115.0)</strong></font></p>
<p><span id="more-393"></span></p>
<p>Flash Player 9 (v 9.0.115.0) 支持下面的 MPEG-4 标准的子集：</p>
<table border="1" cellpadding="0" cellspacing="0">
<tr bgcolor="#e6e6fa">
<td valign="top" width="250"><strong>MPEG-4 标准</strong></td>
<td valign="top" width="250"><strong>Flash Player Update 3</strong></td>
</tr>
<tr>
<td valign="top" width="250">ISO/IEC 14496-3 (Audio AAC)</td>
<td valign="top" width="250">AAC Main; AAC LC; SBR</td>
</tr>
<tr>
<td valign="top" width="250">ISO/IEC 14496-10 (Video AVC)</td>
<td valign="top" width="250">Base (BP); Main (MP); High (HiP). All levels are supported.</td>
</tr>
<tr>
<td valign="top" width="250">ISO/IEC 14496-12 (Container)</td>
<td valign="top" width="250">1 Audio track; 1 Video track</td>
</tr>
<tr>
<td valign="top" width="250">3GPP TS 26.245 (Timed text format)</td>
<td valign="top" width="250">Full support.</td>
</tr>
</table>
<p>那么，什么是H.264？“MPEG4 Part 10”是什么？它和“Part 3”、“Part 2” 有什么关系？可以看<a href="http://tech.163.com/05/0624/11/1N0Q0HJ800091589.html" title="MPEG4遭遇尴尬 三款高清晰编码大比拼" target="_blank">这篇文章</a>。</p>
<p>简单的讲，H.264、MPEG4 Part 10、MPEG4 AVC和ISO/IEC 14496-10 都是一个东东，就是一种视频编码格式，同时也是高清电影采用的视频编码格式之一（另外两种是MPEG2和VC-1）。</p>
<p>而平常我们熟悉的DivX以及XviD编码，都属于MPEG4标准的范畴，但它们属于MPEG4 Part 2，Flash Player是不支持它们的。</p>
<h3>了解了基础知识之后，我们首先需要找到一个编码工具。</h3>
<p>选择一个优秀的压缩工具至关重要。Flash CS3自带的用于压缩FLV的压缩器自然是无法胜任了。可是网上的视频转换工具多如牛毛，要找一款好用的真的很难。本着<strong><font color="#ff0000">“免费、易用、专业、通吃”</font></strong>这四个标准，经过大量测试，终于找到一款优秀的国产编码软件<a href="http://mediacoder.sourceforge.net/index_zh.htm" title="影音转码宝盒" target="_blank">MediaCoder</a>（中文名：影音转码宝盒），以下是来自MediaCoder官方网站的介绍：</p>
<p>MediaCoder是一个免费的通用音频/视频批量转码工具，它将众多来自开源社区的优秀音频视频编解码器和工具整合为一个通用的解决方案，可以将音频、视频文件在各种格式之间进行转换。</p>
<p><strong>功能和特点</strong></p>
<ul>
<li>基于优秀的众多的开源编解码后台，能够解码和编码的格式多</li>
<li>极为丰富的可调整的编码参数</li>
<li>全部编解码器自带，不依赖于系统的编解码器和任何组件</li>
<li>良好的可扩展的程序架构，快速适应新的需求，不断增加新的格式的支持</li>
<li>利用脚本语言扩展的界面，有支持众多影音设备（如<a href="http://mediacoder.sourceforge.net/screenshots_zh.htm?sid=ext-psp.png" target="_blank">PSP</a>、<a href="http://mediacoder.sourceforge.net/screenshots_zh.htm?sid=ext-ipod.png" target="_blank">iPod</a>）的专用界面</li>
<li>高性能，特别在双核处理器上表现优异</li>
</ul>
<p><strong><br />
典型应用</strong></p>
<ul>
<li>提高影音文件压缩率，减小其文件尺寸</li>
<li>转换至可在各种影音设备上播放的影音文件，如MP3播放器、MP4播放器、手机、PDA、VCD/DVD播放机</li>
<li>提取视频文件中的音轨并转换成MP3、AAC、WMA等音频文件</li>
<li>修复和改善一些损坏的、部分下载的或质量不佳的影音文件</li>
</ul>
<p><strong>支持格式 </strong></p>
<ul>
<li><a href="http://mediacoder.sourceforge.net/wiki/index.php/MP3">MP3</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Vorbis">Vorbis</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/aac">AAC</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/aacPlus">AAC+</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/aacPlus"><strong>AAC+v2</strong></a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/MusePack">MusePack</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Speex">Speex</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/AMR">AMR</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/WMA">WMA</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/RealAudio">RealAudio</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Mp3PRO">mp3PRO</a>*</li>
<li><a href="http://mediacoder.sourceforge.net/wiki/index.php/FLAC">FLAC</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/WavPack">WavPack</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Monkey's_Audio">Monkey&#8217;s Audio</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/OptimFrog">OptimFrog</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Audio_Lossless_Coding">AAC Lossless</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Windows_Media_Audio_Lossless">WMA Lossless</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/WAV">WAV/PCM</a></li>
<li><a href="http://mediacoder.sourceforge.net/wiki/index.php/H.264"><strong>H.264</strong></a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/XviD">Xvid</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/MPEG">MPEG</a> <a href="http://mediacoder.sourceforge.net/wiki/index.php/MPEG-1">1</a>/<a href="http://mediacoder.sourceforge.net/wiki/index.php/MPEG-2">2</a>/<a href="http://mediacoder.sourceforge.net/wiki/index.php/MPEG-4">4</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Theora"><strong>Theora</strong></a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Flash_Video">Flash Video</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Dirac"><strong>Dirac</strong></a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/3ivx">3ivx</a>*, <a href="http://mediacoder.sourceforge.net/wiki/index.php/RealVideo">RealVideo</a>*, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Windows_Media_Video">Windows Media Video</a></li>
<li><a href="http://mediacoder.sourceforge.net/wiki/index.php/AVI">AVI</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/MPEG">MPEG</a>/<a href="http://mediacoder.sourceforge.net/wiki/index.php/VOB">VOB</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/matroska">Matroska</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/MPEG-4">MP4</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/RealMedia">RealMedia</a>*, <a href="http://mediacoder.sourceforge.net/wiki/index.php/ASF">ASF</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/QuickTime">Quicktime</a>*, <a href="http://mediacoder.sourceforge.net/wiki/index.php/OGM">OGM</a>*</li>
<li><a href="http://mediacoder.sourceforge.net/wiki/index.php/CD">CD</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/VCD">VCD</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/DVD">DVD</a>, <a href="http://mediacoder.sourceforge.net/wiki/index.php/Cue_sheet">CUE Sheet</a>*</li>
</ul>
<p><em>*仅支持输入</em></p>
<h3>编码工具搞定，接着就可以“制作”影片了。</h3>
<p>我采用的源片是著名的Backkom Assa Game Contest片段，片源编码如下：</p>
<blockquote><p>G:\Movie\Backkom\Assa Game Contest.wmv<br />
General<br />
Complete name : G:\Movie\Backkom\Assa Game Contest.wmv<br />
Format : Windows Media<br />
File size : 1.89 MiB<br />
PlayTime : 33s 991ms<br />
Bit rate : 467 Kbps<br />
Movie name : Assa<br />
Performer : Aaron Lim<br />
Copyright : rg animation studios<br />
Comment : rg animation studios<br />
Video<br />
Codec : WMV3<br />
Codec/Info : Windows Media Video 9<br />
Bit rate : 408 Kbps<br />
Width : 320 pixels<br />
Height : 240 pixels<br />
Aspect ratio : 4/3<br />
Audio<br />
Codec : WMA2<br />
Codec/Info : Windows Media Audio 2<br />
Bit rate : 48 Kbps<br />
Channel(s) : 2 channels<br />
Sampling rate : 44 KHz</p></blockquote>
<p>在压缩前，最重要的就是在MediaCoder中选择视频编码和音频编码。根据上面的表格我们知道，Flash Player 9.0.115支持H.264视频编码和HE-AAC音频编码。下图是我在MediaCoder中的设置。</p>
<p align="center"><img src="http://www.zengrong.net/wp-content/uploads/2007/12/h264video-thumb.png" alt="H.264视频设置" height="184" width="417" /><br />
<strong>H.264视频设置</strong></p>
<p align="center">&nbsp;</p>
<p align="center"><img src="http://www.zengrong.net/wp-content/uploads/2007/12/h264audio-thumb.png" alt="HE-AAC音频编码" height="182" width="640" /><br />
<strong>HE-AAC音频设置</strong></p>
<p align="center">&nbsp;</p>
<p align="center"><img src="http://www.zengrong.net/wp-content/uploads/2007/12/h264video2-thumb.png" alt="h264video2" height="184" width="315" /><br />
<strong>视频大小设置</strong></p>
<p>将这三个设置调整好即可。H.264的编码优于WMV9，所以在压缩的时候，选择的视频和音频码率都小于源文件的码率。</p>
<p>转换完后的视频扩展名为MP4，详细编码信息如下：</p>
<blockquote><p>G:\Movie\Backkom\Assa Game Contest.mp4<br />
General<br />
Complete name : G:\Movie\Backkom\Assa Game Contest.mp4<br />
Format : MPEG-4<br />
Format/Info : ISO 14496-1 Base Media<br />
Format/Family : MPEG-4<br />
File size : 1.40 MiB<br />
PlayTime : 33s 920ms<br />
Bit rate : 347 Kbps<br />
StreamSize : 11.2 KiB<br />
Encoded date : UTC 2007-12-06 15:51:38<br />
Tagged date : UTC 2007-12-06 15:51:38<br />
Video #1<br />
Codec : H.264<br />
Codec/Info : H.264 (3GPP)<br />
PlayTime : 33s 920ms<br />
Bit rate : 314 Kbps<br />
Width : 320 pixels<br />
Height : 240 pixels<br />
Aspect ratio : 4/3<br />
Frame rate : 25.000 fps<br />
Bits/(Pixel*Frame) : 0.160<br />
StreamSize : 1.27 MiB<br />
Encoded date : UTC 2007-12-06 15:51:38<br />
Tagged date : UTC 2007-12-06 15:51:38<br />
Audio #2<br />
Codec : AAC LC-SBR<br />
Codec/Info : AAC Low Complexity with Spectral Band Replication<br />
PlayTime : 32s 415ms<br />
Bit rate : 32 Kbps<br />
Bit rate mode : VBR<br />
Channel(s) : 2 channels<br />
Sampling rate : 44 KHz<br />
Resolution : 16 bits<br />
StreamSize : 126 KiB<br />
Encoded date : UTC 2007-12-06 15:51:38<br />
Tagged date : UTC 2007-12-06 15:51:38</p></blockquote>
<p>此视频在Flash Player 9.0.115中顺利播放，声音也没有问题。</p>
<h3>研究一下视频和音频的组合</h3>
<p>到了这里，就有一些问题了。H.264视频是否一定要搭配AAC音频呢？搭配MP3行么？我压缩了一个采用H.264视频编码，Mp3音频编码（采用LAME MP3）的影片，用终极解码播放正常，但是在Flash Player中，只有图像可以显示，却听不到声音。下面是这个文件的编码信息：</p>
<blockquote><p>F:\Material\Flash Platform\Flash\Cases\播放H.264视频\333.mp4<br />
General<br />
Complete name : F:\Material\Flash Platform\Flash\Cases\播放H.264视频\333.mp4<br />
Format : MPEG-4<br />
Format/Info : ISO 14496-1 Base Media<br />
Format/Family : MPEG-4<br />
File size : 2.59 MiB<br />
PlayTime : 33s 920ms<br />
Bit rate : 641 Kbps<br />
StreamSize : 13.9 KiB<br />
Encoded date : UTC 2007-12-05 09:21:21<br />
Tagged date : UTC 2007-12-05 09:21:21<br />
Video #1<br />
Codec : H.264<br />
Codec/Info : H.264 (3GPP)<br />
PlayTime : 33s 920ms<br />
Bit rate : 516 Kbps<br />
Width : 320 pixels<br />
Height : 240 pixels<br />
Aspect ratio : 4/3<br />
Frame rate : 25.000 fps<br />
Bits/(Pixel*Frame) : 0.260<br />
StreamSize : 2.09 MiB<br />
Encoded date : UTC 2007-12-05 09:21:21<br />
Tagged date : UTC 2007-12-05 09:21:21<br />
Audio #2<br />
Codec : MPEG-1 Audio<br />
PlayTime : 32s 365ms<br />
Bit rate : 128 Kbps<br />
Bit rate mode : CBR<br />
Channel(s) : 2 channels<br />
Sampling rate : 44 KHz<br />
Resolution : 16 bits<br />
StreamSize : 506 KiB<br />
Encoded date : UTC 2007-12-05 09:21:21<br />
Tagged date : UTC 2007-12-05 09:21:21</p></blockquote>
<p>又测试了H.264+MP3用AVI封装和3GP封装，在Flash Player中都无法播放声音。看来只有H.264+AAC可以被Flash Player支持。封装可以使用3GP或者MP4，但不支持MKV封装。</p>
<h3>关于封装容器和视频文件后缀</h3>
<p>我们知道，我们不能仅仅从视频文件的扩展名判断文件的编码。因为很多扩展名是支持多种编码的。例如AVI就只是一种封装容器，它里面的视频和音频编码可以有很多种组合。可以是DivX，也可以是XviD，还可以是MPEG-1。下面的表格（<a href="http://www.sxzkw.com/1Qm/MediaCoder_jiaocheng_cn.swf" target="_blank">表格来源</a>，ZRong做部分调整）简单的描述了几种封装容器和视频、音频编码的对应情况：</p>
<table border="1" cellpadding="2" cellspacing="0" width="542">
<tr>
<td valign="top" width="105"><strong>封装容器</strong></td>
<td valign="top" width="145"><strong>视频流编码格式</strong></td>
<td valign="top" width="128"><strong>音频流编码格式 </strong></td>
<td valign="top" width="160"><strong>Flash Player是否支持</strong></td>
</tr>
<tr>
<td valign="top" width="105">AVI</td>
<td valign="top" width="145">Xvid</td>
<td valign="top" width="128">MP3</td>
<td valign="top" width="159">不支持</td>
</tr>
<tr>
<td valign="top" width="105">AVI</td>
<td valign="top" width="145">Divx</td>
<td valign="top" width="127">MP3</td>
<td valign="top" width="159">不支持</td>
</tr>
<tr>
<td valign="top" width="105">MKV</td>
<td valign="top" width="145">Xvid</td>
<td valign="top" width="127">MP3</td>
<td valign="top" width="159">不支持</td>
</tr>
<tr>
<td valign="top" width="105">MKV</td>
<td valign="top" width="145">Xvid</td>
<td valign="top" width="127">AAC</td>
<td valign="top" width="159">不支持</td>
</tr>
<tr>
<td valign="top" width="105">MKV</td>
<td valign="top" width="145">H.264</td>
<td valign="top" width="127">AAC</td>
<td valign="top" width="159">不支持</td>
</tr>
<tr>
<td valign="top" width="105">MP4</td>
<td valign="top" width="145">H.264</td>
<td valign="top" width="127">AAC</td>
<td valign="top" width="159">支持</td>
</tr>
<tr>
<td valign="top" width="105">3GP</td>
<td valign="top" width="145">H.263</td>
<td valign="top" width="127">AAC</td>
<td valign="top" width="159">不支持</td>
</tr>
<tr>
<td valign="top" width="105">3GP</td>
<td valign="top" width="145">H.264</td>
<td valign="top" width="127">AAC</td>
<td valign="top" width="159">支持</td>
</tr>
<tr>
<td valign="top" width="105">FLV</td>
<td valign="top" width="145">Sorenson Spark</td>
<td valign="top" width="127">MP3</td>
<td valign="top" width="159">支持</td>
</tr>
<tr>
<td valign="top" width="105">FLV</td>
<td valign="top" width="145">On2 VP6</td>
<td valign="top" width="127">MP3</td>
<td valign="top" width="159">支持</td>
</tr>
</table>
<p>从上表可以看出，要让Flash Player成功播放H.264视频，最好采用3GP或者MP4封装容器。</p>
<h3>AAC编码的混乱情况</h3>
<p>上面的压缩，AAC编码器使用的都是Nero Encoder，其中“规格”有这样几个选项：Auto、LC-AAC、LE-AAC和HE-AAC v2。经过测试，这几个规格压缩的音频都可以被Flash Player支持。</p>
<p align="center"><img src="http://www.zengrong.net/wp-content/uploads/2007/12/h264neroencoder-thumb.png" alt="Nero Encoder的规格" height="184" width="300" />|<strong><br />
Nero Encoder的选项</strong></p>
<p>如果采用CT AAC+编码器，选项就变成了下面这样，更加复杂了。经过测试，这几个选项的组合也都可以被Flash Player支持。不论选择MPEG-4 AAC还是MPEG-2 AAC，都没有问题。</p>
<p align="center"><img src="http://www.zengrong.net/wp-content/uploads/2007/12/h264ctaac-thumb.png" alt="h264ctaac" height="184" width="300" /><br />
<strong>CT AAC+的选项</strong></p>
<p>如果采用FAAC编码器，选项就变成了下面这样。经过测试，这几个选项的组合也都可以被Flash Player支持，MPEG版本的选择也没有关系。</p>
<p style="text-align: center"><img src="http://www.zengrong.net/wp-content/uploads/2007/12/h264faac-thumb.png" alt="h264faac" height="200" width="300" /><br />
<strong>FAAC的选项</strong></p>
<p>事实上，NERO Encoder和CT AAC+中的LC-AAC，就是FAAC中的Low Complexity（无长时预测的AAC）；而NERO Encoder中的HE-AAC，就是CT AAC+中的aacPlus，它加了SBR(spectral band replication)，HE代表high efficiency。这也是为什么前面压缩WMV视频的时候，选择的是HE-AAC编码，在编码之后的文件信息里面显示的却是下面这些内容的原因了：</p>
<blockquote><p>Codec : AAC LC-SBR<br />
Codec/Info : AAC Low Complexity with Spectral Band Replication</p></blockquote>
<p>根据Adobe公布的信息，Flash Player支持这些AAC编码：AAC Main; AAC LC; SBR ，因此，我一般选择使用NERO Encoder的HE-AAC。</p>
<h3>参考链接</h3>
<ol>
<li><a href="http://bbs.lmtw.com/dispbbs.asp?boardID=111&amp;ID=141583&amp;page=1" title="http://bbs.lmtw.com/dispbbs.asp?boardID=111&amp;ID=141583&amp;page=1">http://bbs.lmtw.com/dispbbs.asp?boardID=111&amp;ID=141583&amp;page=1</a></li>
<li><a href="http://mediacoder.sourceforge.net/index_zh.htm" title="http://mediacoder.sourceforge.net/index_zh.htm">http://mediacoder.sourceforge.net/index_zh.htm</a></li>
<li><a href="http://www.sxzkw.com/1Qm/MediaCoder_jiaocheng_cn.swf" title="http://www.sxzkw.com/1Qm/MediaCoder_jiaocheng_cn.swf">http://www.sxzkw.com/1Qm/MediaCoder_jiaocheng_cn.swf</a></li>
<li><a href="http://www.adobe.com/devnet/flashplayer/articles/http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html" title="http://www.adobe.com/devnet/flashplayer/articles/http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html">http://www.adobe.com/devnet/flashplayer/articles/http://www.adobe.com/devnet/flashplayer/articles/hd_video_flash_player.html</a></li>
<li><a href="http://tech.163.com/05/0624/11/1N0Q0HJ800091589.html" title="http://tech.163.com/05/0624/11/1N0Q0HJ800091589.html">http://tech.163.com/05/0624/11/1N0Q0HJ800091589.html</a></li>
<li><a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402866&amp;sliceId=1" title="http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402866&amp;sliceId=1">http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402866&amp;sliceId=1</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://zengrong.net/post/393.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>两个免费转换视频的软件，实现服务器端Video2FLV</title>
		<link>http://zengrong.net/post/240.htm</link>
		<comments>http://zengrong.net/post/240.htm#comments</comments>
		<pubDate>Sat, 12 Aug 2006 11:12:32 +0000</pubDate>
		<dc:creator>zrong</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[FFmpeg]]></category>
		<category><![CDATA[FlashPlayer]]></category>
		<category><![CDATA[FLV]]></category>
		<category><![CDATA[MEncoder]]></category>

		<guid isPermaLink="false">http://www.zengrong.net/?p=240</guid>
		<description><![CDATA[<a href="http://zengrong.net/post/240.htm" title="两个免费转换视频的软件，实现服务器端Video2FLV"></a>现在，许多播客网站都提供了在线上传视频的服务，而大多数都是将上传的视频转换成FLV格式，然后利用Flash Player播放。大名鼎鼎的Google Video就是其中代表。可惜的是，Google Video并不支持RM和RMVB格式的上传转换。但是，配合是用我们今天介绍的两个软件，却可以转换几乎所有流行的视频格式。:em68: 第一个软件，MEncoder，这是一个从Linux移植过来的免费视频转换工具。 相关资源： 在线转FLV，支持RM，RMVB，RV，WMV9等所有媒体格式。 在线一次性转FLV，支持RM，RMVV等所有媒体格式。 WisMencoder，基于MEncoder的国产免费视频转换软件 WinMEnc，基于MEncoder的绿色免费视频转换软件 MEncoder图形界面WinMEnc快速压制MP4.AVI教程(体现N80细腻屏幕的完美解决方案) WinMEnc 0.61 beta &#8211; 自製Windows Movie Encoder (mencoder frontend) 第二个软件，FFMPEG，利用它可以将AVI转换成FLV，同时可以实现从FLV抓图等功能。许多网站中的录制FLV后显示缩略图的功能就是用它实现的。 相关资源： ffmpegGUI(英文) FFMPEG tutorial(英文) FFMPEG功能和参数 从FLV中截图以及相关PHP代码 Flash 视频(FLV)编码,转换,录制,播放方案一网打尽]]></description>
			<content:encoded><![CDATA[<a href="http://zengrong.net/post/240.htm" title="两个免费转换视频的软件，实现服务器端Video2FLV"></a><p>现在，许多播客网站都提供了在线上传视频的服务，而大多数都是将上传的视频转换成FLV格式，然后利用Flash Player播放。大名鼎鼎的<a href="http://video.google.com/" target="_blank">Google Video</a>就是其中代表。可惜的是，Google Video并不支持RM和RMVB格式的上传转换。但是，配合是用我们今天介绍的两个软件，却可以转换几乎所有流行的视频格式。:em68:</p>
<p><span class="warning">第一个软件</span>，<a href="http://oss.netfarm.it/mplayer-win32.php" target="_blank">MEncoder</a>，这是一个从Linux移植过来的免费视频转换工具。</p>
<p><strong>相关资源：</strong><span id="more-240"></span></p>
<ul>
<li><a href="http://www.jiaotacn.com/dispbbs.asp?boardID=15&amp;ID=296&amp;page=1" target="_blank">在线转FLV，支持RM，RMVB，RV，WMV9等所有媒体格式。</a></li>
<li><a href="http://www.jiaotacn.com/dispbbs.asp?boardID=15&amp;ID=343&amp;page=1" target="_blank">在线一次性转FLV，支持RM，RMVV等所有媒体格式。</a></li>
<li><a href="http://mzys.blog.com.cn/archives/2006/24871.shtml" target="_blank">WisMencoder，基于MEncoder的国产免费视频转换软件</a></li>
<li><a href="http://www.crsky.com/soft/7354.html" target="_blank">WinMEnc，基于MEncoder的绿色免费视频转换软件</a></li>
<li><a href="http://bbs.dospy.com/read-h-tid-84801.html" target="_blank">MEncoder图形界面WinMEnc快速压制MP4.AVI教程(体现N80细腻屏幕的完美解决方案)</a></li>
<li><a href="http://www.hkepc.com/bbs/viewthread.php?tid=346269&amp;extra=page%3D1" target="_blank">WinMEnc 0.61 beta &#8211; 自製Windows Movie Encoder (mencoder frontend)</a></li>
</ul>
<p><span class="warning">第二个软件</span>，<a href="http://ffmpeg.mplayerhq.hu/" target="_blank">FFMPEG</a>，利用它可以将AVI转换成FLV，同时可以实现从FLV抓图等功能。许多网站中的录制FLV后显示缩略图的功能就是用它实现的。</p>
<p><strong>相关资源：</strong></p>
<ul>
<li><a href="http://www.free-codecs.com/download/ffmpegGUI.htm" target="_blank">ffmpegGUI(英文)</a></li>
<li><a href="http://soenkerohde.com/tutorials/ffmpeg" target="_blank">FFMPEG tutorial(英文)</a></li>
<li><a href="http://www.writely.com/View.aspx?docid=ajf3xsjz9vhb_bdht5mzm2vsx4" target="_blank">FFMPEG功能和参数</a></li>
<li><a href="http://www.writely.com/View.aspx?docID=ajf3xsjz9vhb_bdht6qjmw5fm6&amp;revision=_latest" target="_blank">从FLV中截图以及相关PHP代码</a></li>
<li><a href="http://blog.csdn.net/zwei1121/archive/2006/07/15/925298.aspx" target="_blank">Flash 视频(FLV)编码,转换,录制,播放方案一网打尽</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://zengrong.net/post/240.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>和FLV相关的三个表格</title>
		<link>http://zengrong.net/post/100.htm</link>
		<comments>http://zengrong.net/post/100.htm#comments</comments>
		<pubDate>Wed, 01 Mar 2006 01:21:10 +0000</pubDate>
		<dc:creator>zrong</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[FLV]]></category>

		<guid isPermaLink="false">http://www.zengrong.net/100/</guid>
		<description><![CDATA[<a href="http://zengrong.net/post/100.htm" title="和FLV相关的三个表格"></a>这三个表格来自Macromedia网站，分别展示了不同设置和上网方式下FLV的帧频、下载时间与数据流量。 表一：不同视频标准下的帧频&#160;FPS一半(Half)三分之一(Third)四分之一(Quarter)&#8220;Thirty&#8221;3015107.5NTSC29.9714.9859.9907.493PAL2512.5008.3336.25024p Progressive241286Film23.9811.9907.9935.995 表二：不同上网方式的视频下载时间&#160;500 Kbit Video2,000 Kbit Video&#160;Kbits1 min5 min1 min5 minT3150020 sec2 min80 sec7 minT176839 sec3 min3 min13 minDSL51259 sec5 min4 min20 minDSL3841 min7 min5 min26 minDialup569 min45 min36 min179 min 表三：不同上网方式的视频流速率ConnectionConnection Rate(Kbps)Recommended Maximum Bit RateDSL1024800 kbpsDSL512450 kbpsDSL384350 kbpsDSL256225 &#8230;<p class="read-more"><a href="http://zengrong.net/post/100.htm">继续阅读 &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://zengrong.net/post/100.htm" title="和FLV相关的三个表格"></a><p>这三个表格来自<a href="http://www.macromedia.com/devnet/flash/articles/flv_exporter_print.html" target="_blank">Macromedia网站</a>，分别展示了不同设置和上网方式下FLV的帧频、下载时间与数据流量。</p>
<p><TABLE border=1 width=400><CAPTION><b>表一：不同视频标准下的帧频</b></CAPTION><TR><TH class=nodata>&nbsp;</TH><TH scope=col>FPS</TH><TH scope=col>一半(Half)</TH><TH scope=col>三分之一(Third)</TH><TH scope=col>四分之一(Quarter)</TH></TR><TR><TD>&#8220;Thirty&#8221;</TD><TD>30</TD><TD>15</TD><TD>10</TD><TD>7.5</TD></TR><TR><TD>NTSC</TD><TD>29.97</TD><TD>14.985</TD><TD>9.990</TD><TD>7.493</TD></TR><TR><TD>PAL</TD><TD>25</TD><TD>12.500</TD><TD>8.333</TD><TD>6.250</TD></TR><TR><TD>24p Progressive</TD><TD>24</TD><TD>12</TD><TD>8</TD><TD>6</TD></TR><TR><TD>Film</TD><TD>23.98</TD><TD>11.990</TD><TD>7.993</TD><TD>5.995</TD></TR></TABLE><br />
<br />
<TABLE border=1 width=400><CAPTION><b>表二：不同上网方式的视频下载时间</b></CAPTION><TR><TD class=nodata colSpan=2>&nbsp;</TD><TH scope=col colSpan=2>500 Kbit Video</TH><TH scope=col colSpan=2>2,000 Kbit Video</TH></TR><TR><TD>&nbsp;</TD><TD><STRONG>Kbits</STRONG></TD><TD><STRONG>1 min</STRONG></TD><TD><STRONG>5 min</STRONG></TD><TD><STRONG>1 min</STRONG></TD><TD><STRONG>5 min</STRONG></TD></TR><TR><TD>T3</TD><TD>1500</TD><TD>20 sec</TD><TD>2 min</TD><TD>80 sec</TD><TD>7 min</TD></TR><TR><TD>T1</TD><TD>768</TD><TD>39 sec</TD><TD>3 min</TD><TD>3 min</TD><TD>13 min</TD></TR><TR><TD>DSL</TD><TD>512</TD><TD>59 sec</TD><TD>5 min</TD><TD>4 min</TD><TD>20 min</TD></TR><TR><TD>DSL</TD><TD>384</TD><TD>1 min</TD><TD>7 min</TD><TD>5 min</TD><TD>26 min</TD></TR><TR><TD>Dialup</TD><TD>56</TD><TD>9 min</TD><TD>45 min</TD><TD>36 min</TD><TD>179 min</TD></TR></TABLE><br />
<br />
<TABLE border=1 width=400><CAPTION><b>表三：不同上网方式的视频流速率</b></CAPTION><TR><TH scope=col>Connection</TH><TH scope=col>Connection Rate(Kbps)</TH><TH scope=col>Recommended Maximum Bit Rate</TH></TR><TR><TD>DSL</TD><TD>1024</TD><TD>800 kbps</TD></TR><TR><TD>DSL</TD><TD>512</TD><TD>450 kbps</TD></TR><TR><TD>DSL</TD><TD>384</TD><TD>350 kbps</TD></TR><TR><TD>DSL</TD><TD>256</TD><TD>225 kbps</TD></TR><TR><TD>Dialup</TD><TD>56.6</TD><TD>40 kbps</TD></TR></TABLE></p>
<p><b>顺便说一句：</b><a href="http://livedocs.macromedia.com/specs/actionscript/3/wwhelp/wwhimpl/js/html/wwhelp.htm" target="_blank">ActionScript 3.0 语言规范</a>在今天发布了。此消息来自<a href="http://www.dengjie.com/" target="_blank">Danger&#8217;s Blog</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://zengrong.net/post/100.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash8自制FLV Player</title>
		<link>http://zengrong.net/post/61.htm</link>
		<comments>http://zengrong.net/post/61.htm#comments</comments>
		<pubDate>Fri, 18 Nov 2005 13:27:19 +0000</pubDate>
		<dc:creator>zrong</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FLV]]></category>

		<guid isPermaLink="false">http://www.zengrong.net/?p=61</guid>
		<description><![CDATA[<a href="http://zengrong.net/post/61.htm" title="Flash8自制FLV Player"></a>Flash 8新增的On2 vp6编码当然需要更新的播放器来支持。原来的FLV播放器都不能再使用了，在网上下载了几个又都不好用。突然想到，如果用flash.net.FileReference类，再配合最新的FLV Playback组件，就能很容易就能做出一个flv播放器来。 注意：此播放器必须下载到本地使用，需要Flash Player 8 使用方法： 如果没有Flash Player 8，先下载：SAFlashPlayer.rar； 下载播放器下载后请保持压缩包中的ClearOverAll.swf和flvplayer.swf处于同一个文件夹，然后用Flash Player 8打开flvplayer.swf； 单击播放器右上角的三角箭头，弹出对话框选择一个flv视频文件进行播放。 下载源文件：flvplayer.rar]]></description>
			<content:encoded><![CDATA[<a href="http://zengrong.net/post/61.htm" title="Flash8自制FLV Player"></a><p>Flash 8新增的On2 vp6编码当然需要更新的播放器来支持。原来的FLV播放器都不能再使用了，在网上下载了几个又都不好用。突然想到，如果用flash.net.FileReference类，再配合最新的FLV Playback组件，就能很容易就能做出一个flv播放器来。</p>
<p><img src="/wp-content/uploads/2005/flvplayer.jpg" alt="flvplayer截图" width="408" heigth="346" /></p>
<p><strong>注意：此播放器必须下载到本地使用，需要<a href="/wp-content/uploads/2005/SAFlashPlayer.rar" target="_blank">Flash Player 8</a></strong></p>
<p>使用方法：</p>
<ol>
<li>如果没有Flash Player 8，先下载：<a href="/wp-content/uploads/2005/SAFlashPlayer.rar" target="_blank">SAFlashPlayer.rar</a>；</li>
<li><a href="/wp-content/uploads/2005/flvplayerswf.rar" target="_blank">下载播放器</a><br />下载后请保持压缩包中的<strong>ClearOverAll.swf</strong>和<strong>flvplayer.swf</strong>处于同一个文件夹，然后用Flash Player 8打开flvplayer.swf；</li>
<li>单击播放器右上角的三角箭头，弹出对话框选择一个flv视频文件进行播放。</li>
</ol>
<p>下载源文件：<a href="/wp-content/uploads/2005/flvplayer.rar" target="_blank">flvplayer.rar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://zengrong.net/post/61.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

