Originally committed as revision 9230 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun authored on 2007/06/06 17:51:41... | ... |
@@ -96,8 +96,8 @@ show_help(){ |
96 | 96 |
echo " --enable-libtheora enable Theora encoding via libtheora [default=no]" |
97 | 97 |
echo " --enable-libvorbis enable Vorbis en/decoding via libvorbis," |
98 | 98 |
echo " native implementations exist [default=no]" |
99 |
- echo " --enable-x264 enable H.264 encoding via x264 [default=no]" |
|
100 |
- echo " --enable-xvid enable Xvid encoding via xvidcore," |
|
99 |
+ echo " --enable-libx264 enable H.264 encoding via x264 [default=no]" |
|
100 |
+ echo " --enable-libxvid enable Xvid encoding via xvidcore," |
|
101 | 101 |
echo " native MPEG-4/Xvid encoder exists [default=no]" |
102 | 102 |
echo "" |
103 | 103 |
echo "Advanced options (experts only):" |
... | ... |
@@ -595,6 +595,8 @@ CONFIG_LIST=' |
595 | 595 |
libogg |
596 | 596 |
libtheora |
597 | 597 |
libvorbis |
598 |
+ libx264 |
|
599 |
+ libxvid |
|
598 | 600 |
memalign_hack |
599 | 601 |
mpegaudio_hp |
600 | 602 |
network |
... | ... |
@@ -606,8 +608,6 @@ CONFIG_LIST=' |
606 | 606 |
v4l |
607 | 607 |
v4l2 |
608 | 608 |
x11grab |
609 |
- x264 |
|
610 |
- xvid |
|
611 | 609 |
zlib |
612 | 610 |
' |
613 | 611 |
|
... | ... |
@@ -703,8 +703,6 @@ vc1_decoder_deps="h263_decoder" |
703 | 703 |
wmv1_decoder_deps="h263_decoder" |
704 | 704 |
wmv2_decoder_deps="h263_decoder" |
705 | 705 |
wmv3_decoder_deps="h263_decoder" |
706 |
-x264_encoder_deps="x264" |
|
707 |
-xvid_encoder_deps="xvid" |
|
708 | 706 |
zmbv_decoder_deps="zlib" |
709 | 707 |
zmbv_encoder_deps="zlib" |
710 | 708 |
|
... | ... |
@@ -721,10 +719,12 @@ libgsm_decoder_deps="libgsm" |
721 | 721 |
libgsm_encoder_deps="libgsm" |
722 | 722 |
libgsm_ms_decoder_deps="libgsm" |
723 | 723 |
libgsm_ms_encoder_deps="libgsm" |
724 |
+libmp3lame_encoder_deps="libmp3lame" |
|
724 | 725 |
libtheora_encoder_deps="libtheora" |
725 |
-mp3lame_encoder_deps="libmp3lame" |
|
726 | 726 |
libvorbis_decoder_deps="libvorbis" |
727 | 727 |
libvorbis_encoder_deps="libvorbis" |
728 |
+libx264_encoder_deps="libx264" |
|
729 |
+libxvid_encoder_deps="libxvid" |
|
728 | 730 |
|
729 | 731 |
# demuxers / muxers |
730 | 732 |
ac3_demuxer_deps="ac3_parser" |
... | ... |
@@ -843,10 +843,10 @@ libnut="no" |
843 | 843 |
libogg="no" |
844 | 844 |
libtheora="no" |
845 | 845 |
libvorbis="no" |
846 |
+libx264="no" |
|
847 |
+libxvid="no" |
|
846 | 848 |
mlib="no" |
847 | 849 |
x11grab="no" |
848 |
-x264="no" |
|
849 |
-xvid="no" |
|
850 | 850 |
zlib="yes" |
851 | 851 |
|
852 | 852 |
# configurable options |
... | ... |
@@ -1286,8 +1286,8 @@ if disabled gpl ; then |
1286 | 1286 |
} |
1287 | 1287 |
die_gpl_disabled "The Postprocessing code" pp |
1288 | 1288 |
die_gpl_disabled "liba52" liba52 |
1289 |
- die_gpl_disabled "libxvidcore" xvid |
|
1290 |
- die_gpl_disabled "x264" x264 |
|
1289 |
+ die_gpl_disabled "libx264" libx264 |
|
1290 |
+ die_gpl_disabled "libxvidcore" libxvid |
|
1291 | 1291 |
die_gpl_disabled "FAAD2" libfaad2 |
1292 | 1292 |
die_gpl_disabled "The X11 grabber" x11grab |
1293 | 1293 |
die_gpl_disabled "The software scaler" swscaler |
... | ... |
@@ -1635,8 +1635,8 @@ enabled libtheora && require libtheora theora/theora.h theora_info_init -ltheor |
1635 | 1635 |
enabled libvorbis && require libvorbis vorbis/vorbisenc.h vorbis_info_init -lvorbis -lvorbisenc -logg |
1636 | 1636 |
enabled libogg && require libogg ogg/ogg.h ogg_sync_init -logg |
1637 | 1637 |
enabled libnut && require libnut libnut.h nut_demuxer_init -lnut |
1638 |
-enabled xvid && require XviD xvid.h xvid_global -lxvidcore |
|
1639 |
-enabled x264 && require x264 x264.h x264_encoder_open -lx264 |
|
1638 |
+enabled libx264 && require x264 x264.h x264_encoder_open -lx264 |
|
1639 |
+enabled libxvid && require Xvid xvid.h xvid_global -lxvidcore |
|
1640 | 1640 |
enabled dc1394 && require libdc1394 libdc1394/dc1394_control.h dc1394_create_handle -ldc1394_control -lraw1394 |
1641 | 1641 |
enabled mlib && require mediaLib mlib_types.h mlib_VectorSub_S16_U8_Mod -lmlib |
1642 | 1642 |
enabled libfaac && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac |
... | ... |
@@ -1899,8 +1899,8 @@ echo "libnut enabled $libnut" |
1899 | 1899 |
echo "libogg enabled $libogg" |
1900 | 1900 |
echo "libtheora enabled $libtheora" |
1901 | 1901 |
echo "libvorbis enabled $libvorbis" |
1902 |
-echo "x264 enabled $x264" |
|
1903 |
-echo "XviD enabled $xvid" |
|
1902 |
+echo "x264 enabled $libx264" |
|
1903 |
+echo "XviD enabled $libxvid" |
|
1904 | 1904 |
echo "zlib enabled $zlib" |
1905 | 1905 |
if disabled gpl; then |
1906 | 1906 |
echo "License: LGPL" |
... | ... |
@@ -135,7 +135,7 @@ output an AVI file with MPEG-4 video and MP3 audio. Note that in this |
135 | 135 |
command we use B-frames so the MPEG-4 stream is DivX5 compatible, and |
136 | 136 |
GOP size is 300 which means one intra frame every 10 seconds for 29.97fps |
137 | 137 |
input video. Furthermore, the audio stream is MP3-encoded so you need |
138 |
-to enable LAME support by passing @code{--enable-mp3lame} to configure. |
|
138 |
+to enable LAME support by passing @code{--enable-libmp3lame} to configure. |
|
139 | 139 |
The mapping is particularly useful for DVD transcoding |
140 | 140 |
to get the desired audio language. |
141 | 141 |
|
... | ... |
@@ -49,8 +49,8 @@ I understand that FreeBSD systems work just fine as well. |
49 | 49 |
@section How do I make it work? |
50 | 50 |
|
51 | 51 |
First, build the kit. It *really* helps to have installed LAME first. Then when |
52 |
-you run the ffserver ./configure, make sure that you have the --enable-mp3lame |
|
53 |
-flag turned on. |
|
52 |
+you run the ffserver ./configure, make sure that you have the |
|
53 |
+@code{--enable-libmp3lame} flag turned on. |
|
54 | 54 |
|
55 | 55 |
LAME is important as it allows for streaming audio to Windows Media Player. |
56 | 56 |
Don't ask why the other audio types do not work. |
... | ... |
@@ -93,6 +93,8 @@ void avcodec_register_all(void) |
93 | 93 |
REGISTER_DECODER(INTERPLAY_VIDEO, interplay_video); |
94 | 94 |
REGISTER_ENCDEC (JPEGLS, jpegls); |
95 | 95 |
REGISTER_DECODER(KMVC, kmvc); |
96 |
+ REGISTER_ENCODER(LIBX264, libx264); |
|
97 |
+ REGISTER_ENCODER(LIBXVID, libxvid); |
|
96 | 98 |
REGISTER_ENCODER(LJPEG, ljpeg); |
97 | 99 |
REGISTER_DECODER(LOCO, loco); |
98 | 100 |
REGISTER_DECODER(MDEC, mdec); |
... | ... |
@@ -156,10 +158,8 @@ void avcodec_register_all(void) |
156 | 156 |
REGISTER_ENCDEC (WMV2, wmv2); |
157 | 157 |
REGISTER_DECODER(WMV3, wmv3); |
158 | 158 |
REGISTER_DECODER(WNV1, wnv1); |
159 |
- REGISTER_ENCODER(X264, x264); |
|
160 | 159 |
REGISTER_DECODER(XAN_WC3, xan_wc3); |
161 | 160 |
REGISTER_DECODER(XL, xl); |
162 |
- REGISTER_ENCODER(XVID, xvid); |
|
163 | 161 |
REGISTER_ENCDEC (ZLIB, zlib); |
164 | 162 |
REGISTER_ENCDEC (ZMBV, zmbv); |
165 | 163 |
|
... | ... |
@@ -180,6 +180,7 @@ void avcodec_register_all(void) |
180 | 180 |
REGISTER_DECODER(LIBFAAD, libfaad); |
181 | 181 |
REGISTER_ENCDEC (LIBGSM, libgsm); |
182 | 182 |
REGISTER_ENCDEC (LIBGSM_MS, libgsm_ms); |
183 |
+ REGISTER_ENCODER(LIBMP3LAME, libmp3lame); |
|
183 | 184 |
REGISTER_ENCODER(LIBTHEORA, libtheora); |
184 | 185 |
if (!ENABLE_VORBIS_ENCODER) REGISTER_ENCODER(LIBVORBIS, libvorbis); |
185 | 186 |
if (!ENABLE_VORBIS_DECODER) REGISTER_DECODER(LIBVORBIS, libvorbis); |
... | ... |
@@ -188,7 +189,6 @@ void avcodec_register_all(void) |
188 | 188 |
REGISTER_ENCDEC (MP2, mp2); |
189 | 189 |
REGISTER_DECODER(MP3, mp3); |
190 | 190 |
REGISTER_DECODER(MP3ADU, mp3adu); |
191 |
- REGISTER_ENCODER(MP3LAME, mp3lame); |
|
192 | 191 |
REGISTER_DECODER(MP3ON4, mp3on4); |
193 | 192 |
REGISTER_DECODER(MPC7, mpc7); |
194 | 193 |
REGISTER_DECODER(QDM2, qdm2); |
... | ... |
@@ -2433,13 +2433,13 @@ extern AVCodec libgsm_decoder; |
2433 | 2433 |
extern AVCodec libgsm_encoder; |
2434 | 2434 |
extern AVCodec libgsm_ms_decoder; |
2435 | 2435 |
extern AVCodec libgsm_ms_encoder; |
2436 |
+extern AVCodec libmp3lame_encoder; |
|
2436 | 2437 |
extern AVCodec libtheora_encoder; |
2437 | 2438 |
extern AVCodec libvorbis_decoder; |
2438 | 2439 |
extern AVCodec libvorbis_encoder; |
2439 |
-extern AVCodec mp3lame_encoder; |
|
2440 |
+extern AVCodec libx264_encoder; |
|
2441 |
+extern AVCodec libxvid_encoder; |
|
2440 | 2442 |
extern AVCodec mpeg4aac_decoder; |
2441 |
-extern AVCodec x264_encoder; |
|
2442 |
-extern AVCodec xvid_encoder; |
|
2443 | 2443 |
extern AVCodec zlib_decoder; |
2444 | 2444 |
extern AVCodec zlib_encoder; |
2445 | 2445 |
|
... | ... |
@@ -287,8 +287,8 @@ X264_init(AVCodecContext *avctx) |
287 | 287 |
return 0; |
288 | 288 |
} |
289 | 289 |
|
290 |
-AVCodec x264_encoder = { |
|
291 |
- .name = "h264", |
|
290 |
+AVCodec libx264_encoder = { |
|
291 |
+ .name = "libx264", |
|
292 | 292 |
.type = CODEC_TYPE_VIDEO, |
293 | 293 |
.id = CODEC_ID_H264, |
294 | 294 |
.priv_data_size = sizeof(X264Context), |
... | ... |
@@ -755,8 +755,8 @@ int xvid_ff_2pass(void *ref, int cmd, void *p1, void *p2) { |
755 | 755 |
/** |
756 | 756 |
* XviD codec definition for libavcodec. |
757 | 757 |
*/ |
758 |
-AVCodec xvid_encoder = { |
|
759 |
- "xvid", |
|
758 |
+AVCodec libxvid_encoder = { |
|
759 |
+ "libxvid", |
|
760 | 760 |
CODEC_TYPE_VIDEO, |
761 | 761 |
CODEC_ID_XVID, |
762 | 762 |
sizeof(xvid_context_t), |