Je cherche à compiler la dernière build de ffmpeg.
Si je fais :
./configure
make
Cela fonctionne, mais je n'ai pas l'encodage mp3.
Si je fais :
./configure --enable-mp3lame
make
Là la compilation ne se fait plus correctement et j'obtiens des erreurs :
<pre><font class="small">code:</font><hr>mp3lameaudio.c:22:23: lame/lame.h: No such file or directory
mp3lameaudio.c:25: parse error before "lame_global_flags"
mp3lameaudio.c:25: warning: no semicolon at end of struct or union
mp3lameaudio.c:27: parse error before '}' token
mp3lameaudio.c:27: warning: type defaults to `int' in declaration of `Mp3AudioContext'
mp3lameaudio.c:27: warning: data definition has no type or storage class
mp3lameaudio.c: In function `MP3lame_encode_init':
mp3lameaudio.c:32: `s' undeclared (first use in this function)
mp3lameaudio.c:32: (Each undeclared identifier is reported only once
mp3lameaudio.c:32: for each function it appears in.)
mp3lameaudio.c:39: warning: implicit declaration of function `lame_init'
mp3lameaudio.c:41: warning: implicit declaration of function `lame_set_in_samplerate'
mp3lameaudio.c:42: warning: implicit declaration of function `lame_set_out_samplerate'
mp3lameaudio.c:43: warning: implicit declaration of function `lame_set_num_channels'
mp3lameaudio.c:45: warning: implicit declaration of function `lame_set_quality'
mp3lameaudio.c:47: warning: implicit declaration of function `lame_set_mode'
mp3lameaudio.c:47: `JOINT_STEREO' undeclared (first use in this function)
mp3lameaudio.c:48: warning: implicit declaration of function `lame_set_brate'
mp3lameaudio.c:49: warning: implicit declaration of function `lame_init_params'
mp3lameaudio.c:58: warning: implicit declaration of function `lame_close'
mp3lameaudio.c: In function `MP3lame_encode_frame':
mp3lameaudio.c:66: `s' undeclared (first use in this function)
mp3lameaudio.c:71: warning: implicit declaration of function `lame_encode_buffer_interleaved'
mp3lameaudio.c:74: warning: implicit declaration of function `lame_encode_buffer'
mp3lameaudio.c: In function `MP3lame_encode_close':
mp3lameaudio.c:83: `s' undeclared (first use in this function)
make[1]: *** [mp3lameaudio.o] Error 1
make: *** [lib] Error 2
]
J'en appelle donc à l'aide, parce que là je suis perdu. Si quelqu'un pouvait m'expliquer comment je peux compiler "ffmpeg" en activant le support du mp3, ça serait vraiment sympa ...
Si je fais :
./configure
make
Cela fonctionne, mais je n'ai pas l'encodage mp3.
Si je fais :
./configure --enable-mp3lame
make
Là la compilation ne se fait plus correctement et j'obtiens des erreurs :
<pre><font class="small">code:</font><hr>mp3lameaudio.c:22:23: lame/lame.h: No such file or directory
mp3lameaudio.c:25: parse error before "lame_global_flags"
mp3lameaudio.c:25: warning: no semicolon at end of struct or union
mp3lameaudio.c:27: parse error before '}' token
mp3lameaudio.c:27: warning: type defaults to `int' in declaration of `Mp3AudioContext'
mp3lameaudio.c:27: warning: data definition has no type or storage class
mp3lameaudio.c: In function `MP3lame_encode_init':
mp3lameaudio.c:32: `s' undeclared (first use in this function)
mp3lameaudio.c:32: (Each undeclared identifier is reported only once
mp3lameaudio.c:32: for each function it appears in.)
mp3lameaudio.c:39: warning: implicit declaration of function `lame_init'
mp3lameaudio.c:41: warning: implicit declaration of function `lame_set_in_samplerate'
mp3lameaudio.c:42: warning: implicit declaration of function `lame_set_out_samplerate'
mp3lameaudio.c:43: warning: implicit declaration of function `lame_set_num_channels'
mp3lameaudio.c:45: warning: implicit declaration of function `lame_set_quality'
mp3lameaudio.c:47: warning: implicit declaration of function `lame_set_mode'
mp3lameaudio.c:47: `JOINT_STEREO' undeclared (first use in this function)
mp3lameaudio.c:48: warning: implicit declaration of function `lame_set_brate'
mp3lameaudio.c:49: warning: implicit declaration of function `lame_init_params'
mp3lameaudio.c:58: warning: implicit declaration of function `lame_close'
mp3lameaudio.c: In function `MP3lame_encode_frame':
mp3lameaudio.c:66: `s' undeclared (first use in this function)
mp3lameaudio.c:71: warning: implicit declaration of function `lame_encode_buffer_interleaved'
mp3lameaudio.c:74: warning: implicit declaration of function `lame_encode_buffer'
mp3lameaudio.c: In function `MP3lame_encode_close':
mp3lameaudio.c:83: `s' undeclared (first use in this function)
make[1]: *** [mp3lameaudio.o] Error 1
make: *** [lib] Error 2
]
J'en appelle donc à l'aide, parce que là je suis perdu. Si quelqu'un pouvait m'expliquer comment je peux compiler "ffmpeg" en activant le support du mp3, ça serait vraiment sympa ...