--- layout: default title: Transcoding, Formats & Codecs ---

Ardour supports a wide variety of video file-formats and video-codecs. More specifically, ardour actually does not support any video at all but delegates handling of video to ffmpeg which supports over 350 different video-codecs and more than 250 file-formats.

A short primer on video-files, formats and codecs – because it is often cause for confusion:

A video file is a container. It usually contains one video-track and one or more audio-tracks.

How these tracks are stored in the file is defined by the file-format. Common formats are avi, mov, ogg, mkv, mpeg, mpeg-ts, mp4, flv, vob

Each of the tracks by itself in encoded - using a Codec. Common Video-Codecs are h264, mpeg2, mpeg4, theora, mjpeg, wmv3. Audio-Codecs: mp2, mp3, dts, aac, wav/pcm.

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) and generally naming conventions uses for format and codecs are cause for a lot of confusion. DVDs do have stringent limitations…

The export dialog includes presets for common format & codec combinations (such as DVD, web-video,..). If in doubt use one of the presets.

All in all it is a very wide and deep field. Suffice there are different uses for different codecs. When importing a video into ardour, it will be transcoded (transcoding: change from one format and codec to another) to avi/mjpeg for internal use (this allows reliable seeking to frames at low CPU cost - the file-size will increase, but hard-disks are large and fast).

As last note: Every time a video is transcoded the quality gets worse. Hence for the final mastering/muxing process always to back to the original source of the video.