词条 | Flash Video | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
释义 |
| name = Flash Video | icon = | extension = .flv, .f4v, .f4p, .f4a, .f4b | mime = video/x-flv, video/mp4, audio/mp4 | type code = | uniform type = | owner = Adobe Systems (originally developed by Macromedia) | genre = Media container | container for = Audio, video, text, data | contained by = | extended from = FLV: SWF F4V: MPEG-4 Part 12 | extended to = | standard = }} Flash Video is a container file format used to deliver digital video content (e.g., TV shows, movies, etc.) over the Internet using Adobe Flash Player version 6 and newer. Flash Video content may also be embedded within SWF files. There are two different video file formats known as Flash Video: FLV and F4V. The audio and video data within FLV files are encoded in the same manner as they are within SWF files. The F4V file format is based on the ISO base media file format and is starting with Flash Player 9 update 3.[1][1] Both formats are supported in Adobe Flash Player and developed by Adobe Systems. FLV was originally developed by Macromedia. In the early 2000s, Flash Video used to be the de facto standard for web-based streaming video (over RTMP). Notable users of it include Hulu, VEVO, Yahoo! Video, metacafe, Reuters.com, and many other news providers. Flash Video FLV files usually contain material encoded with codecs following the Sorenson Spark or VP6 video compression formats. The most recent public releases of Flash Player (collaboration between Adobe Systems and MainConcept) also support H.264 video and HE-AAC audio.[2] All of these compression formats are restricted by patents. Flash Video is viewable on most operating systems via the Adobe Flash Player and web browser plugin or one of several third-party programs. Apple's iOS devices, along with almost all other mobile devices, do not support the Flash Player plugin and so require other delivery methods such as provided by the Adobe Flash Media Server.[3] HistoryThe 2002 release of Flash Player 6 added support for video in the SWF file format. The 2003 release of Flash Player 7 added direct support for the FLV file format. Because of restrictions in the FLV file format, Adobe Systems created new file formats in 2007 as listed in the table below, based on the ISO base media file format (MPEG-4 Part 12). Flash Player does not check the extension of the file but instead looks inside the file to determine the format.[5][4] The new file formats are very different from the older FLV file format. For example, F4V does not support Screen video, Sorenson Spark, VP6 video compression formats and ADPCM, or Nellymoser audio compression formats.[1][4] Authors of Flash Player strongly encourage use of the new standard file format F4V (ISO base media file format) because it overcomes functional limits with the FLV structure when streaming H.264 or AAC, which is one reason Adobe Systems is moving away from the older FLV file structure.[4] Since 2002, the initial format is Flash Video and the file suffix is .flv with a MIME derived Internet media type of video/x-flv. The Adobe-branded file suffix .f4v was extended from 2007 to support the ISO base media file format using the same MIME derived Internet media type of video/mp4 as the Apple file suffix of .m4v and the general file suffix of .mp4. Adobe-branded file suffixes exist for .f4p which relates to media encrypted with their Adobe Access DRM scheme; .f4a and .f4b relate respectively to .m4a and .m4b with the same MIME derived Internet media type of audio/mp4. SWF files published for Flash Player 6 and later versions are able to exchange audio, video, and data over RTMP connections with the Adobe Flash Media Server. One way to feed data to Flash Media Server is from files in the FLV file format. Flash Player can play SWF files created for Flash Player 7 and later versions in FLV format directly (MIME type video/x-flv). Flash Player can also play the new F4V file format, beginning with SWF files created for Flash Player 9 Update 3.[1]
EncodingCommonly, Flash Video FLV files contain video bit streams which are a proprietary variant of the H.263 video standard,[6] under the name of Sorenson Spark (FourCC FLV1).[7][8] Sorenson Spark is an older codec for FLV files but it is also a widely available and compatible one, because it was the first video codec supported in Flash Player.[9] It is the required video compression format for Flash Player 6 and 7.[10][11] Flash Player 8 and newer revisions also support the playback of On2 TrueMotion VP6 video bit streams (FourCC VP6F or FLV4). On2 VP6 is the preferred video compression format for use with Flash Player 8 and higher.[12][7] On2 VP6 can provide a higher visual quality than Sorenson Spark, especially when using lower bit rates. On the other hand, it is computationally more complex and therefore will not run as well on certain older system configurations.[10][13] The Flash Video FLV file format supports two versions of a so-called 'screenshare' (Screen video) codec which is an encoding format designed for screencasts. Both these formats are bitmap tile based, can be lossy by reducing color depths and are compressed using zlib. The second version is only playable in Flash Player 8 and newer. Audio in Flash Video files is usually encoded as MP3. However, audio in Flash Video FLV files recorded from the user's microphone use the proprietary Nellymoser Asao Codec.[14] (Flash Player 10 released in 2008 also supports the open source Speex codec.[15]) FLV files also support uncompressed audio or ADPCM format audio. Recent versions of Flash Player 9 support AAC (HE-AAC/AAC SBR, AAC Main Profile, and AAC-LC). Support for encoding Flash Video files is provided by an encoding tool included with Adobe's Flash Professional and Creative Suite products, On2's Flix encoding tools, Sorenson Squeeze, FFmpeg and other third party tools. Media type supportSupported media types in both the Flash Video and ISO base media file formats:[16]
Supported media types in just the Flash Video file format:[16]
Supported media types in just the ISO base media file format:[16]
FLV convertersAn FLV converter is a type of video conversion software that is used for turning videos from different formats into FLV. Below is a list of popular free video converters which support conversion to FLV.
These programs run under Microsoft Windows. HandBrake, FFmpeg and VLC also run under Mac OS X and Linux. Flash Video StructureHeaderFLV files start with a standard header which is shown below:[18]
PacketsAfter the header, the file is split into packets called "FLV tags", which have 15-byte packet headers. The first four bytes denote the size of the previous packet/tag (including the header), and aid in seeking backward.
The Packet Type byte of a packet/tag header is based on the RTMP message ID byte with the AMF metadata value of 18 (0x12), video payload value of 9 (0x09) and audio payload value of 8 (0x08) being the only valid types used. The third bit indicates the payload is encrypted using the same mechanism as RTMP uses, however this is rarely used due to encrypted transports such as RTMP being used instead. The FLV packet encryption is generally inherited from a MP4 file that is stored on a Adobe Flash Media Server.
Following that, there are three bytes for the Payload Size denoting length of the Payload Data, then four bytes for the Timestamp in milliseconds (with the last byte used to extend the first three bytes), the next 3 bytes for the Stream ID (incremented for multiple streams of the same type), and finally followed by the actual payload data. There is a direct relation between the fields encountered in an FLV Tag and those found in a RTMP packet, as for example the FLV Packet Type field uses the same numeric values as the RTMP Chunk Type field (ex. 0x08 for audio and 0x09 for video). FLV tags are thus converted into RTMP packets when the file is streamed through a Flash Media Server or equivalent RTMP Server. The first packet encountered is usually a metadata packet which contains information such as:
When streamed using an Actionscript built player, the metadata values above are passed as arguments on the onMetaData callback function. Audio packets have the first byte of the payload defining the decoding details with the first four bits for the encoding used and the last four bits for the parameters required to process the encoding. Video packets have this order reversed. Video encodings enumerated from 0 are:
Video processing parameters enumerated from 1 are:
MPEG-4 encodings such as H.264, MPEG-4 ASP and AAC add a one byte value with a NULL value indicating that the payload contains MPEG-4 configuration details. MPEG-4 video encodings also add three bytes for composition timestamp offset which is required for encodings that use B-frames. Audio encodings enumerated from 0 are:
Audio encodings enumerated from 10 are:
Audio encodings enumerated from 14 are MPEG layer 3 8 kHz, Device specific such as MIDI. Audio processing parameters with the first two bits for the sampling rate, next bit flags 16-bit sample size on with off indicating 8-bit sample size, and the final bit flags stereophonic channels on with off indicating monaural only. Sampling rates enumerated from 0 are 5.5 kHz, 11.025 kHz quarter, 22.05 kHz half, 44.1 kHz full. Encrypted packets have an additional 31 or 24 byte header before the AES-CBC encrypted payload as follows:
FLV playersAn FLV player is a type of media player that is used for playing Flash video from PC as well as from Internet websites. An FLV player can be used standalone, without the need of the Adobe Flash authoring or developmental tools. It can also be embedded in the website using Flash component or embeddable version of FLV player. Flash Player{{main|Adobe Flash Player}}Adobe Flash Player is a multimedia and application player originally developed by Macromedia and acquired by Adobe Systems. It plays SWF files, which can be created by Adobe Flash Professional, Apache Flex, or a number of other Adobe Systems and 3rd party tools. It has support for a scripting language called ActionScript, which can be used to display Flash Video from an SWF file. Because the Flash Player runs as a browser plug-in, it is possible to embed Flash Video in web pages and view the video within a web browser. Flash Player supported display of Flash Video files since version 6, with the Sorenson Spark and On VP6 video codecs. Support was recently added for H.264 video content as well. H.264Flash Player 9 Update 3, released on 3 December 2007,[19] also includes support for the new Flash Video file format F4V and H.264 video standard (also known as MPEG-4 part 10, or AVC) which is even more computationally demanding, but offers significantly better quality/bitrate ratio.[20] Specifically, Flash Player now supports video compressed in H.264 (MPEG-4 Part 10), audio compressed using AAC (MPEG-4 Part 3), the F4V, MP4 (MPEG-4 Part 14), M4V, M4A, 3GP and MOV multimedia container formats, 3GPP Timed Text specification (MPEG-4 Part 17) which is a standardized subtitle format and partial parsing support for the 'ilst' atom which is the ID3 equivalent iTunes uses to store metadata. MPEG-4 Part 2 video (e.g. created with DivX or Xvid) is not supported.[21] In an interview with BBC News, the main programmer of Flash Jonathan Gay said that the company had wanted to use H.264 when video support was originally added to Flash, but had been deterred by the patent licensing fees of around $5 million (£3.5 million) per year.[22] PlaybackFlash Player supports two distinct modes of video playback:
Desktop-based{{main|Comparison of video player software}}Microsoft Windows, Mac OS X, Unix-based
Mac OS devices can play flash videos in QuickTime with the help of additional software (such as the open source Perian component.) PDA-based and smartphone-basedWindows Mobile, Palm OS-based
The iPhone and Android devices can play flash videos with the help of additional software (such as the Skyfire web browser application.) Apple iOS has never supported Flash. Android versions above 2.1 through 4.0 supported Flash; Adobe has discontinued Flash Player for Android.[24] On 29 June 2012, Adobe announced that, as they were discontinuing development of the mobile version of Flash, they would prevent the Flash player from installing from the Google Play Store on any Android devices that do not already have the Flash player installed, and that they would not be releasing a version of Flash certified for use with Android version 4.1, codenamed Jelly Bean.[25] Delivery optionsFlash Video files can be delivered in several different ways:
Flash video recordingIt is possible to record online flash videos using stream recorders and screen video capture software. The former gives lossless results, while the latter allows recording any video even when anti-leeching measures are used. See also{{portal|Information technology|Internet}}
References1. ^{{cite web |work = Google Knol |date = 7 December 2008 |url = http://knol.google.com/k/nina-king/what-is-the-difference-flash-video-flv/1zvmlr765y0hs/30# |title = What is the difference between Flash Video (FLV), F4V and H.264. |accessdate =3 August 2009}} 2. ^{{cite web | title = Flash H.264 | publisher = MainConcept | url = http://www.mainconcept.com/products/sdks/video/flash.html | accessdate = 24 September 2010 | deadurl = yes | archiveurl = https://web.archive.org/web/20101118043148/http://www.mainconcept.com/products/sdks/video/flash.html | archivedate = 18 November 2010 | df = dmy-all }} 3. ^[https://www.adobe.com/products/flashmediaserver/ Adobe Flash Media Server] 4. ^1 2 3 Kaourantin.net (31 October 2007) Tinic Uro New File Extensions and MIME Types {{webarchive|url=https://web.archive.org/web/20100706004744/http://www.kaourantin.net/2007/10/new-file-extensions-and-mime-types.html |date=6 July 2010 }}, Retrieved on 2009-08-03 5. ^Adobe (3 December 2007) List of codecs supported by Adobe Flash Player, Retrieved on 2009-08-10 6. ^{{cite mailing list |url=http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-March/065410.html |mailinglist=FFmpeg-devel |author=Benjamin Larsson |title=h263-svq3 optimizations |date=17 March 2009 |accessdate=9 August 2009 |deadurl=yes |archiveurl=https://web.archive.org/web/20090817080612/http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-March/065410.html |archivedate=17 August 2009 |df=dmy }} 7. ^1 {{cite web | publisher=Kaourantin.net | date=13 August 2005 | url=http://www.kaourantin.net/2005/08/quest-for-new-video-codec-in-flash-8.html | title=The quest for a new video codec in Flash 8 | accessdate=10 August 2009 | deadurl=yes | archiveurl=https://web.archive.org/web/20090206142709/http://kaourantin.net/2005/08/quest-for-new-video-codec-in-flash-8.html | archivedate=6 February 2009 | df=dmy-all }} 8. ^{{cite web | url=http://wiki.multimedia.cx/index.php?title=Sorenson_Spark | title=Sorenson Spark | publisher=MultimediaWiki | accessdate=3 November 2009}} 9. ^Sorenson Media Difference Between Flash 6 and Flash 8 video, Retrieved on 2009-08-09 10. ^1 Adobe LiveDocs (2005) Flash 8 Documentation – About the On2 VP6 and Sorenson Spark video codecs, Retrieved on 2009-08-09 11. ^{{cite web | url=http://livedocs.adobe.com/flash/9.0/UsingFlash/help.html?content=WSd60f23110762d6b883b18f10cb1fe1af6-7ca8.html |title=Flash CS3 – Comparing the On2 VP6 and Sorenson Spark video codecs |quote=To support better quality video at the same data rate, the On2 VP6 codec is noticeably slower to encode and requires more processor power on the client computer to decode and play back. For this reason, carefully consider the lowest common denominator of computer you intend your viewing audience to use when accessing your Flash Video content. If you anticipate a large user base that uses older computers, consider encoding your FLV files using the Sorenson Spark codec. |accessdate=4 February 2011}} 12. ^1 Adobe Flash CS4 Professional Documentation – Digital video and Flash, Retrieved on 2009-08-09 13. ^Adobe LiveDocs (2005) Flash 8 Documentation – Comparing the On2 VP6 and Sorenson Spark video codecs, Retrieved on 2009-08-09 14. ^1 MultimediaWiki Nelly Moser, Retrieved on 2009-08-11 15. ^AskMeFlash.com (10 May 2009) Speex vs Nellymoser {{webarchive |url=https://web.archive.org/web/20090415032211/http://askmeflash.com/article_m.php?p=article&id=2 |date=15 April 2009 }}, Retrieved on 2009-08-12 16. ^1 2 3 4 5 6 {{cite journal | author = Adobe Systems Incorporated | title = Video File Format Specification, Version 10 | publisher = Adobe Systems Incorporated | date = November 2008 | url = http://download.macromedia.com/f4v/video_file_format_spec_v10_1.pdf | format = PDF | accessdate =3 August 2009}} 17. ^http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/flvdec.c 18. ^Open Source Flash (2011) Flash Video (FLV) [online] Available from (link already dead): http://osflash.org/flv#flv_format 19. ^{{cite web | title=Adobe Flash Player 9 Downloads | url=https://www.adobe.com/support/flashplayer/downloads.html#fp9 | publisher=Adobe | date=3 December 2007 | accessdate=31 January 2008}} 20. ^{{cite web|url=https://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v10.pdf|title=Video File Format Specification Version 10|publisher=Adobe Systems Incorporated|date=November 2008|archiveurl=https://web.archive.org/web/20100531081147/http://www.adobe.com/devnet/flv/pdf/video_file_format_spec_v10.pdf|archivedate=31 May 2010}} 21. ^1 {{cite web |url=http://www.kaourantin.net/2007/08/what-just-happened-to-video-on-web_20.html |title=What just happened to video on the web |author=Kaourantin.net |date=20 August 2007 |accessdate=12 August 2009 |deadurl=yes |archiveurl=https://web.archive.org/web/20100106113036/http://www.kaourantin.net/2007/08/what-just-happened-to-video-on-web_20.html |archivedate=6 January 2010 |df=dmy }} 22. ^{{cite news | title = Flash creator wades into Apple debate|author=Frewin, Jonathan|publisher=BBC News| url = http://news.bbc.co.uk/1/hi/technology/10121187.stm|accessdate=1 June 2010 | date= 18 May 2010}} 23. ^{{cite web| url = http://blogs.adobe.com/penguinswf/2010/01/solving_different_problems.html| title = Solving Different Problems| last = Melanson| first = Mike| date = January 27, 2010| website = Penguin.SWF| accessdate = November 15, 2014}} 24. ^{{cite web|title=An Update on Flash Player and Android|url=https://blogs.adobe.com/flashplayer/2012/06/flash-player-and-android-update.html|website=Adobe|accessdate=31 March 2016}} 25. ^{{cite news | title =Flash Player for Android: Adobe calls time, declares it dead|author=Arthur, Charles|publisher=The Guardian| url =https://www.theguardian.com/technology/blog/2012/jun/29/flash-android-dies-adobe|accessdate=30 June 2012 | date= 29 June 2012}} 26. ^Apple iPads and iPhones finally get Flash video 9 September 2011. Retrieved 10 September 2011. External links |