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 = AV_CODEC_ID_AC3,
00042 .video_codec = AV_CODEC_ID_NONE,
00043 .write_packet = ff_raw_write_packet,
00044 .flags = AVFMT_NOTIMESTAMPS,
00045 };
00046 #endif
00047
00048 #if CONFIG_ADX_MUXER
00049 AVOutputFormat ff_adx_muxer = {
00050 .name = "adx",
00051 .long_name = NULL_IF_CONFIG_SMALL("CRI ADX"),
00052 .extensions = "adx",
00053 .audio_codec = AV_CODEC_ID_ADPCM_ADX,
00054 .video_codec = AV_CODEC_ID_NONE,
00055 .write_packet = ff_raw_write_packet,
00056 .flags = AVFMT_NOTIMESTAMPS,
00057 };
00058 #endif
00059
00060 #if CONFIG_CAVSVIDEO_MUXER
00061 AVOutputFormat ff_cavsvideo_muxer = {
00062 .name = "cavsvideo",
00063 .long_name = NULL_IF_CONFIG_SMALL("raw Chinese AVS (Audio Video Standard) video"),
00064 .extensions = "cavs",
00065 .audio_codec = AV_CODEC_ID_NONE,
00066 .video_codec = AV_CODEC_ID_CAVS,
00067 .write_packet = ff_raw_write_packet,
00068 .flags = AVFMT_NOTIMESTAMPS,
00069 };
00070 #endif
00071
00072 #if CONFIG_DIRAC_MUXER
00073 AVOutputFormat ff_dirac_muxer = {
00074 .name = "dirac",
00075 .long_name = NULL_IF_CONFIG_SMALL("raw Dirac"),
00076 .extensions = "drc",
00077 .audio_codec = AV_CODEC_ID_NONE,
00078 .video_codec = AV_CODEC_ID_DIRAC,
00079 .write_packet = ff_raw_write_packet,
00080 .flags = AVFMT_NOTIMESTAMPS,
00081 };
00082 #endif
00083
00084 #if CONFIG_DNXHD_MUXER
00085 AVOutputFormat ff_dnxhd_muxer = {
00086 .name = "dnxhd",
00087 .long_name = NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"),
00088 .extensions = "dnxhd",
00089 .audio_codec = AV_CODEC_ID_NONE,
00090 .video_codec = AV_CODEC_ID_DNXHD,
00091 .write_packet = ff_raw_write_packet,
00092 .flags = AVFMT_NOTIMESTAMPS,
00093 };
00094 #endif
00095
00096 #if CONFIG_DTS_MUXER
00097 AVOutputFormat ff_dts_muxer = {
00098 .name = "dts",
00099 .long_name = NULL_IF_CONFIG_SMALL("raw DTS"),
00100 .mime_type = "audio/x-dca",
00101 .extensions = "dts",
00102 .audio_codec = AV_CODEC_ID_DTS,
00103 .video_codec = AV_CODEC_ID_NONE,
00104 .write_packet = ff_raw_write_packet,
00105 .flags = AVFMT_NOTIMESTAMPS,
00106 };
00107 #endif
00108
00109 #if CONFIG_EAC3_MUXER
00110 AVOutputFormat ff_eac3_muxer = {
00111 .name = "eac3",
00112 .long_name = NULL_IF_CONFIG_SMALL("raw E-AC-3"),
00113 .mime_type = "audio/x-eac3",
00114 .extensions = "eac3",
00115 .audio_codec = AV_CODEC_ID_EAC3,
00116 .video_codec = AV_CODEC_ID_NONE,
00117 .write_packet = ff_raw_write_packet,
00118 .flags = AVFMT_NOTIMESTAMPS,
00119 };
00120 #endif
00121
00122 #if CONFIG_G722_MUXER
00123 AVOutputFormat ff_g722_muxer = {
00124 .name = "g722",
00125 .long_name = NULL_IF_CONFIG_SMALL("raw G.722"),
00126 .mime_type = "audio/G722",
00127 .extensions = "g722",
00128 .audio_codec = AV_CODEC_ID_ADPCM_G722,
00129 .video_codec = AV_CODEC_ID_NONE,
00130 .write_packet = ff_raw_write_packet,
00131 .flags = AVFMT_NOTIMESTAMPS,
00132 };
00133 #endif
00134
00135 #if CONFIG_G723_1_MUXER
00136 AVOutputFormat ff_g723_1_muxer = {
00137 .name = "g723_1",
00138 .long_name = NULL_IF_CONFIG_SMALL("raw G.723.1"),
00139 .mime_type = "audio/g723",
00140 .extensions = "tco,rco",
00141 .audio_codec = AV_CODEC_ID_G723_1,
00142 .video_codec = AV_CODEC_ID_NONE,
00143 .write_packet = ff_raw_write_packet,
00144 .flags= AVFMT_NOTIMESTAMPS,
00145 };
00146 #endif
00147
00148 #if CONFIG_H261_MUXER
00149 AVOutputFormat ff_h261_muxer = {
00150 .name = "h261",
00151 .long_name = NULL_IF_CONFIG_SMALL("raw H.261"),
00152 .mime_type = "video/x-h261",
00153 .extensions = "h261",
00154 .audio_codec = AV_CODEC_ID_NONE,
00155 .video_codec = AV_CODEC_ID_H261,
00156 .write_packet = ff_raw_write_packet,
00157 .flags = AVFMT_NOTIMESTAMPS,
00158 };
00159 #endif
00160
00161 #if CONFIG_H263_MUXER
00162 AVOutputFormat ff_h263_muxer = {
00163 .name = "h263",
00164 .long_name = NULL_IF_CONFIG_SMALL("raw H.263"),
00165 .mime_type = "video/x-h263",
00166 .extensions = "h263",
00167 .audio_codec = AV_CODEC_ID_NONE,
00168 .video_codec = AV_CODEC_ID_H263,
00169 .write_packet = ff_raw_write_packet,
00170 .flags = AVFMT_NOTIMESTAMPS,
00171 };
00172 #endif
00173
00174 #if CONFIG_H264_MUXER
00175 AVOutputFormat ff_h264_muxer = {
00176 .name = "h264",
00177 .long_name = NULL_IF_CONFIG_SMALL("raw H.264 video"),
00178 .extensions = "h264",
00179 .audio_codec = AV_CODEC_ID_NONE,
00180 .video_codec = AV_CODEC_ID_H264,
00181 .write_packet = ff_raw_write_packet,
00182 .flags = AVFMT_NOTIMESTAMPS,
00183 };
00184 #endif
00185
00186 #if CONFIG_M4V_MUXER
00187 AVOutputFormat ff_m4v_muxer = {
00188 .name = "m4v",
00189 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-4 video"),
00190 .extensions = "m4v",
00191 .audio_codec = AV_CODEC_ID_NONE,
00192 .video_codec = AV_CODEC_ID_MPEG4,
00193 .write_packet = ff_raw_write_packet,
00194 .flags = AVFMT_NOTIMESTAMPS,
00195 };
00196 #endif
00197
00198 #if CONFIG_MJPEG_MUXER
00199 AVOutputFormat ff_mjpeg_muxer = {
00200 .name = "mjpeg",
00201 .long_name = NULL_IF_CONFIG_SMALL("raw MJPEG video"),
00202 .mime_type = "video/x-mjpeg",
00203 .extensions = "mjpg,mjpeg",
00204 .audio_codec = AV_CODEC_ID_NONE,
00205 .video_codec = AV_CODEC_ID_MJPEG,
00206 .write_packet = ff_raw_write_packet,
00207 .flags = AVFMT_NOTIMESTAMPS,
00208 };
00209 #endif
00210
00211 #if CONFIG_MLP_MUXER
00212 AVOutputFormat ff_mlp_muxer = {
00213 .name = "mlp",
00214 .long_name = NULL_IF_CONFIG_SMALL("raw MLP"),
00215 .extensions = "mlp",
00216 .audio_codec = AV_CODEC_ID_MLP,
00217 .video_codec = AV_CODEC_ID_NONE,
00218 .write_packet = ff_raw_write_packet,
00219 .flags = AVFMT_NOTIMESTAMPS,
00220 };
00221 #endif
00222
00223 #if CONFIG_MPEG1VIDEO_MUXER
00224 AVOutputFormat ff_mpeg1video_muxer = {
00225 .name = "mpeg1video",
00226 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-1 video"),
00227 .mime_type = "video/x-mpeg",
00228 .extensions = "mpg,mpeg,m1v",
00229 .audio_codec = AV_CODEC_ID_NONE,
00230 .video_codec = AV_CODEC_ID_MPEG1VIDEO,
00231 .write_packet = ff_raw_write_packet,
00232 .flags = AVFMT_NOTIMESTAMPS,
00233 };
00234 #endif
00235
00236 #if CONFIG_MPEG2VIDEO_MUXER
00237 AVOutputFormat ff_mpeg2video_muxer = {
00238 .name = "mpeg2video",
00239 .long_name = NULL_IF_CONFIG_SMALL("raw MPEG-2 video"),
00240 .extensions = "m2v",
00241 .audio_codec = AV_CODEC_ID_NONE,
00242 .video_codec = AV_CODEC_ID_MPEG2VIDEO,
00243 .write_packet = ff_raw_write_packet,
00244 .flags = AVFMT_NOTIMESTAMPS,
00245 };
00246 #endif
00247
00248 #if CONFIG_RAWVIDEO_MUXER
00249 AVOutputFormat ff_rawvideo_muxer = {
00250 .name = "rawvideo",
00251 .long_name = NULL_IF_CONFIG_SMALL("raw video"),
00252 .extensions = "yuv,rgb",
00253 .audio_codec = AV_CODEC_ID_NONE,
00254 .video_codec = AV_CODEC_ID_RAWVIDEO,
00255 .write_packet = ff_raw_write_packet,
00256 .flags = AVFMT_NOTIMESTAMPS,
00257 };
00258 #endif
00259
00260 #if CONFIG_TRUEHD_MUXER
00261 AVOutputFormat ff_truehd_muxer = {
00262 .name = "truehd",
00263 .long_name = NULL_IF_CONFIG_SMALL("raw TrueHD"),
00264 .extensions = "thd",
00265 .audio_codec = AV_CODEC_ID_TRUEHD,
00266 .video_codec = AV_CODEC_ID_NONE,
00267 .write_packet = ff_raw_write_packet,
00268 .flags = AVFMT_NOTIMESTAMPS,
00269 };
00270 #endif