FFV1

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
FFV1
Developed by Michael Niedermayer (FFmpeg)
Initial release 9 June 2003; 21 years ago (2003-06-09)
Latest release
Version 3 (FFV1.3)
(3 August 2013; 11 years ago (2013-08-03))
Type of format Video compression format
Contained by AVI, MKV, MOV, NUT, etc.
Website FFV1 Video Codec Specification

FFV1, which stands for "FF video codec 1", is a lossless intra-frame video codec. It can use either variable length coding or arithmetic coding for entropy coding. The encoder and decoder are part of the free, open-source library libavcodec in the project FFmpeg since June 2003.[1] FFV1 is also included in ffdshow and LAV Filters,[2] which makes the video codec available to Microsoft Windows application that support system-wide codecs over Video for Windows (VfW) or DirectShow. FFV1 is particularly popular for its performance regarding speed and size, compared to other lossless preservation codecs, such as M-JPEG2000.[3][4][5]

Video archiving

For long-term preservation of digital video sustainable container formats as well as audio/video codecs are necessary. There is no consensus to date among the archival community as to which file format or codecs should be used for preservation purposes for digital video.[6] The previously proclaimed encodings were Motion JPEG 2000 (lossless)[7] and uncompressed video.[8]

FFV1 has turned out to be a viable addition to that choice and was therefore recently added as a suitable option for preservation encoding.[3][9] With compression ratios comparable to JPEG 2000 lossless and its lower computing requirements, it is already being used by professional archives as their long-term storage codec. Especially archives where the collections do not feature extensive broadcast materials but rather consist of, oral history-, ethnographic-recordings and the likes, "favored the lossless FFV1 encoding" in communications with the "Federal Agencies Digitization Guidelines Initiative" (FADGI) team.[10][11]

As of 2015, standardization of FFV1 through the Internet Engineering Task Force (IETF) is work in progress as part of the European PREFORMA Project,[12] as well as implementation of a conformance checker for FFV1/PCM in a Matroska (MKV) container.[13] Details of FFV1's standardization plan[14] have been prepared by MediaArea as part of their conformance checking tool "Media CONCH".[15]

It is also listed as a format option for long-term preservation of moving images on sites of the U.S. Library of Congress',[9][16] State Records NSW[6] and others. The Society of American Archivists has published a paper in August 2014, suggesting only FFV1 as preservation codec for video.[17]

The Digital Preservation project at the U.S. Library of Congress identified AVI and Matroska as common container formats for FFV1.[18][19]

List of institutions known to use FFV1

United Kingdom
Canada
United States
Austria

The "Österreichische Mediathek" has also developed DVA-Profession[27] a Free Software solution for archive-suitable mass video digitization, mainly using FFV1 as video encoding throughout the whole workflow, without transcoding. Additionally, they have initiated the development of "FFV1.3" (=version 3 of FFV1) together with Michael Niedermayer (FFmpeg), Peter Bubestinger and Dave Rice. FFV1.3 contains improvements and new features such as support for multi-threaded encoding/decoding, error resilience and integrity validation by CRC checksums, storing of display aspect ratio (DAR) and field order. It was tested for over 1 year,[28] and officially released stable for production in August 2013.[29]

Suitable as preservation codec

Within the video archiving domain, the interest in FFV1 is increasing, as can be seen in a thread on the AMIA-L mailing list,[30] the PrestoCentre Forum[31] or the Archivematica mailing list.[32][33] Companies are also picking up FFV1 support. For example, NOA (formerly "NOA Audio Solutions"), announced support for the FFV1 in their product line in July 2013[34] and KEM-Studiotechnik released a film-scanner with FFV1 output in November 2013.[35]

The owner of Flume Productions Inc. (Canada) states in a blog post:[36]

<templatestyles src="Template:Blockquote/styles.css" />

But recently, I’m getting more and more requests for ffmpeg or ffv1 codec. The lossless compression claim is very compelling along with the open source architecture. One could argue that perhaps these files will have a longer shelf life and won’t immediately fade into digital obsolescence.

In an interview for The New York Times magazine about "Tips on Archiving Family History",[37] Bertram Lyons from the U.S. Library of Congress says:

<templatestyles src="Template:Blockquote/styles.css" />

"[...] for video, there are many choices when it comes to codecs (the way the bits are encoded/decoded to represent the visual data, e.g., ffv1, H.264, Apple ProRes) [...]"

