1 /*
2 * RAW muxers
3 * Copyright (c) 2001 Fabrice Bellard
4 * Copyright (c) 2005 Alex Beregszaszi
5 *
6 * This file is part of FFmpeg.
7 *
8 * FFmpeg is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * FFmpeg is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with FFmpeg; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 */
22
23 #include "config_components.h"
24
26
30
32 {
34 return 0;
35 }
36
37 /* Note: Do not forget to add new entries to the Makefile as well. */
38
39 #if CONFIG_AC3_MUXER
43 .p.mime_type = "audio/x-ac3",
44 .p.extensions = "ac3",
52 };
53 #endif
54
55 #if CONFIG_ADX_MUXER
56
58 {
61
65 if (sample_count <= UINT32_MAX) {
69 }
70 }
71
72 return 0;
73 }
74
78 .p.extensions = "adx",
85 .write_trailer = adx_write_trailer,
87 };
88 #endif
89
90 #if CONFIG_APTX_MUXER
94 .p.extensions = "aptx",
102 };
103 #endif
104
105 #if CONFIG_APTX_HD_MUXER
109 .p.extensions = "aptxhd",
117 };
118 #endif
119
120 #if CONFIG_AVS2_MUXER
124 .p.extensions = "avs,avs2",
132 };
133 #endif
134
135 #if CONFIG_AVS3_MUXER
139 .p.extensions = "avs3",
147 };
148 #endif
149
150
151 #if CONFIG_CAVSVIDEO_MUXER
153 .
p.
name =
"cavsvideo",
155 .p.extensions = "cavs",
163 };
164 #endif
165
166 #if CONFIG_CODEC2RAW_MUXER
168 .
p.
name =
"codec2raw",
177 };
178 #endif
179
180
181 #if CONFIG_DATA_MUXER
183 {
184 if (
s->nb_streams != 1) {
187 }
188 return 0;
189 }
190
194 .init = force_one_stream,
197 };
198 #endif
199
200 #if CONFIG_DFPWM_MUXER
204 .p.extensions = "dfpwm",
212 };
213 #endif
214
215 #if CONFIG_DIRAC_MUXER
219 .p.extensions = "drc,vc2",
227 };
228 #endif
229
230 #if CONFIG_DNXHD_MUXER
234 .p.extensions = "dnxhd,dnxhr",
242 };
243 #endif
244
245 #if CONFIG_DTS_MUXER
249 .p.mime_type = "audio/x-dca",
250 .p.extensions = "dts",
258 };
259 #endif
260
261 #if CONFIG_EAC3_MUXER
265 .p.mime_type = "audio/x-eac3",
266 .p.extensions = "eac3,ec3",
274 };
275 #endif
276
277 #if CONFIG_G722_MUXER
281 .p.mime_type = "audio/G722",
282 .p.extensions = "g722",
290 };
291 #endif
292
293 #if CONFIG_G723_1_MUXER
297 .p.mime_type = "audio/g723",
298 .p.extensions = "tco,rco",
306 };
307 #endif
308
309 #if CONFIG_G726_MUXER
320 };
321 #endif
322
323 #if CONFIG_G726LE_MUXER
334 };
335 #endif
336
337 #if CONFIG_GSM_MUXER
341 .p.mime_type = "audio/x-gsm",
342 .p.extensions = "gsm",
350 };
351 #endif
352
353 #if CONFIG_H261_MUXER
357 .p.mime_type = "video/x-h261",
358 .p.extensions = "h261",
366 };
367 #endif
368
369 #if CONFIG_H263_MUXER
373 .p.mime_type = "video/x-h263",
374 .p.extensions = "h263",
382 };
383 #endif
384
385 #if CONFIG_H264_MUXER
388 {
392 return 1;
393 }
394
398 .p.extensions = "h264,264",
405 .check_bitstream = h264_check_bitstream,
407 };
408 #endif
409
410 #if CONFIG_VVC_MUXER
413 {
417 return 1;
418 }
419
423 .p.extensions = "vvc,h266,266",
430 .check_bitstream = vvc_check_bitstream,
432 };
433 #endif
434
435 #if CONFIG_HEVC_MUXER
438 {
442 return 1;
443 }
444
448 .p.extensions = "hevc,h265,265",
455 .check_bitstream = hevc_check_bitstream,
457 };
458 #endif
459
460 #if CONFIG_EVC_MUXER
464 .p.extensions = "evc",
472 };
473 #endif
474
475 #if CONFIG_M4V_MUXER
479 .p.extensions = "m4v",
487 };
488 #endif
489
490 #if CONFIG_MJPEG_MUXER
494 .p.mime_type = "video/x-mjpeg",
495 .p.extensions = "mjpg,mjpeg",
503 };
504 #endif
505
506 #if CONFIG_MLP_MUXER
510 .p.extensions = "mlp",
518 };
519 #endif
520
521 #if CONFIG_MP2_MUXER
525 .p.mime_type = "audio/mpeg",
526 .p.extensions = "mp2,m2a,mpa",
534 };
535 #endif
536
537 #if CONFIG_MPEG1VIDEO_MUXER
539 .
p.
name =
"mpeg1video",
541 .p.mime_type = "video/mpeg",
542 .p.extensions = "mpg,mpeg,m1v",
550 };
551 #endif
552
553 #if CONFIG_MPEG2VIDEO_MUXER
555 .
p.
name =
"mpeg2video",
557 .p.extensions = "m2v",
565 };
566 #endif
567
568 #if CONFIG_OBU_MUXER
571 {
573 }
574
578 .p.extensions = "obu",
585 .check_bitstream = obu_check_bitstream,
587 };
588 #endif
589
590 #if CONFIG_RAWVIDEO_MUXER
592 .
p.
name =
"rawvideo",
594 .p.extensions = "yuv,rgb",
600 };
601 #endif
602
603 #if CONFIG_SBC_MUXER
607 .p.mime_type = "audio/x-sbc",
608 .p.extensions = "sbc,msbc",
616 };
617 #endif
618
619 #if CONFIG_TRUEHD_MUXER
623 .p.extensions = "thd",
631 };
632 #endif
633
634 #if CONFIG_VC1_MUXER
638 .p.extensions = "vc1",
646 };
647 #endif