FFV1
   HOME

TheInfoList



OR:

FFV1 (short for FF Video 1) is a
lossless Lossless compression is a class of data compression that allows the original data to be perfectly reconstructed from the compressed data with no loss of information. Lossless compression is possible because most real-world data exhibits statisti ...
intra-frame Intra-frame coding is a data compression technique used within a video frame, enabling smaller file sizes and lower bitrates, with little or no loss in quality. Since neighboring pixels within an image are often very similar, rather than storing ...
video coding format A video coding format (or sometimes video compression format) is a content representation format of digital video content, such as in a data file or bitstream. It typically uses a standardized video compression algorithm, most commonly based on ...
. FFV1 is particularly popular for its performance regarding speed and size, compared to other lossless preservation codecs, such as
Motion JPEG 2000 Motion JPEG 2000 (MJ2 or MJP2) is a file format for motion sequences of JPEG 2000 images and associated audio, based on the MP4 and QuickTime format. Filename extensions for Motion JPEG 2000 video files are .mj2 and .mjp2, as defined in RFC 3745 ...
. The encoder and decoder have been part of the free, open-source library
libavcodec libavcodec is a free and open-source library of codecs for encoding and decoding video and audio data. libavcodec is an integral part of many open-source multimedia applications and frameworks. The popular MPV, xine and VLC media players use ...
in the
FFmpeg FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing vide ...
project since June 2003. FFV1 is also included in
ffdshow ffdshow is an open-source unmaintained codec library that is mainly used for decoding of video in the MPEG-4 ASP (e.g. encoded with DivX or Xvid) and H.264/MPEG-4 AVC video formats, but it supports numerous other video and audio formats as well. ...
and
LAV Filters FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing video ...
, which makes the video codec available to
Microsoft Windows Windows is a Product lining, product line of Proprietary software, proprietary graphical user interface, graphical operating systems developed and marketed by Microsoft. It is grouped into families and subfamilies that cater to particular sec ...
applications that support system-wide codecs over
Video for Windows Video for Windows was a suite of video-playing and editing software introduced by Microsoft in 1992. A runtime version for viewing videos only was made available as a free add-on to Windows 3.1, which then became an integral component of Windows ...
(VfW) or
DirectShow DirectShow (sometimes abbreviated as DS or DShow), codename Quartz, is a multimedia framework and API produced by Microsoft for software developers to perform various operations with media files or streams. It is the replacement for Microsoft's ea ...
. FFV1 has been standardized at the IETF under RFC 9043. The European Broadcasting Union (EBU) lists FFV1 under the codec-family index "31" in their combined list of video codec references.


Video archiving

