]> Shamusworld >> Repos - ardour-manual-diverged/blob - _manual/24_video-timeline/02_transcoding_formats_codecs.html
ba5ae178a9ef90d78096fcc1ca18d1802f878e68
[ardour-manual-diverged] / _manual / 24_video-timeline / 02_transcoding_formats_codecs.html
1 ---
2 layout: default
3 title: Transcoding, Formats & Codecs
4 ---
5
6 <p>
7   This chapter provides a short primer on video files, formats and 
8   codecs – because it is often cause for confusion:
9 </p>
10
11 <p>
12   A video file is a <dfn>container</dfn>. It usually contains one 
13   <dfn>video track</dfn> and one or more <dfn>audio tracks</dfn>. 
14   How these tracks are stored in the file is defined by the 
15   <dfn>file format</dfn>. Common formats are 
16   avi, mov, ogg, mkv, mpeg, mpeg-ts, mp4, flv, or vob.
17 </p>
18 <p>
19   Each of the tracks by itself is encoded using a <abbr
20   title="Coder-Decoder"><dfn>Codec</dfn></abbr>. Common video codecs 
21   are h264, mpeg2, mpeg4, theora, mjpeg, wmv3. Common audio codecs are
22   mp2, mp3, dts, aac, wav/pcm.
23 </p>
24 <p>
25   Not all codecs can be packed into a given format. For example the 
26   mpeg format is limited to mpeg2, mpeg4 and mp3 codecs (not entirely true). 
27   DVDs do have stringent limitations as well. The opposite would be .avi; 
28   pretty much every audio/video codec combination can be contained in an avi 
29   file-format.
30 </p>
31 <p>
32   To make things worse, naming conventions for video codecs and formats are 
33   often identical (especially MPEG ones) which leads to confusion.
34   All in all it is a very wide and deep field. Suffice there are different 
35   uses for different codecs and formats.
36 </p>
37
38 <h2>Ardour specific issues</h2>
39 <p>
40   Ardour supports a wide variety of video file formats codecs. More 
41   specifically, Ardour itself actually does not support any video at all 
42   but delegates handling of video files to <a
43   href="http://ffmpeg.org/">ffmpeg</a>, which supports over 350 different 
44   video codecs and more than 250 file formats.
45 </p>
46 <p>
47   When importing a video into Ardour, it will be <dfn>transcoded</dfn> 
48   (changed from one format and codec to another) to avi/mjpeg for internal 
49   use (this allows reliable seeking to frames at low CPU cost &mdash; the 
50   file size will increase, but hard disks are large and fast).
51 </p>
52 <p>
53   The export dialog includes presets for common format and codec 
54   combinations (such as DVD, web-video,..). If in doubt use one of the 
55   presets.
56 </p>
57 <p>
58   As last note: every time a video is transcoded, the quality can only get 
59   worse. Hence for the final mastering/<abbr 
60   title="Multiplexing Audio and Video">muxing</abbr> process, one should 
61   always to back and use the original source of the video.
62 </p>