FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
matroska.c
Go to the documentation of this file.
1 /*
2  * Matroska common data
3  * Copyright (c) 2003-2004 The ffmpeg Project
4  *
5  * This file is part of FFmpeg.
6  *
7  * FFmpeg is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * FFmpeg is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with FFmpeg; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 #include "matroska.h"
23 
24 /* If you add a tag here that is not in ff_codec_bmp_tags[]
25  or ff_codec_wav_tags[], add it also to additional_audio_tags[]
26  or additional_video_tags[] in matroskaenc.c */
28  {"A_AAC" , AV_CODEC_ID_AAC},
29  {"A_AC3" , AV_CODEC_ID_AC3},
30  {"A_ALAC" , AV_CODEC_ID_ALAC},
31  {"A_DTS" , AV_CODEC_ID_DTS},
32  {"A_EAC3" , AV_CODEC_ID_EAC3},
33  {"A_FLAC" , AV_CODEC_ID_FLAC},
34  {"A_MLP" , AV_CODEC_ID_MLP},
35  {"A_MPEG/L2" , AV_CODEC_ID_MP2},
36  {"A_MPEG/L1" , AV_CODEC_ID_MP2},
37  {"A_MPEG/L3" , AV_CODEC_ID_MP3},
38  {"A_OPUS", AV_CODEC_ID_OPUS},
39  {"A_PCM/FLOAT/IEEE" , AV_CODEC_ID_PCM_F32LE},
40  {"A_PCM/FLOAT/IEEE" , AV_CODEC_ID_PCM_F64LE},
41  {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S16BE},
42  {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S24BE},
43  {"A_PCM/INT/BIG" , AV_CODEC_ID_PCM_S32BE},
44  {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S16LE},
45  {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S24LE},
46  {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_S32LE},
47  {"A_PCM/INT/LIT" , AV_CODEC_ID_PCM_U8},
48  {"A_QUICKTIME/QDM2" , AV_CODEC_ID_QDM2},
49  {"A_REAL/14_4" , AV_CODEC_ID_RA_144},
50  {"A_REAL/28_8" , AV_CODEC_ID_RA_288},
51  {"A_REAL/ATRC" , AV_CODEC_ID_ATRAC3},
52  {"A_REAL/COOK" , AV_CODEC_ID_COOK},
53  {"A_REAL/SIPR" , AV_CODEC_ID_SIPR},
54  {"A_TRUEHD" , AV_CODEC_ID_TRUEHD},
55  {"A_TTA1" , AV_CODEC_ID_TTA},
56  {"A_VORBIS" , AV_CODEC_ID_VORBIS},
57  {"A_WAVPACK4" , AV_CODEC_ID_WAVPACK},
58 
59  {"S_TEXT/UTF8" , AV_CODEC_ID_SUBRIP},
60  {"S_TEXT/UTF8" , AV_CODEC_ID_TEXT},
61  {"S_TEXT/UTF8" , AV_CODEC_ID_SRT},
62  {"S_TEXT/ASCII" , AV_CODEC_ID_TEXT},
63  {"S_TEXT/ASS" , AV_CODEC_ID_SSA},
64  {"S_TEXT/SSA" , AV_CODEC_ID_SSA},
65  {"S_ASS" , AV_CODEC_ID_SSA},
66  {"S_SSA" , AV_CODEC_ID_SSA},
67  {"S_VOBSUB" , AV_CODEC_ID_DVD_SUBTITLE},
68  {"S_HDMV/PGS" , AV_CODEC_ID_HDMV_PGS_SUBTITLE},
69 
70  {"V_DIRAC" , AV_CODEC_ID_DIRAC},
71  {"V_MJPEG" , AV_CODEC_ID_MJPEG},
72  {"V_MPEG1" , AV_CODEC_ID_MPEG1VIDEO},
73  {"V_MPEG2" , AV_CODEC_ID_MPEG2VIDEO},
74  {"V_MPEG4/ISO/ASP" , AV_CODEC_ID_MPEG4},
75  {"V_MPEG4/ISO/AP" , AV_CODEC_ID_MPEG4},
76  {"V_MPEG4/ISO/SP" , AV_CODEC_ID_MPEG4},
77  {"V_MPEG4/ISO/AVC" , AV_CODEC_ID_H264},
78  {"V_MPEG4/MS/V3" , AV_CODEC_ID_MSMPEG4V3},
79  {"V_PRORES" , AV_CODEC_ID_PRORES},
80  {"V_REAL/RV10" , AV_CODEC_ID_RV10},
81  {"V_REAL/RV20" , AV_CODEC_ID_RV20},
82  {"V_REAL/RV30" , AV_CODEC_ID_RV30},
83  {"V_REAL/RV40" , AV_CODEC_ID_RV40},
84  {"V_SNOW" , AV_CODEC_ID_SNOW},
85  {"V_THEORA" , AV_CODEC_ID_THEORA},
86  {"V_UNCOMPRESSED" , AV_CODEC_ID_RAWVIDEO},
87  {"V_VP8" , AV_CODEC_ID_VP8},
88 
89  {"" , AV_CODEC_ID_NONE}
90 };
91 
93  {"text/plain" , AV_CODEC_ID_TEXT},
94  {"image/gif" , AV_CODEC_ID_GIF},
95  {"image/jpeg" , AV_CODEC_ID_MJPEG},
96  {"image/png" , AV_CODEC_ID_PNG},
97  {"image/tiff" , AV_CODEC_ID_TIFF},
98  {"application/x-truetype-font", AV_CODEC_ID_TTF},
99  {"application/x-font" , AV_CODEC_ID_TTF},
100  {"application/vnd.ms-opentype", AV_CODEC_ID_OTF},
101 
102  {"" , AV_CODEC_ID_NONE}
103 };
104 
106  { "LEAD_PERFORMER", "performer" },
107  { "PART_NUMBER" , "track" },
108  { 0 }
109 };
110 
112  "mono",
113  "left_right",
114  "bottom_top",
115  "top_bottom",
116  "checkerboard_rl",
117  "checkerboard_lr",
118  "row_interleaved_rl",
119  "row_interleaved_lr",
120  "col_interleaved_rl",
121  "col_interleaved_lr",
122  "anaglyph_cyan_red",
123  "right_left",
124  "anaglyph_green_magenta",
125  "block_lr",
126  "block_rl",
127 };
128 
130  "left",
131  "right",
132  "background",
133 };