-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nginx 1.12.2 Compilation Error #31
Comments
Hello friends, i was able to compile nginx with the audio_track module, but now I get this error when adding the settings in my .conf file - "nginx: [error] aac module: output format must be defined in /usr/local/nginx/conf/nginx.conf:66" how to fix this problem? |
you need to add this to your nginx.conf:
|
tell us if it works, if so, please close this issue! |
Thanks for your help!
thank you! |
my complete .conf file user root; pid logs/nginx.pid; events { rtmp {
}
}
}
}
} the .ts file does not play in my VLC PLAYER, analyzing the messages I get 'ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 15) for PID 0 |
Can someone help me with my problem ?! |
good afternoon,
I'm having trouble compiling the module, lua-nginx-module / nginx-audio-track-for-hls-module
I am using Centos7, when giving the ./configure command and adding the path I get this message
configuring additional modules
adding module in / root / nginx-rtmp-vlc
ngx_rtmp_module was configured
adding module in /root/lua-nginx-module-0.10.12rc2
checking for Lua library ... not found
checking for Lua library in / usr / local / ... not found
checking for Lua library in / usr / local / ... not found
checking for Lua library in / usr / pkg / ... not found
checking for Lua library in / opt / local / ... not found
checking for Lua library in / usr / local / * / lua51 / ... not found
checking for Lua library in / usr / ... not found
checking for LuaJIT library in / usr / local / ... found
checking for export symbols by default (-E) ... found
checking for export symbols by default (--export-all-symbols) ... not found
found for SO_PASSCRED ... found
found for __attribute __ (constructor) ... found
found for malloc_trim ... found
ngx_http_lua_module was configured
adding module in / root / nginx-audio-track-for-hls-module
ngx_http_aac_module was configured
found for PCRE library ... found
found for PCRE JIT support ... found
found for openSSL library found
found for zlib library found
creating objs / Makefile
with the make command
-o objs / addon / nginx-audio-track-for-hls-module / ngx_http_aac_module.
/root/nginx-audio-track-for-hls-module/ngx_http_aac_module.c
/root/nginx-audio-track-for-hls-module/ngx_http_aac_module.c: In function ângx_http_aac_extract_audioâ:
/root/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:210:5: error: âavcodec_copy_contextâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4098) [-Werror = deprecated-declarations]
avcodec_copy_context (output_audio_stream-> codec, input_audio_stream-> codec);
^
/root/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:210:5: error: âcodecâ is deprecated (declared at /usr/local/include/libavformat/avformat.h:876) [-Werror = deprecated-declarations]
/root/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:210:5: error: âcodecâ is deprecated (declared at /usr/local/include/libavformat/avformat.h:876) [-Werror = deprecated-declarations]
/root/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:223:13: error: âav_free_packetâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4336) [-Werror = deprecated-declarations]
av_free_packet (& new_packet);
^
/root/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:225:9: error: âav_free_packetâ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4336) [-Werror = deprecated-declarations]
av_free_packet (& packet);
^
/root/nginx-audio-track-for-hls-module/ngx_http_aac_module.c:211:26: error: ignoring return value of âavformat_write_headerâ, declared with attribute warn_unused_result [-Werror = unused-result]
avformat_write_header (output_format_context, NULL);
^
cc1: all warnings being treated as errors
make [1]: ** [objs / addon / nginx-audio-track-for-hls-module / ngx_http_aac_module.o] Error 1
make [1]: Exiting the directory `/root/nginx-1.13.8 '
make: ** [build] Error 2
Any solution for avodec obsolete?
The text was updated successfully, but these errors were encountered: