3 * Copyright (c) 2001 Fabrice Bellard
4 * Copyright (c) 2005 Alex Beregszaszi
6 * This file is part of FFmpeg.
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.
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.
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
26 int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt)
28 avio_write(s->pb, pkt->data, pkt->size);
33 /* Note: Do not forget to add new entries to the Makefile as well. */
36 AVOutputFormat ff_ac3_muxer = {
38 .long_name = NULL_IF_CONFIG_SMALL("raw AC-3"),
39 .mime_type = "audio/x-ac3",
41 .audio_codec = CODEC_ID_AC3,
42 .video_codec = CODEC_ID_NONE,
43 .write_packet = ff_raw_write_packet,
44 .flags= AVFMT_NOTIMESTAMPS,
49 AVOutputFormat ff_adx_muxer = {
51 .long_name = NULL_IF_CONFIG_SMALL("CRI ADX"),
53 .audio_codec = CODEC_ID_ADPCM_ADX,
54 .video_codec = CODEC_ID_NONE,
55 .write_packet = ff_raw_write_packet,
56 .flags = AVFMT_NOTIMESTAMPS,
60 #if CONFIG_DIRAC_MUXER
61 AVOutputFormat ff_dirac_muxer = {
63 .long_name = NULL_IF_CONFIG_SMALL("raw Dirac"),
65 .audio_codec = CODEC_ID_NONE,
66 .video_codec = CODEC_ID_DIRAC,
67 .write_packet = ff_raw_write_packet,
68 .flags= AVFMT_NOTIMESTAMPS,
72 #if CONFIG_DNXHD_MUXER
73 AVOutputFormat ff_dnxhd_muxer = {
75 .long_name = NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"),
76 .extensions = "dnxhd",
77 .audio_codec = CODEC_ID_NONE,
78 .video_codec = CODEC_ID_DNXHD,
79 .write_packet = ff_raw_write_packet,
80 .flags= AVFMT_NOTIMESTAMPS,
85 AVOutputFormat ff_dts_muxer = {
87 .long_name = NULL_IF_CONFIG_SMALL("raw DTS"),
88 .mime_type = "audio/x-dca",
90 .audio_codec = CODEC_ID_DTS,
91 .video_codec = CODEC_ID_NONE,
92 .write_packet = ff_raw_write_packet,
93 .flags= AVFMT_NOTIMESTAMPS,
98 AVOutputFormat ff_eac3_muxer = {
100 .long_name = NULL_IF_CONFIG_SMALL("raw E-AC-3"),
101 .mime_type = "audio/x-eac3",
102 .extensions = "eac3",
103 .audio_codec = CODEC_ID_EAC3,
104 .video_codec = CODEC_ID_NONE,
105 .write_packet = ff_raw_write_packet,
106 .flags= AVFMT_NOTIMESTAMPS,
110 #if CONFIG_G722_MUXER
111 AVOutputFormat ff_g722_muxer = {
113 .long_name = NULL_IF_CONFIG_SMALL("raw G.722"),
114 .mime_type = "audio/G722",
115 .extensions = "g722",
116 .audio_codec = CODEC_ID_ADPCM_G722,
117 .video_codec = CODEC_ID_NONE,
118 .write_packet = ff_raw_write_packet,
119 .flags= AVFMT_NOTIMESTAMPS,
123 #if CONFIG_G723_1_MUXER
124 AVOutputFormat ff_g723_1_muxer = {
126 .long_name = NULL_IF_CONFIG_SMALL("raw G.723.1"),
127 .mime_type = "audio/g723",
128 .extensions = "tco,rco",
129 .audio_codec = CODEC_ID_G723_1,
130 .video_codec = CODEC_ID_NONE,
131 .write_packet = ff_raw_write_packet,
132 .flags= AVFMT_NOTIMESTAMPS,
136 #if CONFIG_H261_MUXER
137 AVOutputFormat ff_h261_muxer = {
139 .long_name = NULL_IF_CONFIG_SMALL("raw H.261"),
140 .mime_type = "video/x-h261",
141 .extensions = "h261",
142 .audio_codec = CODEC_ID_NONE,
143 .video_codec = CODEC_ID_H261,
144 .write_packet = ff_raw_write_packet,
145 .flags= AVFMT_NOTIMESTAMPS,
149 #if CONFIG_H263_MUXER
150 AVOutputFormat ff_h263_muxer = {
152 .long_name = NULL_IF_CONFIG_SMALL("raw H.263"),
153 .mime_type = "video/x-h263",
154 .extensions = "h263",
155 .audio_codec = CODEC_ID_NONE,
156 .video_codec = CODEC_ID_H263,
157 .write_packet = ff_raw_write_packet,
158 .flags= AVFMT_NOTIMESTAMPS,
162 #if CONFIG_H264_MUXER
163 AVOutputFormat ff_h264_muxer = {
165 .long_name = NULL_IF_CONFIG_SMALL("raw H.264 video format"),
166 .extensions = "h264",
167 .audio_codec = CODEC_ID_NONE,
168 .video_codec = CODEC_ID_H264,
169 .write_packet = ff_raw_write_packet,
170 .flags= AVFMT_NOTIMESTAMPS,
174 #if CONFIG_CAVSVIDEO_MUXER
175 AVOutputFormat ff_cavsvideo_muxer = {
177 .long_name = NULL_IF_CONFIG_SMALL("raw Chinese AVS video"),
178 .extensions = "cavs",
179 .audio_codec = CODEC_ID_NONE,
180 .video_codec = CODEC_ID_CAVS,
181 .write_packet = ff_raw_write_packet,
182 .flags= AVFMT_NOTIMESTAMPS,
187 AVOutputFormat ff_m4v_muxer = {
189 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-4 video format"),
191 .audio_codec = CODEC_ID_NONE,
192 .video_codec = CODEC_ID_MPEG4,
193 .write_packet = ff_raw_write_packet,
194 .flags= AVFMT_NOTIMESTAMPS,
198 #if CONFIG_MJPEG_MUXER
199 AVOutputFormat ff_mjpeg_muxer = {
201 .long_name = NULL_IF_CONFIG_SMALL("raw MJPEG video"),
202 .mime_type = "video/x-mjpeg",
203 .extensions = "mjpg,mjpeg",
204 .audio_codec = CODEC_ID_NONE,
205 .video_codec = CODEC_ID_MJPEG,
206 .write_packet = ff_raw_write_packet,
207 .flags= AVFMT_NOTIMESTAMPS,
212 AVOutputFormat ff_mlp_muxer = {
214 .long_name = NULL_IF_CONFIG_SMALL("raw MLP"),
216 .audio_codec = CODEC_ID_MLP,
217 .video_codec = CODEC_ID_NONE,
218 .write_packet = ff_raw_write_packet,
219 .flags= AVFMT_NOTIMESTAMPS,
224 AVOutputFormat ff_srt_muxer = {
226 .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"),
227 .mime_type = "application/x-subrip",
229 .write_packet = ff_raw_write_packet,
230 .flags = AVFMT_NOTIMESTAMPS,
231 .subtitle_codec = CODEC_ID_SRT,
235 #if CONFIG_TRUEHD_MUXER
236 AVOutputFormat ff_truehd_muxer = {
238 .long_name = NULL_IF_CONFIG_SMALL("raw TrueHD"),
240 .audio_codec = CODEC_ID_TRUEHD,
241 .video_codec = CODEC_ID_NONE,
242 .write_packet = ff_raw_write_packet,
243 .flags= AVFMT_NOTIMESTAMPS,
247 #if CONFIG_MPEG1VIDEO_MUXER
248 AVOutputFormat ff_mpeg1video_muxer = {
249 .name = "mpeg1video",
250 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-1 video"),
251 .mime_type = "video/x-mpeg",
252 .extensions = "mpg,mpeg,m1v",
253 .audio_codec = CODEC_ID_NONE,
254 .video_codec = CODEC_ID_MPEG1VIDEO,
255 .write_packet = ff_raw_write_packet,
256 .flags= AVFMT_NOTIMESTAMPS,
260 #if CONFIG_MPEG2VIDEO_MUXER
261 AVOutputFormat ff_mpeg2video_muxer = {
262 .name = "mpeg2video",
263 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-2 video"),
265 .audio_codec = CODEC_ID_NONE,
266 .video_codec = CODEC_ID_MPEG2VIDEO,
267 .write_packet = ff_raw_write_packet,
268 .flags= AVFMT_NOTIMESTAMPS,
272 #if CONFIG_RAWVIDEO_MUXER
273 AVOutputFormat ff_rawvideo_muxer = {
275 .long_name = NULL_IF_CONFIG_SMALL("raw video format"),
276 .extensions = "yuv,rgb",
277 .audio_codec = CODEC_ID_NONE,
278 .video_codec = CODEC_ID_RAWVIDEO,
279 .write_packet = ff_raw_write_packet,
280 .flags= AVFMT_NOTIMESTAMPS,