2013-06-07 17:29:38 -04:00
|
|
|
|
|
|
|
<p>
|
2017-02-25 00:30:29 -05:00
|
|
|
This chapter provides a short primer on video files, formats and
|
2019-01-04 05:38:43 -05:00
|
|
|
codecs – because it is often cause for confusion:
|
2013-06-07 17:29:38 -04:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2017-02-25 00:30:29 -05:00
|
|
|
A video file is a <dfn>container</dfn>. It usually contains one
|
2019-01-04 05:38:43 -05:00
|
|
|
<dfn>video track</dfn>, one or more <dfn>audio tracks</dfn>, and possibly <dfn>
|
|
|
|
subtitle</dfn> tracks, <dfn>chapters</dfn>…
|
|
|
|
The way these tracks are stored in the file is defined by the
|
2017-02-25 00:30:29 -05:00
|
|
|
<dfn>file format</dfn>. Common formats are
|
2014-02-05 17:26:06 -05:00
|
|
|
avi, mov, ogg, mkv, mpeg, mpeg-ts, mp4, flv, or vob.
|
2013-06-07 17:29:38 -04:00
|
|
|
</p>
|
|
|
|
<p>
|
2014-02-05 17:26:06 -05:00
|
|
|
Each of the tracks by itself is encoded using a <abbr
|
2017-02-25 00:30:29 -05:00
|
|
|
title="Coder-Decoder"><dfn>Codec</dfn></abbr>. Common video codecs
|
2014-02-05 17:26:06 -05:00
|
|
|
are h264, mpeg2, mpeg4, theora, mjpeg, wmv3. Common audio codecs are
|
|
|
|
mp2, mp3, dts, aac, wav/pcm.
|
2013-06-07 17:29:38 -04:00
|
|
|
</p>
|
|
|
|
<p>
|
2017-02-25 00:30:29 -05:00
|
|
|
Not all codecs can be packed into a given format. For example the
|
|
|
|
mpeg format is limited to mpeg2, mpeg4 and mp3 codecs (not entirely true).
|
2019-01-04 05:38:43 -05:00
|
|
|
DVDs do have stringent limitations as well. The opposite would be .avi:
|
2017-02-25 00:30:29 -05:00
|
|
|
pretty much every audio/video codec combination can be contained in an avi
|
2014-02-05 17:26:06 -05:00
|
|
|
file-format.
|
2013-06-07 17:29:38 -04:00
|
|
|
</p>
|
|
|
|
<p>
|
2017-02-25 00:30:29 -05:00
|
|
|
To make things worse, naming conventions for video codecs and formats are
|
2014-02-05 17:26:06 -05:00
|
|
|
often identical (especially MPEG ones) which leads to confusion.
|
2017-02-25 00:30:29 -05:00
|
|
|
All in all it is a very wide and deep field. Suffice there are different
|
2014-02-05 17:26:06 -05:00
|
|
|
uses for different codecs and formats.
|
2013-06-14 14:20:05 -04:00
|
|
|
</p>
|
|
|
|
|
2014-02-05 17:26:06 -05:00
|
|
|
<h2>Ardour specific issues</h2>
|
2013-06-14 14:20:05 -04:00
|
|
|
<p>
|
2017-02-25 00:30:29 -05:00
|
|
|
Ardour supports a wide variety of video file formats codecs. More
|
|
|
|
specifically, Ardour itself actually does not support any video at all
|
2014-02-05 17:26:06 -05:00
|
|
|
but delegates handling of video files to <a
|
2017-02-25 00:30:29 -05:00
|
|
|
href="http://ffmpeg.org/">ffmpeg</a>, which supports over 350 different
|
2014-02-05 17:26:06 -05:00
|
|
|
video codecs and more than 250 file formats.
|
2013-06-07 17:29:38 -04:00
|
|
|
</p>
|
|
|
|
<p>
|
2017-02-25 00:30:29 -05:00
|
|
|
When importing a video into Ardour, it will be <dfn>transcoded</dfn>
|
|
|
|
(changed from one format and codec to another) to avi/mjpeg for internal
|
|
|
|
use (this allows reliable seeking to frames at low CPU cost—the
|
2014-02-05 17:26:06 -05:00
|
|
|
file size will increase, but hard disks are large and fast).
|
2013-06-07 17:29:38 -04:00
|
|
|
</p>
|
|
|
|
<p>
|
2017-02-25 00:30:29 -05:00
|
|
|
The export dialog includes presets for common format and codec
|
2019-01-04 05:38:43 -05:00
|
|
|
combinations (such as DVD, web-video,..). If in doubt, one of the
|
|
|
|
presets should be used.
|
2013-06-14 14:20:05 -04:00
|
|
|
</p>
|
|
|
|
<p>
|
2018-02-13 16:42:39 -05:00
|
|
|
As a last note: every time a video is transcoded, the quality can only get
|
2017-02-25 00:30:29 -05:00
|
|
|
worse. Hence for the final mastering/<abbr
|
|
|
|
title="Multiplexing Audio and Video">muxing</abbr> process, one should
|
2018-02-13 16:42:39 -05:00
|
|
|
always go back and use the original source of the video.
|
2013-06-07 17:29:38 -04:00
|
|
|
</p>
|