For long-term preservation of digital video sustainable container formats as well as audio/video codecs are necessary. There is no consensus as of 2013 among the archival community as to which file format or codecs should be used for preservation purposes for digital video. The previously proclaimed encodings were
Motion JPEG 2000 Motion JPEG 2000 (MJ2 or MJP2) is a file format for motion sequences of JPEG 2000 images and associated audio, based on the MP4 and QuickTime format. Filename extensions for Motion JPEG 2000 video files are .mj2 and .mjp2, as defined in RFC 3745 ...
and uncompressed video. FFV1 proved to be a viable archival encoding and the
U.S. Library of Congress The Library of Congress (LOC) is a research library in Washington, D.C., serving as the library and research service for the United States Congress and the ''de facto'' national library of the United States. It also administers copyright law t ...
began regarding it as a suitable option for preservation encoding in 2014. Compared to lossless JPEG 2000, FFV1 features comparable compression ratios and lower computing requirements. As of 2014, it is being used by archives, particularly where the collections do not feature extensive broadcast materials and instead consist of oral history and the like. Since around 2015, the European PREFORMA Project started working on the standardisation of FFV1 through the Internet Engineering Task Force (IETF). It was standardised in August 2021 as RFC 9043. The PERFORMA Project also implemented a conformance checker for FFV1 in the
Matroska Matroska (styled Matroška) is a project to create a container format that can hold an unlimited number of video, audio, picture, or subtitle tracks in one file. The Matroska Multimedia Container is similar in concept to other containers like ...
container. Details of FFV1's standardization plan have been prepared by MediaArea (authors of
MediaInfo MediaInfo is a free software, free, cross-platform and open-source software, open-source program that displays technical information about media files, as well as tag information for many audio and video files. It is used in many programs such as ...
) as part of their conformance checking tool Media CONCH. It is also listed as a format option for long-term preservation of moving images on sites of the
Library of Congress The Library of Congress (LOC) is a research library in Washington, D.C., serving as the library and research service for the United States Congress and the ''de facto'' national library of the United States. It also administers Copyright law o ...
and the
State Records Authority of New South Wales The NSW State Archives Collection is an agency of the New South Wales Government that archives and manages the records of the history of the Government of New South Wales in Australia and is part of Museums of History NSW. Prior to 2022, it was ...
. The
Society of American Archivists The Society of American Archivists is the oldest and largest archivist Voluntary association, association in North America, serving the educational and informational needs of more than 5,000 individual archivist and institutional members. Establi ...
published a paper in August 2014, suggesting only FFV1 as preservation codec for video. The
Library of Congress The Library of Congress (LOC) is a research library in Washington, D.C., serving as the library and research service for the United States Congress and the ''de facto'' national library of the United States. It also administers Copyright law o ...
identified
AVI Avi is a given name, usually masculine, often a diminutive of Avram (given name), Avram, Avraham, etc. It is sometimes feminine and a diminutive of the Hebrew spelling of Abigail (name), Abigail. People with the given name include: * Avi (author ...
and
Matroska Matroska (styled Matroška) is a project to create a container format that can hold an unlimited number of video, audio, picture, or subtitle tracks in one file. The Matroska Multimedia Container is similar in concept to other containers like ...
as common container formats for FFV1.


Use as a preservation codec

Within the video archiving domain, interest in FFV1 is increasing. Companies are also picking up FFV1 support. For example, NOA announced support for the FFV1 in their product line in July 2013 and KEM-Studiotechnik released a film-scanner with FFV1 output in November 2013. In an interview for ''
The New York Times Magazine ''The New York Times Magazine'' is an American Sunday magazine included with the Sunday edition of ''The New York Times''. It features articles longer than those typically in the newspaper and has attracted many notable contributors. The magazi ...
'', Bertram Lyons from the
Library of Congress The Library of Congress (LOC) is a research library in Washington, D.C., serving as the library and research service for the United States Congress and the ''de facto'' national library of the United States. It also administers Copyright law o ...
says: In January 2013, the possible use and adoption of FFV1 as an archiving codec was addressed in the issue of PrestoCentre's ''AV Insider'' magazine: PACKED - the "Centre of Expertise in Digital Heritage" in Belgium, say in an article about video formats for archiving: In 2015, the
International Federation of Television Archives The Fédération Internationale des Archives de Télévision - International Federation of Television Archives (FIAT/IFTA) is a worldwide association of institutions, commercial companies and individuals managing or with a special interest in a ...
(FIAT/IFTA) mentioned FFV1 explicitly in their call-for-presentations for their annual World Conference, asking "Is FFV1 the new
JPEG2000 JPEG 2000 (JP2) is an image compression standard and coding system. It was developed from 1997 to 2000 by a Joint Photographic Experts Group committee chaired by Touradj Ebrahimi (later the JPEG president), with the intention of superseding their ...
"?. A workshop titled "FFV1 for Preservation" is also featured.


List of institutions known to use FFV1

;Austria * Austrian Museum of Modern Art (MuMoK): For their collection of art videos. * Danube University Krems (Lower Austria/Niederösterreich) *
Filmarchiv Austria The Filmarchiv Austria ("Austrian Film Archive") is an organisation for the discovery, reconstruction and preservation of Austrian film record material: films themselves, literature about film and cinema, or film-related periodicals. With over 260 ...
(Austrian Film Archive): For their telecined DigiBeta copies of some films. * (State Museum of Lower Austria) *
Österreichische Mediathek The Österreichische Mediathek ("Austrian Mediatheque") is the Austrian archive for sound recordings and videos on cultural and contemporary history. It was founded in 1960 as Österreichische Phonothek (Austrian Phonothek) by the Ministry of Educ ...
(Austria's national audio/video archive) ;Australia *
Museum Victoria Museums Victoria is an organisation that includes a number of museums and related bodies in Melbourne. These include Melbourne Museum, Immigration Museum, Scienceworks (Melbourne), Scienceworks, IMAX Melbourne, a research institute, the UNESCO W ...
;Belgium * , the Flemish Institute for Archives announced in June 2020 that they would start a major operation transcoding and rewrapping their MXF wrapped JPEG2000 files resulting from digitisation projects for the cultural heritage sector material to MKV wrapped FFV1 files. In 2019 they had already announced that MKV-FFV1 would be the mezzanine format of their migration project for DV, DVCAM and DVCPRO cassettes. ;Canada * City of Vancouver Archives *
Musée d'art contemporain de Montréal The Musée d'art contemporain de Montréal (, MACM) is a contemporary art museum in Montreal, Quebec, Canada. It is located on the Place des festivals in the Quartier des spectacles and is part of the Place des Arts complex. Founded in 1964, it ...
;France *
Cinémathèque Française A cinematheque is an archive of films and film-related objects with an exhibition venue. Similarly to a book library (bibliothèque in French), a cinematheque is responsible for preserving and making available to the public film heritage. Typically ...
;Germany * SMIDAK Filmproduktion ;Ireland
Irish Film Institute
;Slovakia * RTVS Slovakia ;Slovenia *
RTV Slovenija Radiotelevizija Slovenija () – usually abbreviated to RTV Slovenija, RTV SLO (or simply RTV within Slovenia) – is Slovenia's national public broadcasting organization. Based in Ljubljana, it has regional broadcasting centres in Koper and Ma ...
;Switzerland * AV Preservation by reto.ch * HTW Chur
Archives de la Ville de Lausanne
;United Arab Emirates * Sharjah Media Corporation (SMC). ;United Kingdom *
The National Archives (United Kingdom) The National Archives (TNA; ) is a non-ministerial government department, non-ministerial department of the Government of the United Kingdom. Its parent department is the Department for Culture, Media and Sport of the United Kingdom, United K ...

The Media Archive for Central England
*
BFI National Archive The BFI National Archive is a department of the British Film Institute, and one of the largest film archives in the world. It was founded as the National Film Library in 1935; its first curator was Ernest Lindgren. In 1955, its name became th ...
(the UK's national moving image archive)
The Box, Plymouth
;United States *
American Archive of Public Broadcasting The American Archive of Public Broadcasting (AAPB) is a collaboration between the Library of Congress and WGBH Educational Foundation, founded through the efforts of the Corporation for Public Broadcasting (CPB). The AAPB is a national effort to di ...
*
Library of Congress The Library of Congress (LOC) is a research library in Washington, D.C., serving as the library and research service for the United States Congress and the ''de facto'' national library of the United States. It also administers Copyright law o ...
*
Smithsonian Institution The Smithsonian Institution ( ), or simply the Smithsonian, is a group of museums, Education center, education and Research institute, research centers, created by the Federal government of the United States, U.S. government "for the increase a ...
* City University of New York Television (CUNY TV) *
Duke University Libraries Duke University Libraries is the library system of Duke University, serving the university's students and faculty. The Libraries collectively hold some 6 million volumes. The collection contains 17.7 million manuscripts, 1.2 million public docum ...
*
Indiana University Indiana University (IU) is a state university system, system of Public university, public universities in the U.S. state of Indiana. The system has two core campuses, five regional campuses, and two regional centers under the administration o ...
* National Library of Medicine (Washington DC) *
New York Public Library The New York Public Library (NYPL) is a public library system in New York City. With nearly 53 million items and 92 locations, the New York Public Library is the second-largest public library in the United States behind the Library of Congress a ...
* University of Georgia, Walter J. Brown Media Archives * University of Notre Dame Archives *
University of Texas Libraries A university () is an educational institution, institution of tertiary education and research which awards academic degrees in several Discipline (academia), academic disciplines. ''University'' is derived from the Latin phrase , which roughly ...
(FFV1 in MKV for DVD preservation)


Development and improvements

The "Österreichische Mediathek" has also developed DVA-Profession a
Free Software Free software, libre software, libreware sometimes known as freedom-respecting software is computer software distributed open-source license, under terms that allow users to run the software for any purpose as well as to study, change, distribut ...
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 FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing vide ...
), Peter Bubestinger-Steindl and Dave Rice; see #Versions below.


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 FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing vide ...
's or
Libav FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing video ...
's libraries in order to do so. The list is far from being complete, and will be augmented over time:


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 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: : The third value, , 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 The median of a set of numbers is the value separating the higher half from the lower half of a Sample (statistics), data sample, a statistical population, population, or a probability distribution. For a data set, it may be thought of as the “ ...
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 In computer science, a circular buffer, circular queue, cyclic buffer or ring buffer is a data structure that uses a single, fixed-size buffer as if it were connected end-to-end. This structure lends itself easily to buffering data streams. Ther ...
.


Entropy coding process

The residuals are coded using either Golomb-Rice coding or
range coding Range coding (or range encoding) is an entropy coding method defined by G. Nigel N. Martin in a 1979 paper,
. Both options use a very large context model. The "small" context model uses contexts based on the neighboring values of , , and . The "large" context model uses contexts based on the same values as before, but also and , where is the pixel two above the current one vertically, and is the pixel two to the left of the current one. In range 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. Early experimental versions of FFV1 used the CABAC Arithmetic coder from H.264, but due to the uncertain patent/royalty situation, as well as its slightly worse performance, CABAC was replaced by range coding.


Status

On April 16, 2006, a commit-message by Michael Niedermayer confirmed that the bitstream of FFV1 (version 1) is frozen:
"ffv1 and ffvhuff haven't changed since a long time and no one proposed any changes within 1 month after my warning so they are officially no longer experimental and we will guarantee decodability of files encoded with the current ffv1/ffvhuff in the future"


Versions

; Version 1 (FFV1.1) :The bitstream of version 1 is frozen and has been considered stable for production use since April 2006. :The remark "experimental" in the source code was overlooked back then and removed in March 2010. ; Version 2 (FFV1.2) :Version 2 was an intermediate version that was never officially released and should not be used for production purposes. ; Version 3 (FFV1.3): :The bitstream of version 3 is frozen since August 3, 2013. The final commit marking this version as officially released for production usage was on August 26, 2013. :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, and officially released stable for production in August 2013. :In August 2016, support for
48bit/16bpc (=bits per component) in
RGB The RGB color model is an additive color model in which the red, green, and blue primary colors of light are added together in various ways to reproduce a broad array of colors. The name of the model comes from the initials of the three ...
was added to the reference codec. Before that, 16bpc in FFV1 were only supported in
YCbCr YCbCr, Y′CbCr, also written as YCBCR or Y′CBCR, is a family of color spaces used as a part of the color image pipeline in digital video and digital photography, photography systems. Like YPbPr, YPBPR, it is based on RGB primaries; the two ...
and RGB was limited to 14bpc. :There is still no VFW multithreaded encoder of FFV1.3 for Windows in 2017. FFdshow can encode only an FFV1.1 stream with a single CPU core. ; Version 4 (FFV1.4) :Improvements beyond FFV1.3 are works in progress and being discussed on the IETF "" mailing list. :Planned are additional support for color-handling, especially non-linear/logarithmic
color spaces A color space is a specific organization of colors. In combination with color profiling supported by various physical devices, it supports reproducible representations of colorwhether such representation entails an analog or a digital represen ...
. :The Draft standard is hosted on GitHub and IETF Datatracker.


Documentation

The current authoritative documentation was started in April 2012, and stayed in a very basic state until 2015. In 2015, as part of the IETF standardization process, the documentation is now improved and reviewed by the working group in close cooperation with Michael Niedermayer.


See also

*
FFmpeg FFmpeg is a free and open-source software project consisting of a suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the command-line ffmpeg tool itself, designed for processing vide ...
* List of lossless compression video codecs


References


External links

* FFV1 Video Coding Format Versions 0, 1, and 3 (Published 2021)
FFV1 Video Coding Format Version 4
Expired Internet-Draft on
IETF The Internet Engineering Task Force (IETF) is a standards organization for the Internet standard, Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster ...
Datatracker, last updated 2024-07-23 (latest revision 2024-01-17)
FFV1 Specification development repository
on
GitHub GitHub () is a Proprietary software, proprietary developer platform that allows developers to create, store, manage, and share their code. It uses Git to provide distributed version control and GitHub itself provides access control, bug trackin ...
* Format description o
FFV1
an
Matroska File Format with FFV1 video encoding
from
Library of Congress The Library of Congress (LOC) is a research library in Washington, D.C., serving as the library and research service for the United States Congress and the ''de facto'' national library of the United States. It also administers Copyright law o ...

Codec Encoding for LossLess Archiving and Realtime transmission (CELLAR)
Charter on IETF Datatracker :The goals of the specification effort are defined within the charter of the cellar working group of IETF.

by
Moscow State University Moscow State University (MSU), officially M. V. Lomonosov Moscow State University,. is a public university, public research university in Moscow, Russia. The university includes 15 research institutes, 43 faculties, more than 300 departments, a ...
Graphics & Media Lab (Video Group) {{DEFAULTSORT:Ffv1 Free video codecs Computer-related introductions in 2003