00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include "avformat.h"
00022 #include "rtp.h"
00023 #include "rdt.h"
00024 #include "url.h"
00025 #include "version.h"
00026
00027 #define REGISTER_MUXER(X,x) { \
00028 extern AVOutputFormat ff_##x##_muxer; \
00029 if(CONFIG_##X##_MUXER) av_register_output_format(&ff_##x##_muxer); }
00030
00031 #define REGISTER_DEMUXER(X,x) { \
00032 extern AVInputFormat ff_##x##_demuxer; \
00033 if(CONFIG_##X##_DEMUXER) av_register_input_format(&ff_##x##_demuxer); }
00034
00035 #define REGISTER_MUXDEMUX(X,x) REGISTER_MUXER(X,x); REGISTER_DEMUXER(X,x)
00036
00037 #define REGISTER_PROTOCOL(X,x) { \
00038 extern URLProtocol ff_##x##_protocol; \
00039 if(CONFIG_##X##_PROTOCOL) ffurl_register_protocol(&ff_##x##_protocol, sizeof(ff_##x##_protocol)); }
00040
00041 void av_register_all(void)
00042 {
00043 static int initialized;
00044
00045 if (initialized)
00046 return;
00047 initialized = 1;
00048
00049 avcodec_register_all();
00050
00051
00052 REGISTER_MUXER (A64, a64);
00053 REGISTER_DEMUXER (AAC, aac);
00054 REGISTER_MUXDEMUX (AC3, ac3);
00055 REGISTER_DEMUXER (ACT, act);
00056 REGISTER_DEMUXER (ADF, adf);
00057 REGISTER_MUXER (ADTS, adts);
00058 REGISTER_MUXDEMUX (ADX, adx);
00059 REGISTER_DEMUXER (AEA, aea);
00060 REGISTER_DEMUXER (AFC, afc);
00061 REGISTER_MUXDEMUX (AIFF, aiff);
00062 REGISTER_MUXDEMUX (AMR, amr);
00063 REGISTER_DEMUXER (ANM, anm);
00064 REGISTER_DEMUXER (APC, apc);
00065 REGISTER_DEMUXER (APE, ape);
00066 REGISTER_MUXDEMUX (ASF, asf);
00067 REGISTER_MUXDEMUX (ASS, ass);
00068 REGISTER_MUXDEMUX (AST, ast);
00069 REGISTER_MUXER (ASF_STREAM, asf_stream);
00070 REGISTER_MUXDEMUX (AU, au);
00071 REGISTER_MUXDEMUX (AVI, avi);
00072 REGISTER_DEMUXER (AVISYNTH, avisynth);
00073 REGISTER_MUXER (AVM2, avm2);
00074 REGISTER_DEMUXER (AVR, avr);
00075 REGISTER_DEMUXER (AVS, avs);
00076 REGISTER_DEMUXER (BETHSOFTVID, bethsoftvid);
00077 REGISTER_DEMUXER (BFI, bfi);
00078 REGISTER_DEMUXER (BINTEXT, bintext);
00079 REGISTER_DEMUXER (BINK, bink);
00080 REGISTER_MUXDEMUX (BIT, bit);
00081 REGISTER_DEMUXER (BMV, bmv);
00082 REGISTER_DEMUXER (BRSTM, brstm);
00083 REGISTER_DEMUXER (C93, c93);
00084 REGISTER_MUXDEMUX (CAF, caf);
00085 REGISTER_MUXDEMUX (CAVSVIDEO, cavsvideo);
00086 REGISTER_DEMUXER (CDG, cdg);
00087 REGISTER_DEMUXER (CDXL, cdxl);
00088 REGISTER_DEMUXER (CONCAT, concat);
00089 REGISTER_MUXER (CRC, crc);
00090 REGISTER_MUXDEMUX (DAUD, daud);
00091 REGISTER_DEMUXER (DFA, dfa);
00092 REGISTER_MUXDEMUX (DIRAC, dirac);
00093 REGISTER_MUXDEMUX (DNXHD, dnxhd);
00094 REGISTER_DEMUXER (DSICIN, dsicin);
00095 REGISTER_MUXDEMUX (DTS, dts);
00096 REGISTER_DEMUXER (DTSHD, dtshd);
00097 REGISTER_MUXDEMUX (DV, dv);
00098 REGISTER_DEMUXER (DXA, dxa);
00099 REGISTER_DEMUXER (EA, ea);
00100 REGISTER_DEMUXER (EA_CDATA, ea_cdata);
00101 REGISTER_MUXDEMUX (EAC3, eac3);
00102 REGISTER_DEMUXER (EPAF, epaf);
00103 REGISTER_MUXER (F4V, f4v);
00104 REGISTER_MUXDEMUX (FFM, ffm);
00105 REGISTER_MUXDEMUX (FFMETADATA, ffmetadata);
00106 REGISTER_MUXDEMUX (FILMSTRIP, filmstrip);
00107 REGISTER_MUXDEMUX (FLAC, flac);
00108 REGISTER_DEMUXER (FLIC, flic);
00109 REGISTER_MUXDEMUX (FLV, flv);
00110 REGISTER_DEMUXER (FOURXM, fourxm);
00111 REGISTER_MUXER (FRAMECRC, framecrc);
00112 REGISTER_MUXER (FRAMEMD5, framemd5);
00113 REGISTER_MUXDEMUX (G722, g722);
00114 REGISTER_MUXDEMUX (G723_1, g723_1);
00115 REGISTER_DEMUXER (G729, g729);
00116 REGISTER_MUXDEMUX (GIF, gif);
00117 REGISTER_DEMUXER (GSM, gsm);
00118 REGISTER_MUXDEMUX (GXF, gxf);
00119 REGISTER_MUXDEMUX (H261, h261);
00120 REGISTER_MUXDEMUX (H263, h263);
00121 REGISTER_MUXDEMUX (H264, h264);
00122 REGISTER_MUXDEMUX (HLS, hls);
00123 REGISTER_MUXDEMUX (ICO, ico);
00124 REGISTER_DEMUXER (IDCIN, idcin);
00125 REGISTER_DEMUXER (IDF, idf);
00126 REGISTER_DEMUXER (IFF, iff);
00127 REGISTER_MUXDEMUX (ILBC, ilbc);
00128 REGISTER_MUXDEMUX (IMAGE2, image2);
00129 REGISTER_MUXDEMUX (IMAGE2PIPE, image2pipe);
00130 REGISTER_DEMUXER (INGENIENT, ingenient);
00131 REGISTER_DEMUXER (IPMOVIE, ipmovie);
00132 REGISTER_MUXER (IPOD, ipod);
00133 REGISTER_MUXDEMUX (IRCAM, ircam);
00134 REGISTER_MUXER (ISMV, ismv);
00135 REGISTER_DEMUXER (ISS, iss);
00136 REGISTER_DEMUXER (IV8, iv8);
00137 REGISTER_MUXDEMUX (IVF, ivf);
00138 REGISTER_MUXDEMUX (JACOSUB, jacosub);
00139 REGISTER_DEMUXER (JV, jv);
00140 REGISTER_MUXDEMUX (LATM, latm);
00141 REGISTER_DEMUXER (LMLM4, lmlm4);
00142 REGISTER_DEMUXER (LOAS, loas);
00143 REGISTER_DEMUXER (LVF, lvf);
00144 REGISTER_DEMUXER (LXF, lxf);
00145 REGISTER_MUXDEMUX (M4V, m4v);
00146 REGISTER_MUXER (MD5, md5);
00147 REGISTER_MUXDEMUX (MATROSKA, matroska);
00148 REGISTER_MUXER (MATROSKA_AUDIO, matroska_audio);
00149 REGISTER_DEMUXER (MGSTS, mgsts);
00150 REGISTER_MUXDEMUX (MICRODVD, microdvd);
00151 REGISTER_MUXDEMUX (MJPEG, mjpeg);
00152 REGISTER_MUXDEMUX (MLP, mlp);
00153 REGISTER_DEMUXER (MM, mm);
00154 REGISTER_MUXDEMUX (MMF, mmf);
00155 REGISTER_MUXDEMUX (MOV, mov);
00156 REGISTER_MUXER (MP2, mp2);
00157 REGISTER_MUXDEMUX (MP3, mp3);
00158 REGISTER_MUXER (MP4, mp4);
00159 REGISTER_DEMUXER (MPC, mpc);
00160 REGISTER_DEMUXER (MPC8, mpc8);
00161 REGISTER_MUXER (MPEG1SYSTEM, mpeg1system);
00162 REGISTER_MUXER (MPEG1VCD, mpeg1vcd);
00163 REGISTER_MUXER (MPEG1VIDEO, mpeg1video);
00164 REGISTER_MUXER (MPEG2DVD, mpeg2dvd);
00165 REGISTER_MUXER (MPEG2SVCD, mpeg2svcd);
00166 REGISTER_MUXER (MPEG2VIDEO, mpeg2video);
00167 REGISTER_MUXER (MPEG2VOB, mpeg2vob);
00168 REGISTER_DEMUXER (MPEGPS, mpegps);
00169 REGISTER_MUXDEMUX (MPEGTS, mpegts);
00170 REGISTER_DEMUXER (MPEGTSRAW, mpegtsraw);
00171 REGISTER_DEMUXER (MPEGVIDEO, mpegvideo);
00172 REGISTER_MUXER (MPJPEG, mpjpeg);
00173 REGISTER_DEMUXER (MSNWC_TCP, msnwc_tcp);
00174 REGISTER_DEMUXER (MTV, mtv);
00175 REGISTER_DEMUXER (MVI, mvi);
00176 REGISTER_MUXDEMUX (MXF, mxf);
00177 REGISTER_MUXER (MXF_D10, mxf_d10);
00178 REGISTER_DEMUXER (MXG, mxg);
00179 REGISTER_DEMUXER (NC, nc);
00180 REGISTER_DEMUXER (NSV, nsv);
00181 REGISTER_MUXER (NULL, null);
00182 REGISTER_MUXDEMUX (NUT, nut);
00183 REGISTER_DEMUXER (NUV, nuv);
00184 REGISTER_MUXDEMUX (OGG, ogg);
00185 REGISTER_MUXDEMUX (OMA, oma);
00186 REGISTER_DEMUXER (PAF, paf);
00187 REGISTER_MUXDEMUX (PCM_ALAW, pcm_alaw);
00188 REGISTER_MUXDEMUX (PCM_MULAW, pcm_mulaw);
00189 REGISTER_MUXDEMUX (PCM_F64BE, pcm_f64be);
00190 REGISTER_MUXDEMUX (PCM_F64LE, pcm_f64le);
00191 REGISTER_MUXDEMUX (PCM_F32BE, pcm_f32be);
00192 REGISTER_MUXDEMUX (PCM_F32LE, pcm_f32le);
00193 REGISTER_MUXDEMUX (PCM_S32BE, pcm_s32be);
00194 REGISTER_MUXDEMUX (PCM_S32LE, pcm_s32le);
00195 REGISTER_MUXDEMUX (PCM_S24BE, pcm_s24be);
00196 REGISTER_MUXDEMUX (PCM_S24LE, pcm_s24le);
00197 REGISTER_MUXDEMUX (PCM_S16BE, pcm_s16be);
00198 REGISTER_MUXDEMUX (PCM_S16LE, pcm_s16le);
00199 REGISTER_MUXDEMUX (PCM_S8, pcm_s8);
00200 REGISTER_MUXDEMUX (PCM_U32BE, pcm_u32be);
00201 REGISTER_MUXDEMUX (PCM_U32LE, pcm_u32le);
00202 REGISTER_MUXDEMUX (PCM_U24BE, pcm_u24be);
00203 REGISTER_MUXDEMUX (PCM_U24LE, pcm_u24le);
00204 REGISTER_MUXDEMUX (PCM_U16BE, pcm_u16be);
00205 REGISTER_MUXDEMUX (PCM_U16LE, pcm_u16le);
00206 REGISTER_MUXDEMUX (PCM_U8, pcm_u8);
00207 REGISTER_DEMUXER (PMP, pmp);
00208 REGISTER_MUXER (PSP, psp);
00209 REGISTER_DEMUXER (PVA, pva);
00210 REGISTER_DEMUXER (PVF, pvf);
00211 REGISTER_DEMUXER (QCP, qcp);
00212 REGISTER_DEMUXER (R3D, r3d);
00213 REGISTER_MUXDEMUX (RAWVIDEO, rawvideo);
00214 REGISTER_DEMUXER (REALTEXT, realtext);
00215 REGISTER_DEMUXER (RL2, rl2);
00216 REGISTER_MUXDEMUX (RM, rm);
00217 REGISTER_MUXDEMUX (ROQ, roq);
00218 REGISTER_DEMUXER (RPL, rpl);
00219 REGISTER_MUXDEMUX (RSO, rso);
00220 REGISTER_MUXDEMUX (RTP, rtp);
00221 REGISTER_MUXDEMUX (RTSP, rtsp);
00222 REGISTER_DEMUXER (SAMI, sami);
00223 REGISTER_MUXDEMUX (SAP, sap);
00224 REGISTER_DEMUXER (SBG, sbg);
00225 REGISTER_DEMUXER (SDP, sdp);
00226 #if CONFIG_RTPDEC
00227 av_register_rtp_dynamic_payload_handlers();
00228 av_register_rdt_dynamic_payload_handlers();
00229 #endif
00230 REGISTER_DEMUXER (SEGAFILM, segafilm);
00231 REGISTER_MUXER (SEGMENT, segment);
00232 REGISTER_MUXER (SEGMENT, stream_segment);
00233 REGISTER_DEMUXER (SHORTEN, shorten);
00234 REGISTER_DEMUXER (SIFF, siff);
00235 REGISTER_DEMUXER (SMACKER, smacker);
00236 REGISTER_MUXDEMUX (SMJPEG, smjpeg);
00237 REGISTER_MUXER (SMOOTHSTREAMING, smoothstreaming);
00238 REGISTER_DEMUXER (SMUSH, smush);
00239 REGISTER_DEMUXER (SOL, sol);
00240 REGISTER_MUXDEMUX (SOX, sox);
00241 REGISTER_MUXDEMUX (SPDIF, spdif);
00242 REGISTER_MUXDEMUX (SRT, srt);
00243 REGISTER_DEMUXER (STR, str);
00244 REGISTER_DEMUXER (SUBVIEWER, subviewer);
00245 REGISTER_MUXDEMUX (SWF, swf);
00246 REGISTER_DEMUXER (TAK, tak);
00247 REGISTER_DEMUXER (TEDCAPTIONS, tedcaptions);
00248 REGISTER_MUXER (TG2, tg2);
00249 REGISTER_MUXER (TGP, tgp);
00250 REGISTER_DEMUXER (THP, thp);
00251 REGISTER_DEMUXER (TIERTEXSEQ, tiertexseq);
00252 REGISTER_MUXER (MKVTIMESTAMP_V2, mkvtimestamp_v2);
00253 REGISTER_DEMUXER (TMV, tmv);
00254 REGISTER_MUXDEMUX (TRUEHD, truehd);
00255 REGISTER_DEMUXER (TTA, tta);
00256 REGISTER_DEMUXER (TXD, txd);
00257 REGISTER_DEMUXER (TTY, tty);
00258 REGISTER_DEMUXER (VC1, vc1);
00259 REGISTER_MUXDEMUX (VC1T, vc1t);
00260 REGISTER_DEMUXER (VIVO, vivo);
00261 REGISTER_DEMUXER (VMD, vmd);
00262 REGISTER_DEMUXER (VOBSUB, vobsub);
00263 REGISTER_MUXDEMUX (VOC, voc);
00264 REGISTER_DEMUXER (VQF, vqf);
00265 REGISTER_DEMUXER (W64, w64);
00266 REGISTER_MUXDEMUX (WAV, wav);
00267 REGISTER_DEMUXER (WC3, wc3);
00268 REGISTER_MUXER (WEBM, webm);
00269 REGISTER_DEMUXER (WEBVTT, webvtt);
00270 REGISTER_DEMUXER (WSAUD, wsaud);
00271 REGISTER_DEMUXER (WSVQA, wsvqa);
00272 REGISTER_MUXDEMUX (WTV, wtv);
00273 REGISTER_MUXDEMUX (WV, wv);
00274 REGISTER_DEMUXER (XA, xa);
00275 REGISTER_DEMUXER (XBIN, xbin);
00276 REGISTER_DEMUXER (XMV, xmv);
00277 REGISTER_DEMUXER (XWMA, xwma);
00278 REGISTER_DEMUXER (YOP, yop);
00279 REGISTER_MUXDEMUX (YUV4MPEGPIPE, yuv4mpegpipe);
00280
00281
00282 #if FF_API_APPLEHTTP_PROTO
00283 REGISTER_PROTOCOL (APPLEHTTP, applehttp);
00284 #endif
00285 REGISTER_PROTOCOL (BLURAY, bluray);
00286 REGISTER_PROTOCOL (CACHE, cache);
00287 REGISTER_PROTOCOL (CONCAT, concat);
00288 REGISTER_PROTOCOL (CRYPTO, crypto);
00289 REGISTER_PROTOCOL (FFRTMPCRYPT, ffrtmpcrypt);
00290 REGISTER_PROTOCOL (FFRTMPHTTP, ffrtmphttp);
00291 REGISTER_PROTOCOL (FILE, file);
00292 REGISTER_PROTOCOL (GOPHER, gopher);
00293 REGISTER_PROTOCOL (HLS, hls);
00294 REGISTER_PROTOCOL (HTTP, http);
00295 REGISTER_PROTOCOL (HTTPPROXY, httpproxy);
00296 REGISTER_PROTOCOL (HTTPS, https);
00297 REGISTER_PROTOCOL (MMSH, mmsh);
00298 REGISTER_PROTOCOL (MMST, mmst);
00299 REGISTER_PROTOCOL (MD5, md5);
00300 REGISTER_PROTOCOL (PIPE, pipe);
00301 REGISTER_PROTOCOL (RTMP, rtmp);
00302 REGISTER_PROTOCOL (RTMPE, rtmpe);
00303 REGISTER_PROTOCOL (RTMPS, rtmps);
00304 REGISTER_PROTOCOL (RTMPT, rtmpt);
00305 REGISTER_PROTOCOL (RTMPTE, rtmpte);
00306 REGISTER_PROTOCOL (RTMPTS, rtmpts);
00307 REGISTER_PROTOCOL (RTP, rtp);
00308 REGISTER_PROTOCOL (SCTP, sctp);
00309 REGISTER_PROTOCOL (TCP, tcp);
00310 REGISTER_PROTOCOL (TLS, tls);
00311 REGISTER_PROTOCOL (UDP, udp);
00312
00313
00314 REGISTER_DEMUXER (LIBMODPLUG, libmodplug);
00315 REGISTER_MUXDEMUX (LIBNUT, libnut);
00316 REGISTER_PROTOCOL (LIBRTMP, librtmp);
00317 REGISTER_PROTOCOL (LIBRTMPE, librtmpe);
00318 REGISTER_PROTOCOL (LIBRTMPS, librtmps);
00319 REGISTER_PROTOCOL (LIBRTMPT, librtmpt);
00320 REGISTER_PROTOCOL (LIBRTMPTE, librtmpte);
00321 }