00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include "avformat.h"
00024 #include "rawenc.h"
00025
00026 int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt)
00027 {
00028 avio_write(s->pb, pkt->data, pkt->size);
00029 avio_flush(s->pb);
00030 return 0;
00031 }
00032
00033
00034
00035 #if CONFIG_AC3_MUXER
00036 AVOutputFormat ff_ac3_muxer = {
00037 .name = "ac3",
00038 .long_name = NULL_IF_CONFIG_SMALL("raw AC-3"),
00039 .mime_type = "audio/x-ac3",
00040 .extensions = "ac3",
00041 .audio_codec = CODEC_ID_AC3,
00042 .video_codec = CODEC_ID_NONE,
00043 .write_packet = ff_raw_write_packet,
00044 .flags= AVFMT_NOTIMESTAMPS,
00045 };
00046 #endif
00047
00048 #if CONFIG_DIRAC_MUXER
00049 AVOutputFormat ff_dirac_muxer = {
00050 .name = "dirac",
00051 .long_name = NULL_IF_CONFIG_SMALL("raw Dirac"),
00052 .extensions = "drc",
00053 .audio_codec = CODEC_ID_NONE,
00054 .video_codec = CODEC_ID_DIRAC,
00055 .write_packet = ff_raw_write_packet,
00056 .flags= AVFMT_NOTIMESTAMPS,
00057 };
00058 #endif
00059
00060 #if CONFIG_DNXHD_MUXER
00061 AVOutputFormat ff_dnxhd_muxer = {
00062 .name = "dnxhd",
00063 .long_name = NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"),
00064 .extensions = "dnxhd",
00065 .audio_codec = CODEC_ID_NONE,
00066 .video_codec = CODEC_ID_DNXHD,
00067 .write_packet = ff_raw_write_packet,
00068 .flags= AVFMT_NOTIMESTAMPS,
00069 };
00070 #endif
00071
00072 #if CONFIG_DTS_MUXER
00073 AVOutputFormat ff_dts_muxer = {
00074 .name = "dts",
00075 .long_name = NULL_IF_CONFIG_SMALL("raw DTS"),
00076 .mime_type = "audio/x-dca",
00077 .extensions = "dts",
00078 .audio_codec = CODEC_ID_DTS,
00079 .video_codec = CODEC_ID_NONE,
00080 .write_packet = ff_raw_write_packet,
00081 .flags= AVFMT_NOTIMESTAMPS,
00082 };
00083 #endif
00084
00085 #if CONFIG_EAC3_MUXER
00086 AVOutputFormat ff_eac3_muxer = {
00087 .name = "eac3",
00088 .long_name = NULL_IF_CONFIG_SMALL("raw E-AC-3"),
00089 .mime_type = "audio/x-eac3",
00090 .extensions = "eac3",
00091 .audio_codec = CODEC_ID_EAC3,
00092 .video_codec = CODEC_ID_NONE,
00093 .write_packet = ff_raw_write_packet,
00094 .flags= AVFMT_NOTIMESTAMPS,
00095 };
00096 #endif
00097
00098 #if CONFIG_G722_MUXER
00099 AVOutputFormat ff_g722_muxer = {
00100 .name = "g722",
00101 .long_name = NULL_IF_CONFIG_SMALL("raw G.722"),
00102 .mime_type = "audio/G722",
00103 .extensions = "g722",
00104 .audio_codec = CODEC_ID_ADPCM_G722,
00105 .video_codec = CODEC_ID_NONE,
00106 .write_packet = ff_raw_write_packet,
00107 .flags= AVFMT_NOTIMESTAMPS,
00108 };
00109 #endif
00110
00111 #if CONFIG_G723_1_MUXER
00112 AVOutputFormat ff_g723_1_muxer = {
00113 .name = "g723_1",
00114 .long_name = NULL_IF_CONFIG_SMALL("raw G.723.1"),
00115 .mime_type = "audio/g723",
00116 .extensions = "tco,rco",
00117 .audio_codec = CODEC_ID_G723_1,
00118 .video_codec = CODEC_ID_NONE,
00119 .write_packet = ff_raw_write_packet,
00120 .flags= AVFMT_NOTIMESTAMPS,
00121 };
00122 #endif
00123
00124 #if CONFIG_H261_MUXER
00125 AVOutputFormat ff_h261_muxer = {
00126 .name = "h261",
00127 .long_name = NULL_IF_CONFIG_SMALL("raw H.261"),
00128 .mime_type = "video/x-h261",
00129 .extensions = "h261",
00130 .audio_codec = CODEC_ID_NONE,
00131 .video_codec = CODEC_ID_H261,
00132 .write_packet = ff_raw_write_packet,
00133 .flags= AVFMT_NOTIMESTAMPS,
00134 };
00135 #endif
00136
00137 #if CONFIG_H263_MUXER
00138 AVOutputFormat ff_h263_muxer = {
00139 .name = "h263",
00140 .long_name = NULL_IF_CONFIG_SMALL("raw H.263"),
00141 .mime_type = "video/x-h263",
00142 .extensions = "h263",
00143 .audio_codec = CODEC_ID_NONE,
00144 .video_codec = CODEC_ID_H263,
00145 .write_packet = ff_raw_write_packet,
00146 .flags= AVFMT_NOTIMESTAMPS,
00147 };
00148 #endif
00149
00150 #if CONFIG_H264_MUXER
00151 AVOutputFormat ff_h264_muxer = {
00152 .name = "h264",
00153 .long_name = NULL_IF_CONFIG_SMALL("raw H.264 video format"),
00154 .extensions = "h264",
00155 .audio_codec = CODEC_ID_NONE,
00156 .video_codec = CODEC_ID_H264,
00157 .write_packet = ff_raw_write_packet,
00158 .flags= AVFMT_NOTIMESTAMPS,
00159 };
00160 #endif
00161
00162 #if CONFIG_CAVSVIDEO_MUXER
00163 AVOutputFormat ff_cavsvideo_muxer = {
00164 .name = "cavsvideo",
00165 .long_name = NULL_IF_CONFIG_SMALL("raw Chinese AVS video"),
00166 .extensions = "cavs",
00167 .audio_codec = CODEC_ID_NONE,
00168 .video_codec = CODEC_ID_CAVS,
00169 .write_packet = ff_raw_write_packet,
00170 .flags= AVFMT_NOTIMESTAMPS,
00171 };
00172 #endif
00173
00174 #if CONFIG_M4V_MUXER
00175 AVOutputFormat ff_m4v_muxer = {
00176 .name = "m4v",
00177 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-4 video format"),
00178 .extensions = "m4v",
00179 .audio_codec = CODEC_ID_NONE,
00180 .video_codec = CODEC_ID_MPEG4,
00181 .write_packet = ff_raw_write_packet,
00182 .flags= AVFMT_NOTIMESTAMPS,
00183 };
00184 #endif
00185
00186 #if CONFIG_MJPEG_MUXER
00187 AVOutputFormat ff_mjpeg_muxer = {
00188 .name = "mjpeg",
00189 .long_name = NULL_IF_CONFIG_SMALL("raw MJPEG video"),
00190 .mime_type = "video/x-mjpeg",
00191 .extensions = "mjpg,mjpeg",
00192 .audio_codec = CODEC_ID_NONE,
00193 .video_codec = CODEC_ID_MJPEG,
00194 .write_packet = ff_raw_write_packet,
00195 .flags= AVFMT_NOTIMESTAMPS,
00196 };
00197 #endif
00198
00199 #if CONFIG_MLP_MUXER
00200 AVOutputFormat ff_mlp_muxer = {
00201 .name = "mlp",
00202 .long_name = NULL_IF_CONFIG_SMALL("raw MLP"),
00203 .extensions = "mlp",
00204 .audio_codec = CODEC_ID_MLP,
00205 .video_codec = CODEC_ID_NONE,
00206 .write_packet = ff_raw_write_packet,
00207 .flags= AVFMT_NOTIMESTAMPS,
00208 };
00209 #endif
00210
00211 #if CONFIG_SRT_MUXER
00212 AVOutputFormat ff_srt_muxer = {
00213 .name = "srt",
00214 .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"),
00215 .mime_type = "application/x-subrip",
00216 .extensions = "srt",
00217 .write_packet = ff_raw_write_packet,
00218 .flags = AVFMT_NOTIMESTAMPS,
00219 .subtitle_codec = CODEC_ID_SRT,
00220 };
00221 #endif
00222
00223 #if CONFIG_TRUEHD_MUXER
00224 AVOutputFormat ff_truehd_muxer = {
00225 .name = "truehd",
00226 .long_name = NULL_IF_CONFIG_SMALL("raw TrueHD"),
00227 .extensions = "thd",
00228 .audio_codec = CODEC_ID_TRUEHD,
00229 .video_codec = CODEC_ID_NONE,
00230 .write_packet = ff_raw_write_packet,
00231 .flags= AVFMT_NOTIMESTAMPS,
00232 };
00233 #endif
00234
00235 #if CONFIG_MPEG1VIDEO_MUXER
00236 AVOutputFormat ff_mpeg1video_muxer = {
00237 .name = "mpeg1video",
00238 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-1 video"),
00239 .mime_type = "video/x-mpeg",
00240 .extensions = "mpg,mpeg,m1v",
00241 .audio_codec = CODEC_ID_NONE,
00242 .video_codec = CODEC_ID_MPEG1VIDEO,
00243 .write_packet = ff_raw_write_packet,
00244 .flags= AVFMT_NOTIMESTAMPS,
00245 };
00246 #endif
00247
00248 #if CONFIG_MPEG2VIDEO_MUXER
00249 AVOutputFormat ff_mpeg2video_muxer = {
00250 .name = "mpeg2video",
00251 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-2 video"),
00252 .extensions = "m2v",
00253 .audio_codec = CODEC_ID_NONE,
00254 .video_codec = CODEC_ID_MPEG2VIDEO,
00255 .write_packet = ff_raw_write_packet,
00256 .flags= AVFMT_NOTIMESTAMPS,
00257 };
00258 #endif
00259
00260 #if CONFIG_RAWVIDEO_MUXER
00261 AVOutputFormat ff_rawvideo_muxer = {
00262 .name = "rawvideo",
00263 .long_name = NULL_IF_CONFIG_SMALL("raw video format"),
00264 .extensions = "yuv,rgb",
00265 .audio_codec = CODEC_ID_NONE,
00266 .video_codec = CODEC_ID_RAWVIDEO,
00267 .write_packet = ff_raw_write_packet,
00268 .flags= AVFMT_NOTIMESTAMPS,
00269 };
00270 #endif