• Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    sim3x: Может мне удалить кодеки и ffmpeg + libav-tools? и заново собрать?
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    sim3x: обновилось без ошибок и сервер стоит в дата центре, я проверяю каждую команду прежде чем запустить на сервере. Там работает 3 сайта, я даже незнаю. Вообщем хотел hls vod но нашел только это модуль остальные платные
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    sim3x:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:58:2: error: unknown type name ‘AVFilterGraph’
      AVFilterGraph *filter_graph;
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:88:2: error: unknown type name ‘AVFilterGraph’
      AVFilterGraph *filter_graph;
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:89:2: error: unknown type name ‘AVFilterInOut’
      AVFilterInOut** outputs;
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:106:2: error: ‘AV_CH_LAYOUT_MONO’ undeclared here (not in a function)
      AV_CH_LAYOUT_MONO,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:107:2: error: ‘AV_CH_LAYOUT_STEREO’ undeclared here (not in a function)
      AV_CH_LAYOUT_STEREO,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:108:2: error: ‘AV_CH_LAYOUT_SURROUND’ undeclared here (not in a function)
      AV_CH_LAYOUT_SURROUND,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:109:2: error: ‘AV_CH_LAYOUT_4POINT0’ undeclared here (not in a function)
      AV_CH_LAYOUT_4POINT0,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:110:2: error: ‘AV_CH_LAYOUT_5POINT0_BACK’ undeclared here (not in a function)
      AV_CH_LAYOUT_5POINT0_BACK,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:111:2: error: ‘AV_CH_LAYOUT_5POINT1_BACK’ undeclared here (not in a function)
      AV_CH_LAYOUT_5POINT1_BACK,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:112:2: error: ‘AV_CH_LAYOUT_7POINT1_WIDE_BACK’ undeclared here (not in a function)
      AV_CH_LAYOUT_7POINT1_WIDE_BACK,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:182:2: error: unknown type name ‘AVFilterGraph’
      AVFilterGraph *filter_graph,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:186:2: error: unknown type name ‘AVFilterInOut’
      AVFilterInOut** outputs)
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:289:2: error: unknown type name ‘AVFilterGraph’
      AVFilterGraph *filter_graph,
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:293:2: error: unknown type name ‘AVFilterInOut’
      AVFilterInOut** inputs)
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_init_sources_and_graph_desc’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:605:3: error: implicit declaration of function ‘audio_filter_init_source’ [-Werror=implicit-function-declaration]
       return audio_filter_init_source(
       ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_alloc_state’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:654:2: error: unknown type name ‘AVFilterInOut’
      AVFilterInOut *outputs = NULL;
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:655:2: error: unknown type name ‘AVFilterInOut’
      AVFilterInOut *inputs = NULL;
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:722:2: error: implicit declaration of function ‘avfilter_graph_alloc’ [-Werror=implicit-function-declaration]
      state->filter_graph = avfilter_graph_alloc();
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:722:22: error: assignment makes pointer from integer without a cast [-Werror]
      state->filter_graph = avfilter_graph_alloc();
                          ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:763:2: error: implicit declaration of function ‘audio_filter_init_sink’ [-Werror=implicit-function-declaration]
      rc = audio_filter_init_sink(
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:776:2: error: implicit declaration of function ‘avfilter_graph_parse_ptr’ [-Werror=implicit-function-declaration]
      avrc = avfilter_graph_parse_ptr(state->filter_graph, (char*)init_context.graph_desc, &inputs, &outputs, NULL);
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:786:2: error: implicit declaration of function ‘avfilter_graph_config’ [-Werror=implicit-function-declaration]
      avrc = avfilter_graph_config(state->filter_graph, NULL);
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:798:3: error: implicit declaration of function ‘av_buffersink_set_frame_size’ [-Werror=implicit-function-declaration]
       av_buffersink_set_frame_size(state->sink.buffer_sink, state->sink.encoder->frame_size);
       ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:802:2: error: implicit declaration of function ‘av_frame_alloc’ [-Werror=implicit-function-declaration]
      state->decoded_frame = av_frame_alloc();
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:802:23: error: assignment makes pointer from integer without a cast [-Werror]
      state->decoded_frame = av_frame_alloc();
                           ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:809:24: error: assignment makes pointer from integer without a cast [-Werror]
      state->filtered_frame = av_frame_alloc();
                            ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:849:2: error: implicit declaration of function ‘avfilter_inout_free’ [-Werror=implicit-function-declaration]
      avfilter_inout_free(&inputs);
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_free_state’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:864:3: error: implicit declaration of function ‘av_free’ [-Werror=implicit-function-declaration]
       av_free(sources_cur->decoder);
       ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:868:2: error: implicit declaration of function ‘avfilter_graph_free’ [-Werror=implicit-function-declaration]
      avfilter_graph_free(&state->filter_graph);
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:869:2: error: implicit declaration of function ‘av_frame_free’ [-Werror=implicit-function-declaration]
      av_frame_free(&state->filtered_frame);
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_read_filter_sink’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1104:3: error: implicit declaration of function ‘av_buffersink_get_frame_flags’ [-Werror=implicit-function-declaration]
       avrc = av_buffersink_get_frame_flags(state->sink.buffer_sink, state->filtered_frame, AV_BUFFERSINK_FLAG_NO_REQUEST);
       ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1104:88: error: ‘AV_BUFFERSINK_FLAG_NO_REQUEST’ undeclared (first use in this function)
       avrc = av_buffersink_get_frame_flags(state->sink.buffer_sink, state->filtered_frame, AV_BUFFERSINK_FLAG_NO_REQUEST);
                                                                                            ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1104:88: note: each undeclared identifier is reported only once for each function it appears in
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1134:3: error: implicit declaration of function ‘av_frame_unref’ [-Werror=implicit-function-declaration]
       av_frame_unref(state->filtered_frame);
       ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_process_frame’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1210:2: error: implicit declaration of function ‘av_buffersrc_add_frame_flags’ [-Werror=implicit-function-declaration]
      avrc = av_buffersrc_add_frame_flags(source->buffer_src, state->decoded_frame, AV_BUFFERSRC_FLAG_PUSH);
      ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1210:80: error: ‘AV_BUFFERSRC_FLAG_PUSH’ undeclared (first use in this function)
      avrc = av_buffersrc_add_frame_flags(source->buffer_src, state->decoded_frame, AV_BUFFERSRC_FLAG_PUSH);
                                                                                    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_choose_source’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1233:3: error: implicit declaration of function ‘avfilter_graph_request_oldest’ [-Werror=implicit-function-declaration]
       ret = avfilter_graph_request_oldest(state->filter_graph);
       ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1268:3: error: implicit declaration of function ‘av_buffersrc_get_nb_failed_requests’ [-Werror=implicit-function-declaration]
       failed_requests = av_buffersrc_get_nb_failed_requests(sources_cur->buffer_src);
       ^
    cc1: all warnings being treated as errors
    make[2]: *** [objs/addon/filters/audio_filter.o] Ошибка 1
    make[2]: Выход из каталога `/tmp/ngx/nginx-1.4.6/debian/build-full'
    make[1]: *** [build] Ошибка 2
    make[1]: Выход из каталога `/tmp/ngx/nginx-1.4.6/debian/build-full'
    make: *** [build-arch.full] Ошибка 2
    dpkg-buildpackage: ошибка: debian/rules build возвратил код ошибки 2


    Установил libav-tools и все же без изменений
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса

    -o objs/addon/filters/audio_filter.o \
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:58:2: error: unknown type name ‘AVFilterGraph’
    AVFilterGraph *filter_graph;
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:88:2: error: unknown type name ‘AVFilterGraph’
    AVFilterGraph *filter_graph;
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:89:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut** outputs;
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:106:2: error: ‘AV_CH_LAYOUT_MONO’ undeclared here (not in a function)
    AV_CH_LAYOUT_MONO,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:107:2: error: ‘AV_CH_LAYOUT_STEREO’ undeclared here (not in a function)
    AV_CH_LAYOUT_STEREO,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:108:2: error: ‘AV_CH_LAYOUT_SURROUND’ undeclared here (not in a function)
    AV_CH_LAYOUT_SURROUND,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:109:2: error: ‘AV_CH_LAYOUT_4POINT0’ undeclared here (not in a function)
    AV_CH_LAYOUT_4POINT0,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:110:2: error: ‘AV_CH_LAYOUT_5POINT0_BACK’ undeclared here (not in a function)
    AV_CH_LAYOUT_5POINT0_BACK,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:111:2: error: ‘AV_CH_LAYOUT_5POINT1_BACK’ undeclared here (not in a function)
    AV_CH_LAYOUT_5POINT1_BACK,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:112:2: error: ‘AV_CH_LAYOUT_7POINT1_WIDE_BACK’ undeclared here (not in a function)
    AV_CH_LAYOUT_7POINT1_WIDE_BACK,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:182:2: error: unknown type name ‘AVFilterGraph’
    AVFilterGraph *filter_graph,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:186:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut** outputs)
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:289:2: error: unknown type name ‘AVFilterGraph’
    AVFilterGraph *filter_graph,
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:293:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut** inputs)
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_init_sources_and_graph_desc’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:605:3: error: implicit declaration of function ‘audio_filter_init_source’ [-Werror=implicit-function-declaration]
    return audio_filter_init_source(
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_alloc_state’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:654:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut *outputs = NULL;
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:655:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut *inputs = NULL;
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:722:2: error: implicit declaration of function ‘avfilter_graph_alloc’ [-Werror=implicit-function-declaration]
    state->filter_graph = avfilter_graph_alloc();
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:722:22: error: assignment makes pointer from integer without a cast [-Werror]
    state->filter_graph = avfilter_graph_alloc();
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:763:2: error: implicit declaration of function ‘audio_filter_init_sink’ [-Werror=implicit-function-declaration]
    rc = audio_filter_init_sink(
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:776:2: error: implicit declaration of function ‘avfilter_graph_parse_ptr’ [-Werror=implicit-function-declaration]
    avrc = avfilter_graph_parse_ptr(state->filter_graph, (char*)init_context.graph_desc, &inputs, &outputs, NULL);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:786:2: error: implicit declaration of function ‘avfilter_graph_config’ [-Werror=implicit-function-declaration]
    avrc = avfilter_graph_config(state->filter_graph, NULL);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:798:3: error: implicit declaration of function ‘av_buffersink_set_frame_size’ [-Werror=implicit-function-declaration]
    av_buffersink_set_frame_size(state->sink.buffer_sink, state->sink.encoder->frame_size);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:802:2: error: implicit declaration of function ‘av_frame_alloc’ [-Werror=implicit-function-declaration]
    state->decoded_frame = av_frame_alloc();
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:802:23: error: assignment makes pointer from integer without a cast [-Werror]
    state->decoded_frame = av_frame_alloc();
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:809:24: error: assignment makes pointer from integer without a cast [-Werror]
    state->filtered_frame = av_frame_alloc();
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:849:2: error: implicit declaration of function ‘avfilter_inout_free’ [-Werror=implicit-function-declaration]
    avfilter_inout_free(&inputs);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_free_state’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:864:3: error: implicit declaration of function ‘av_free’ [-Werror=implicit-function-declaration]
    av_free(sources_cur->decoder);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:868:2: error: implicit declaration of function ‘avfilter_graph_free’ [-Werror=implicit-function-declaration]
    avfilter_graph_free(&state->filter_graph);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:869:2: error: implicit declaration of function ‘av_frame_free’ [-Werror=implicit-function-declaration]
    av_frame_free(&state->filtered_frame);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_read_filter_sink’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1104:3: error: implicit declaration of function ‘av_buffersink_get_frame_flags’ [-Werror=implicit-function-declaration]
    avrc = av_buffersink_get_frame_flags(state->sink.buffer_sink, state->filtered_frame, AV_BUFFERSINK_FLAG_NO_REQUEST);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1104:88: error: ‘AV_BUFFERSINK_FLAG_NO_REQUEST’ undeclared (first use in this function)
    avrc = av_buffersink_get_frame_flags(state->sink.buffer_sink, state->filtered_frame, AV_BUFFERSINK_FLAG_NO_REQUEST);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1104:88: note: each undeclared identifier is reported only once for each function it appears in
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1134:3: error: implicit declaration of function ‘av_frame_unref’ [-Werror=implicit-function-declaration]
    av_frame_unref(state->filtered_frame);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_process_frame’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1210:2: error: implicit declaration of function ‘av_buffersrc_add_frame_flags’ [-Werror=implicit-function-declaration]
    avrc = av_buffersrc_add_frame_flags(source->buffer_src, state->decoded_frame, AV_BUFFERSRC_FLAG_PUSH);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1210:80: error: ‘AV_BUFFERSRC_FLAG_PUSH’ undeclared (first use in this function)
    avrc = av_buffersrc_add_frame_flags(source->buffer_src, state->decoded_frame, AV_BUFFERSRC_FLAG_PUSH);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c: In function ‘audio_filter_choose_source’:
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1233:3: error: implicit declaration of function ‘avfilter_graph_request_oldest’ [-Werror=implicit-function-declaration]
    ret = avfilter_graph_request_oldest(state->filter_graph);
    ^
    /tmp/ngx/nginx-1.4.6/debian/modules/nginx-vod-module/vod/filters/audio_filter.c:1268:3: error: implicit declaration of function ‘av_buffersrc_get_nb_failed_requests’ [-Werror=implicit-function-declaration]
    failed_requests = av_buffersrc_get_nb_failed_requests(sources_cur->buffer_src);
    ^
    cc1: all warnings being treated as errors
    make[2]: *** [objs/addon/filters/audio_filter.o] Ошибка 1
    make[2]: Выход из каталога `/tmp/ngx/nginx-1.4.6/debian/build-full'
    make[1]: *** [build] Ошибка 2
    make[1]: Выход из каталога `/tmp/ngx/nginx-1.4.6/debian/build-full'
    make: *** [build-arch.full] Ошибка 2
    dpkg-buildpackage: ошибка: debian/rules build возвратил код ошибки 2


    Все сделал как написано, но все же выдает ошибку. может что то еще надо установить или обновить?
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса

    ./configure --with-cc-opt='-g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module --with-file-aio --add-module=/tmp/nginx-1.4.6/debian/modules/nginx-auth-pam --add-module=/tmp/nginx-1.4.6/debian/modules/nginx-dav-ext-module --add-module=/tmp/nginx-1.4.6/debian/modules/nginx-echo --add-module=/tmp/nginx-1.4.6/debian/modules/nginx-upstream-fair --add-module=/tmp/nginx-1.4.6/debian/modules/ngx_http_substitutions_filter_module --add-module=/tmp/nginx-rtmp-module-master --add-module=/tmp/nginx-vod-module-master


    make
    make install
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    sim3x: Убрал -Werror ошибка cc1: all warnings being treated as errors исчез но все остальные осталось без изменений. Да прости что все просто скопировал и вставил. если понадобиться могу создать файл то я создам в гитхабе и покажу ошибки
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    Обновил ubuntu с 12.04 на 14.04
    версия nginx 1.4.6
    Установил последний версии ffmpeg и библиотеку libavfilter
    Все модули работает без проблем кроме Nginx vod. где я допустил ошибку? заранее спасибо за ответы
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    ffmpeg version N-78590-g5590ab4 Copyright (c) 2000-2016 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
    configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
    libavutil 55. 18.100 / 55. 18.100
    libavcodec 57. 24.103 / 57. 24.103
    libavformat 57. 25.100 / 57. 25.100
    libavdevice 57. 0.101 / 57. 0.101
    libavfilter 6. 32.100 / 6. 32.100
    libavresample 3. 0. 0 / 3. 0. 0
    libswscale 4. 0.100 / 4. 0.100
    libswresample 2. 0.101 / 2. 0.101
    libpostproc 54. 0.100 / 54. 0.100
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    -o objs/addon/filters/audio_filter.o \
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:58:2: error: unknown type name ‘AVFilterGraph’
    AVFilterGraph *filter_graph;
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:88:2: error: unknown type name ‘AVFilterGraph’
    AVFilterGraph *filter_graph;
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:89:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut** outputs;
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:106:2: error: ‘AV_CH_LAYOUT_MONO’ undeclared here (not in a function)
    AV_CH_LAYOUT_MONO,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:107:2: error: ‘AV_CH_LAYOUT_STEREO’ undeclared here (not in a function)
    AV_CH_LAYOUT_STEREO,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:108:2: error: ‘AV_CH_LAYOUT_SURROUND’ undeclared here (not in a function)
    AV_CH_LAYOUT_SURROUND,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:109:2: error: ‘AV_CH_LAYOUT_4POINT0’ undeclared here (not in a function)
    AV_CH_LAYOUT_4POINT0,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:110:2: error: ‘AV_CH_LAYOUT_5POINT0_BACK’ undeclared here (not in a function)
    AV_CH_LAYOUT_5POINT0_BACK,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:111:2: error: ‘AV_CH_LAYOUT_5POINT1_BACK’ undeclared here (not in a function)
    AV_CH_LAYOUT_5POINT1_BACK,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:112:2: error: ‘AV_CH_LAYOUT_7POINT1_WIDE_BACK’ undeclared here (not in a function)
    AV_CH_LAYOUT_7POINT1_WIDE_BACK,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:182:2: error: unknown type name ‘AVFilterGraph’
    AVFilterGraph *filter_graph,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:186:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut** outputs)
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:289:2: error: unknown type name ‘AVFilterGraph’
    AVFilterGraph *filter_graph,
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:293:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut** inputs)
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c: In function ‘audio_filter_init_sources_and_graph_desc’:
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:605:3: error: implicit declaration of function ‘audio_filter_init_source’ [-Werror=implicit-function-declaration]
    return audio_filter_init_source(
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c: In function ‘audio_filter_alloc_state’:
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:654:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut *outputs = NULL;
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:655:2: error: unknown type name ‘AVFilterInOut’
    AVFilterInOut *inputs = NULL;
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:722:2: error: implicit declaration of function ‘avfilter_graph_alloc’ [-Werror=implicit-function-declaration]
    state->filter_graph = avfilter_graph_alloc();
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:722:22: error: assignment makes pointer from integer without a cast [-Werror]
    state->filter_graph = avfilter_graph_alloc();
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:763:2: error: implicit declaration of function ‘audio_filter_init_sink’ [-Werror=implicit-function-declaration]
    rc = audio_filter_init_sink(
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:776:2: error: implicit declaration of function ‘avfilter_graph_parse_ptr’ [-Werror=implicit-function-declaration]
    avrc = avfilter_graph_parse_ptr(state->filter_graph, (char*)init_context.graph_desc, &inputs, &outputs, NULL);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:786:2: error: implicit declaration of function ‘avfilter_graph_config’ [-Werror=implicit-function-declaration]
    avrc = avfilter_graph_config(state->filter_graph, NULL);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:798:3: error: implicit declaration of function ‘av_buffersink_set_frame_size’ [-Werror=implicit-function-declaration]
    av_buffersink_set_frame_size(state->sink.buffer_sink, state->sink.encoder->frame_size);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:802:2: error: implicit declaration of function ‘av_frame_alloc’ [-Werror=implicit-function-declaration]
    state->decoded_frame = av_frame_alloc();
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:802:23: error: assignment makes pointer from integer without a cast [-Werror]
    state->decoded_frame = av_frame_alloc();
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:809:24: error: assignment makes pointer from integer without a cast [-Werror]
    state->filtered_frame = av_frame_alloc();
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:849:2: error: implicit declaration of function ‘avfilter_inout_free’ [-Werror=implicit-function-declaration]
    avfilter_inout_free(&inputs);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c: In function ‘audio_filter_free_state’:
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:864:3: error: implicit declaration of function ‘av_free’ [-Werror=implicit-function-declaration]
    av_free(sources_cur->decoder);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:868:2: error: implicit declaration of function ‘avfilter_graph_free’ [-Werror=implicit-function-declaration]
    avfilter_graph_free(&state->filter_graph);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:869:2: error: implicit declaration of function ‘av_frame_free’ [-Werror=implicit-function-declaration]
    av_frame_free(&state->filtered_frame);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c: In function ‘audio_filter_read_filter_sink’:
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1104:3: error: implicit declaration of function ‘av_buffersink_get_frame_flags’ [-Werror=implicit-function-declaration]
    avrc = av_buffersink_get_frame_flags(state->sink.buffer_sink, state->filtered_frame, AV_BUFFERSINK_FLAG_NO_REQUEST);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1104:88: error: ‘AV_BUFFERSINK_FLAG_NO_REQUEST’ undeclared (first use in this function)
    avrc = av_buffersink_get_frame_flags(state->sink.buffer_sink, state->filtered_frame, AV_BUFFERSINK_FLAG_NO_REQUEST);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1104:88: note: each undeclared identifier is reported only once for each function it appears in
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1134:3: error: implicit declaration of function ‘av_frame_unref’ [-Werror=implicit-function-declaration]
    av_frame_unref(state->filtered_frame);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c: In function ‘audio_filter_process_frame’:
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1210:2: error: implicit declaration of function ‘av_buffersrc_add_frame_flags’ [-Werror=implicit-function-declaration]
    avrc = av_buffersrc_add_frame_flags(source->buffer_src, state->decoded_frame, AV_BUFFERSRC_FLAG_PUSH);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1210:80: error: ‘AV_BUFFERSRC_FLAG_PUSH’ undeclared (first use in this function)
    avrc = av_buffersrc_add_frame_flags(source->buffer_src, state->decoded_frame, AV_BUFFERSRC_FLAG_PUSH);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c: In function ‘audio_filter_choose_source’:
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1233:3: error: implicit declaration of function ‘avfilter_graph_request_oldest’ [-Werror=implicit-function-declaration]
    ret = avfilter_graph_request_oldest(state->filter_graph);
    ^
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1268:3: error: implicit declaration of function ‘av_buffersrc_get_nb_failed_requests’ [-Werror=implicit-function-declaration]
    failed_requests = av_buffersrc_get_nb_failed_requests(sources_cur->buffer_src);
    ^
    cc1: all warnings being treated as errors
    make[1]: *** [objs/addon/filters/audio_filter.o] Ошибка 1
    make[1]: Выход из каталога `/tmp/nginx-1.4.6'
    make: *** [build] Ошибка 2
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    Все сделал, обновил версию до 1.8.1 старые ошибки исчезли, сервер и настройки сохранил, ничего не слетела но когда хочу добавить модуль nginx-vod выдает уже другую ошибку. По моему это из за библиотеки.
    -o objs/addon/filters/audio_filter.o \
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c: В функции «audio_filter_flush_encoder»:
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1061:3: ошибка: «av_free_packet» is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4086) [-Werror=deprecated-declarations]
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c: В функции «audio_filter_read_filter_sink»:
    /tmp/nginx-vod-module-master/vod/filters/audio_filter.c:1147:4: ошибка: «av_free_packet» is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4086) [-Werror=deprecated-declarations]
    cc1: all warnings being treated as errors
    make[1]: *** [objs/addon/filters/audio_filter.o] Ошибка 1
    make[1]: Выход из каталога `/tmp/nginx-1.8.1'
    make: *** [build] Ошибка 2

    Есть варианты?) заранее спасибо за помощь
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    Решил добавить модуль https://github.com/kaltura/nginx-vod-module но выдает ошибку
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    Настроил сервер по мануалу из сайта istarik.ru/blog/linux/12.html
  • Проблема при компиляции Nginx модуль?

    @bakhritdinov_b Автор вопроса
    Nginx был установлен командной apt-get instal nginx-full
    Вот файл source.list
    # See help.ubuntu.com/community/UpgradeNotes for how to upgrade to
    # newer versions of the distribution.
    deb uz.archive.ubuntu.com/ubuntu precise main restricted
    deb-src uz.archive.ubuntu.com/ubuntu precise main restricted

    ## Major bug fix updates produced after the final release of the
    ## distribution.
    deb uz.archive.ubuntu.com/ubuntu precise-updates main restricted
    deb-src uz.archive.ubuntu.com/ubuntu precise-updates main restricted

    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team. Also, please note that software in universe WILL NOT receive any
    ## review or updates from the Ubuntu security team.
    deb uz.archive.ubuntu.com/ubuntu precise universe
    deb-src uz.archive.ubuntu.com/ubuntu precise universe
    deb uz.archive.ubuntu.com/ubuntu precise-updates universe
    deb-src uz.archive.ubuntu.com/ubuntu precise-updates universe

    ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    ## team, and may not be under a free licence. Please satisfy yourself as to
    ## your rights to use the software. Also, please note that software in
    ## multiverse WILL NOT receive any review or updates from the Ubuntu
    ## security team.
    deb uz.archive.ubuntu.com/ubuntu precise multiverse
    deb-src uz.archive.ubuntu.com/ubuntu precise multiverse
    deb uz.archive.ubuntu.com/ubuntu precise-updates multiverse
    deb-src uz.archive.ubuntu.com/ubuntu precise-updates multiverse

    ## N.B. software from this repository may not have been tested as
    ## extensively as that contained in the main release, although it includes
    ## newer versions of some applications which may provide useful features.
    ## Also, please note that software in backports WILL NOT receive any review
    ## or updates from the Ubuntu security team.
    deb uz.archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse
    deb-src uz.archive.ubuntu.com/ubuntu precise-backports main restricted universe multiverse

    deb security.ubuntu.com/ubuntu precise-security main restricted
    deb-src security.ubuntu.com/ubuntu precise-security main restricted
    deb security.ubuntu.com/ubuntu precise-security universe
    deb-src security.ubuntu.com/ubuntu precise-security universe
    deb security.ubuntu.com/ubuntu precise-security multiverse
    deb-src security.ubuntu.com/ubuntu precise-security multiverse
  • Сканирование директорий сайта это реально?

    @bakhritdinov_b Автор вопроса
    Slava Kryvel: Сайт содержит только медиа контакт. там даже нет php кода. я тоже думаю что если nginx то это пока невозможно. (пока невозможно)
  • Сканирование директорий сайта это реально?

    @bakhritdinov_b Автор вопроса
    Не сервер, но все равно может найдется какой то решения.