winlin

donot check the aac encoder, ensure aac is ok

@@ -233,11 +233,14 @@ if [ $help = yes ]; then @@ -233,11 +233,14 @@ if [ $help = yes ]; then
233 233
234 --with-ssl enable rtmp complex handshake, requires openssl-devel installed. 234 --with-ssl enable rtmp complex handshake, requires openssl-devel installed.
235 to delivery h264 video and aac audio to flash player. 235 to delivery h264 video and aac audio to flash player.
236 - --with-hls enable hls streaming, build nginx as http server for hls. 236 + --with-hls enable hls streaming, mux RTMP to m3u8/ts files.
  237 + --with-nginx enable delivery HTTP stream with nginx.
  238 + build nginx at: ./objs/nginx/sbin/nginx
237 --with-http-callback enable http hooks, build cherrypy as demo api server. 239 --with-http-callback enable http hooks, build cherrypy as demo api server.
238 --with-http-server enable http server to delivery http stream. 240 --with-http-server enable http server to delivery http stream.
239 --with-http-api enable http api, to manage SRS by http api. 241 --with-http-api enable http api, to manage SRS by http api.
240 --with-ffmpeg enable transcoding with ffmpeg. 242 --with-ffmpeg enable transcoding with ffmpeg.
  243 + build ffmpeg at: ./objs/ffmpeg/bin/ffmpeg
241 --with-librtmp enable srs-librtmp, library for client. 244 --with-librtmp enable srs-librtmp, library for client.
242 --with-bwtc enable SRS bandwidth test client tool. 245 --with-bwtc enable SRS bandwidth test client tool.
243 --with-research build the research tools. 246 --with-research build the research tools.
@@ -251,6 +254,7 @@ if [ $help = yes ]; then @@ -251,6 +254,7 @@ if [ $help = yes ]; then
251 254
252 --without-ssl disable rtmp complex handshake. 255 --without-ssl disable rtmp complex handshake.
253 --without-hls disable hls, rtmp streaming only. 256 --without-hls disable hls, rtmp streaming only.
  257 + --with-nginx disable delivery HTTP stream with nginx.
254 --without-http-callback disable http, http hooks callback. 258 --without-http-callback disable http, http hooks callback.
255 --without-http-server disable http server, use external server to delivery http stream. 259 --without-http-server disable http server, use external server to delivery http stream.
256 --without-http-api disable http api, only use console to manage SRS process. 260 --without-http-api disable http api, only use console to manage SRS process.
@@ -45,7 +45,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -45,7 +45,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
45 #define SRS_ENCODER_NO_VIDEO "vn" 45 #define SRS_ENCODER_NO_VIDEO "vn"
46 #define SRS_ENCODER_NO_AUDIO "an" 46 #define SRS_ENCODER_NO_AUDIO "an"
47 #define SRS_ENCODER_VCODEC "libx264" 47 #define SRS_ENCODER_VCODEC "libx264"
48 -#define SRS_ENCODER_ACODEC "libaacplus" 48 +#define SRS_ENCODER_ACODEC "aac"
49 49
50 // for encoder to detect the dead loop 50 // for encoder to detect the dead loop
51 static std::vector<std::string> _transcoded_url; 51 static std::vector<std::string> _transcoded_url;
@@ -191,7 +191,7 @@ int SrsFFMPEG::initialize(SrsRequest* req, SrsConfDirective* engine) @@ -191,7 +191,7 @@ int SrsFFMPEG::initialize(SrsRequest* req, SrsConfDirective* engine)
191 } 191 }
192 192
193 if (acodec != SRS_ENCODER_COPY && acodec != SRS_ENCODER_NO_AUDIO) { 193 if (acodec != SRS_ENCODER_COPY && acodec != SRS_ENCODER_NO_AUDIO) {
194 - if (acodec != SRS_ENCODER_ACODEC) { 194 + if (acodec.find(SRS_ENCODER_ACODEC) == std::string::npos) {
195 ret = ERROR_ENCODER_ACODEC; 195 ret = ERROR_ENCODER_ACODEC;
196 srs_error("invalid acodec, must be %s, actual %s, ret=%d", 196 srs_error("invalid acodec, must be %s, actual %s, ret=%d",
197 SRS_ENCODER_ACODEC, acodec.c_str(), ret); 197 SRS_ENCODER_ACODEC, acodec.c_str(), ret);