In January 2013, the possible use and adoption of FFV1 as an archiving codec was addressed in the issue of PrestoCentre's[38] AV Insider magazine:[39]

<templatestyles src="Template:Blockquote/styles.css" />

"FFV1 has many beneficial technical features [...], but adoption rates are relatively low compared with alternatives, for example JPEG2000. [...] But holding back too long only serves to self-perpetuate the status of FFV1.

The adoption by Archivematica and the Austrian Mediathek with their active promotion of FFV1 along with others may start to break this vicious circle. This could lead to a virtuous circle of wider take-up, to shared development, to incorporation into commercial products and a host of other benefits for the community."

PACKED - the "Centre of Expertise in Digital Heritage" in Belgium, say in an article about video formats for archiving:[40]

<templatestyles src="Template:Blockquote/styles.css" />

"When removing the proprietary codecs from this list, only a few are left. [...] This basically leaves heritage institutions that want to use a lossless codec, with only two options: Jpeg2000 and FFV1."

In 2015, the International Federation of Television Archives (FIAT/IFTA) mentioned FFV1 explicitly in their call-for-presentations for their annual World Conference, asking "Is FFV1 the new JPEG2000"?.[41] A workshop titled "FFV1 for Preservation" is also featured.[42]

Applications supporting FFV1

Here is a list of applications known to be able to read and/or write FFV1 video files, either natively or by installing codec packages.

Entries marked with "-" means that they generally only support either encoding or decoding.

The term "built-in" means that the application can handle FFV1 without the necessity to install additional codec packages. Applications that come with FFV1 support out of the box, usually use FFmpeg's or Libav's libraries in order to do so.

The list is far from being complete, and will be augmented over time:

Application Encoding Decoding Method
Adobe Premiere Yes Yes DirectShow[43][44]
Archivematica[45] Yes Yes built-in
AVID Unknown Yes Their transcoder can handle FFV1
Avidemux Yes Yes built-in
Blender Yes[46] Yes built-in
ffdshow-tryouts Yes Yes built-in
FFmpeg Yes Yes built-in
Harris Broadcast Velocity Yes Yes Video for Windows[43]
kdenlive Yes Yes built-in
KEM Scan (motion picture film scanner)[35][47] Yes - built-in
LAVFilters[44] Yes Yes built-in
MediaInfo - Yes built-in
Media Lovin' Toolkit[48] Yes Yes built-in
Media Player Classic - Yes built-in
MPlayer/MEncoder Yes Yes built-in
NOA MediaButler[49] Yes Yes built-in
Shotcut[50] Yes Yes built-in
Sorenson Squeeze Unknown Yes built-in
VirtualDub Yes Yes Video for Windows[43]
VLC media player No Yes built-in
Windows Media Player Unknown Yes DirectShow[43][44]

Compression details

FFV1 is not strictly an intra-frame format; despite not using inter-frame prediction, it allows the context model to adapt over multiple frames. This can be useful for compression due to the very large size of the context table, but can be disabled to force the encoder to generate a strictly intra-frame bitstream. As the gained compression seems to decrease[51] with later versions of FFV1 (version 2,3), the use of GOP size greater than "1" might disappear in the future.

Prediction process

During progressive scanning of a frame, the difference between a current pixel and its predicted value, judging by neighboring pixels, is sent to the entropy-coding process. The prediction is done as follows:

Prediction = Median( Top, Left, Top + Left - TopLeft )

The third value, "Top + Left - TopLeft", is effectively equivalent to applying the top predictor to the current and the left sample, followed by applying the left predictor to the prediction residual of the top predictor. This method, also known as the gradient, exploits both horizontal and vertical redundancy. So in simple terms the prediction is the median of the top, left, and gradient prediction methods. For improved performance and simplicity, the edges of the frame are assumed to be zero to avoid special cases. The prediction in encoding and decoding is managed using a ring buffer.[52]

Entropy coding process

The residuals are coded using either variable-length coding or arithmetic coding. Both options use a very large context model. The "small" context model uses (11*11*11+1)/2=666 contexts based on the neighboring values of (Left-TopLeft), (TopLeft-Top), and (Top-TopRight). The "large" context model uses (11*11*5*5*5+1)/2=7563 contexts based on the same values as before, but also (TopTop - Top) and (LeftLeft-Left), where "TopTop" is the pixel two above the current one vertically, and "LeftLeft" is the pixel two to the left of the current one. In arithmetic coding, each "context" actually has 32 sub-contexts used for various portions of coding each residual, resulting in a grand total of 242,016 contexts for the "large" model. The arithmetic coder of FFV1 is very similar to (and based on) that of H.264.

Status

On April 16, 2006, a commit-message by Michael Niedermayer confirmed that the bitstream of FFV1 (version 1) is frozen:[53]

<templatestyles src="Template:Blockquote/styles.css" />

"ffv1 and ffvhuff havnt changed since a long time and noone proposed any changes within 1 month after my warning so they are officially no longer experimental and we will gurantee decodeability of files encoded with

the currenzt ffv1/ffvhuff in the future"

Codec

Version 1 (FFV1.1)

The bitstream of version 1 is frozen and considered stable for production use since April 2006.[53] The remark "experimental" in the source code was overlooked back then and removed in March 2010.[54]

Version 2 (FFV1.2)

Version 2 was an intermediate version, that was never officially released and should not be used for production purpose.

Version 3 (FFV1.3)

The bitstream of version 3 is frozen since August 3, 2013.[55] The final commit marking this version as officially released for production usage was on August 26, 2013.[29]

Documentation

Although its documentation remains incomplete, starting April 2012, efforts are being undertaken in order to improve its documentation.[56]

See also

References

<templatestyles src="Reflist/styles.css" />

Cite error: Invalid <references> tag; parameter "group" is allowed only.

Use <references />, or <references group="..." />
  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. https://code.google.com/p/lavfilters/
  3. 3.0 3.1 Lua error in package.lua at line 80: module 'strict' not found.
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. 6.0 6.1 Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. 9.0 9.1 Lua error in package.lua at line 80: module 'strict' not found.
  10. http://www.digitizationguidelines.gov/about/
  11. Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. 13.0 13.1 Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. Lua error in package.lua at line 80: module 'strict' not found.
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. http://vancouver.ca/ctyclerk/archives/
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.
  23. Lua error in package.lua at line 80: module 'strict' not found.
  24. landesmuseum.net
  25. mediathek.at
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. dva-profession.mediathek.at
  28. Lua error in package.lua at line 80: module 'strict' not found.
  29. 29.0 29.1 Lua error in package.lua at line 80: module 'strict' not found.
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. Lua error in package.lua at line 80: module 'strict' not found.
  32. Lua error in package.lua at line 80: module 'strict' not found.
  33. Lua error in package.lua at line 80: module 'strict' not found.
  34. Lua error in package.lua at line 80: module 'strict' not found.
  35. 35.0 35.1 Lua error in package.lua at line 80: module 'strict' not found.
  36. Lua error in package.lua at line 80: module 'strict' not found.
  37. Lua error in package.lua at line 80: module 'strict' not found.
  38. prestocentre.org
  39. Lua error in package.lua at line 80: module 'strict' not found.
  40. Lua error in package.lua at line 80: module 'strict' not found.
  41. Lua error in package.lua at line 80: module 'strict' not found.
  42. Lua error in package.lua at line 80: module 'strict' not found.
  43. 43.0 43.1 43.2 43.3 Lua error in package.lua at line 80: module 'strict' not found.
  44. 44.0 44.1 44.2 Lua error in package.lua at line 80: module 'strict' not found.
  45. Lua error in package.lua at line 80: module 'strict' not found.
  46. Lua error in package.lua at line 80: module 'strict' not found.
  47. Lua error in package.lua at line 80: module 'strict' not found.
  48. Lua error in package.lua at line 80: module 'strict' not found.
  49. Lua error in package.lua at line 80: module 'strict' not found.
  50. Lua error in package.lua at line 80: module 'strict' not found.
  51. Lua error in package.lua at line 80: module 'strict' not found.
  52. Lua error in package.lua at line 80: module 'strict' not found.
  53. 53.0 53.1 Lua error in package.lua at line 80: module 'strict' not found.
  54. Lua error in package.lua at line 80: module 'strict' not found.
  55. Lua error in package.lua at line 80: module 'strict' not found.
  56. Lua error in package.lua at line 80: module 'strict' not found.
  57. Lua error in package.lua at line 80: module 'strict' not found.