Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (52)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (9568)

  • error : undefined reference to 'av_free_packet(AVPacket*)' when use NDK to compile ffmpeg

    23 juin 2015, par wolfz

    I compiled my cpps to use ffmpeg liberary with ANDROID NDK by my android MK as follow :

       LOCAL_PATH := $(call my-dir)
       DEFINES += -DTARGET_POSIX \
                  -DTARGET_LINUX \
              -D_LINUX \
              -DTARGET_ANDROID \
              -D__STDC_CONSTANT_MACROS

       include $(CLEAR_VARS)  
       LOCAL_MODULE := libavcodec
       LOCAL_SRC_FILES := lib/lib/libavcodec.so
       include $(PREBUILT_SHARED_LIBRARY)  

       include $(CLEAR_VARS)  
       LOCAL_MODULE := libavfilter  
       LOCAL_SRC_FILES := lib/lib/libavfilter.so
       include $(PREBUILT_SHARED_LIBRARY)  

       include $(CLEAR_VARS)  
       LOCAL_MODULE := libavformat  
       LOCAL_SRC_FILES := lib/lib/libavformat.so  
       include $(PREBUILT_SHARED_LIBRARY)  

       include $(CLEAR_VARS)  
       LOCAL_MODULE := libavutil  
       LOCAL_SRC_FILES := lib/lib/libavutil.so  
       include $(PREBUILT_SHARED_LIBRARY)  

       include $(CLEAR_VARS)  
       LOCAL_MODULE := libpostproc  
       LOCAL_SRC_FILES := lib/lib/libpostproc.so  
       include $(PREBUILT_SHARED_LIBRARY)  

       include $(CLEAR_VARS)  
       LOCAL_MODULE := libswresample  
       LOCAL_SRC_FILES := lib/lib/libswresample.so  
       include $(PREBUILT_SHARED_LIBRARY)  

       include $(CLEAR_VARS)  
       LOCAL_MODULE := libswscale  
       LOCAL_SRC_FILES := lib/lib/libswscale.so
       include $(PREBUILT_SHARED_LIBRARY)  

       include $(CLEAR_VARS)
       LOCAL_MODULE:= player
       base := $(LOCAL_PATH)
       LOCAL_SRC_FILES += cores/PlayDemux.cpp \
                      cores/PlayDemuxFFmpeg.cpp \
                      cores/PlayFactoryDemuxer.cpp

       LOCAL_C_INCLUDES += $(LOCAL_PATH) \
               $(LOCAL_PATH)/lib \
               $(LOCAL_PATH)/lib/include \
               $(LOCAL_PATH)/cores/player \
       LOCAL_CPPFLAGS += -Wall -fexceptions $(DEFINES)
       include $(BUILD_STATIC_LIBRARY)

       include $(CLEAR_VARS)
       LOCAL_MODULE:= testmain

       LOCAL_SRC_FILES := \
           testmain.cpp \

       LOCAL_C_INCLUDES += $(LOCAL_PATH) \
                   $(LOCAL_PATH)/lib
       LOCAL_CPPFLAGS += -Wall -fexceptions $(DEFINES)

       LOCAL_SHARED_LIBRARIES := libavcodec \
                   libavformat \
                   libavfilter \
                   libavutil \
                   libpostproc \
                   libswscale \
                   libswresample

       LOCAL_STATIC_LIBRARIES := player

       include $(BUILD_EXECUTABLE)

    but when i do "ndk-build v=1", After compiling, I got :

       Install        : libavcodec.so => libs/armeabi-v7a/libavcodec.so
       install -p /cygdrive/d/player/obj/local/armeabi-v7a/libavcodec.so /cygdrive/d/player/libs/armeabi-v7a/libavcodec.so
       /cygdrive/d/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip --strip-unneeded D:/player/libs/armeabi-v7a/libavcodec.so
       Install        : libavfilter.so => libs/armeabi-v7a/libavfilter.so
       install -p /cygdrive/d/player/obj/local/armeabi-v7a/libavfilter.so /cygdrive/d/player/libs/armeabi-v7a/libavfilter.so
       /cygdrive/d/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip --strip-unneeded D:/player/libs/armeabi-v7a/libavfilter.so
       Install        : libavformat.so => libs/armeabi-v7a/libavformat.so
       install -p /cygdrive/d/player/obj/local/armeabi-v7a/libavformat.so /cygdrive/d/player/libs/armeabi-v7a/libavformat.so
       /cygdrive/d/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip --strip-unneeded D:/player/libs/armeabi-v7a/libavformat.so
       Install        : libavutil.so => libs/armeabi-v7a/libavutil.so
       install -p /cygdrive/d/player/obj/local/armeabi-v7a/libavutil.so /cygdrive/d/player/libs/armeabi-v7a/libavutil.so
       /cygdrive/d/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip --strip-unneeded D:/player/libs/armeabi-v7a/libavutil.so
       Install        : libpostproc.so => libs/armeabi-v7a/libpostproc.so
       install -p /cygdrive/d/player/obj/local/armeabi-v7a/libpostproc.so /cygdrive/d/player/libs/armeabi-v7a/libpostproc.so
       /cygdrive/d/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip --strip-unneeded D:/player/libs/armeabi-v7a/libpostproc.so
       Install        : libswresample.so => libs/armeabi-v7a/libswresample.so
       install -p /cygdrive/d/player/obj/local/armeabi-v7a/libswresample.so /cygdrive/d/player/libs/armeabi-v7a/libswresample.so
       /cygdrive/d/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip --strip-unneeded D:/player/libs/armeabi-v7a/libswresample.so
       Install        : libswscale.so => libs/armeabi-v7a/libswscale.so
       install -p /cygdrive/d/player/obj/local/armeabi-v7a/libswscale.so /cygdrive/d/player/libs/armeabi-v7a/libswscale.so
       /cygdrive/d/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-strip --strip-unneeded D:/player/libs/armeabi-v7a/libswscale.so
       Executable     : testmain
       /cygdrive/d/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/arm-linux-androideabi-g++  -Wl,--gc-sections  -Wl,-z,nocopyreloc  --sysroot=D:/android/android-ndk-r8e/platforms/android-14/arch-arm  D:/player/obj/local/armeabi-v7a/objs/testmain/testmain.o D:/player/obj/local/armeabi-v7a/libplayer.a D:/android/android-ndk-r8e/sources/cxx-stl/stlport/libs/armeabi-v7a/libstlport_static.a -lgcc D:/player/obj/local/armeabi-v7a/libavcodec.so D:/player/obj/local/armeabi-v7a/libavformat.so D:/player/obj/local/armeabi-v7a/libavfilter.so D:/player/obj/local/armeabi-v7a/libavutil.so D:/player/obj/local/armeabi-v7a/libpostproc.so D:/player/obj/local/armeabi-v7a/libswscale.so D:/player/obj/local/armeabi-v7a/libswresample.so  -no-canonical-prefixes -march=armv7-a  -Wl,--fix-cortex-a8  -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now    -lc -lm  -o D:/player/obj/local/armeabi-v7a/testmain
       D:/android/android-ndk-r8e/toolchains/arm-linux-androideabi-4.6/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.6/../../../../arm-linux-androideabi/bin/ld.exe: D:/player/obj/local/armeabi-v7a/libplayer.a(PlayDemuxFFmpeg.o): in function PlayDemuxFFmpeg::Flush():D:/player/jni/lib/DllAvCodec.h:144: error: undefined reference to 'av_free_packet(AVPacket*)'

    I´m using windows 7 + cygwin + NDKR8,but the lib "libavcodec.so ,libavfilter.so,libavformat.so,libavutil.so,libpostproc.so,libswresample.so,libswscale.so " of ffmpeg was compiled with standalone mothed of NDK using "ubuntu + NDK8".
    and i include the extern "c" code in the head file.

    so, how to correct the error ?

    my DLLavcodec.h is :

    #pragma once
    #include "DllAvUtil.h"

    extern "C" {
     #include <libavcodec></libavcodec>avcodec.h>
    }


    class DllAvCodec : public DllAvCodecInterface
    {
    public:
     static CCriticalSection m_critSection;

     virtual ~DllAvCodec() {}
     virtual void avcodec_register_all()
     {
       ::avcodec_register_all();
     }
     virtual void avcodec_flush_buffers(AVCodecContext *avctx) { ::avcodec_flush_buffers(avctx); }
     virtual int avcodec_open2(AVCodecContext *avctx, AVCodec *codec, AVDictionary **options)
     {
       return ::avcodec_open2(avctx, codec, options);
     }
     virtual int avcodec_open2_dont_call(AVCodecContext *avctx, AVCodec *codec, AVDictionary **options) { *(volatile int *)0x0 = 0; return 0; }
     virtual int avcodec_close_dont_call(AVCodecContext *avctx) { *(volatile int *)0x0 = 0; return 0; }
     virtual AVCodec *avcodec_find_decoder(enum CodecID id) { return ::avcodec_find_decoder(id); }
     virtual AVCodec *avcodec_find_encoder(enum CodecID id) { return ::avcodec_find_encoder(id); }
     virtual int avcodec_close(AVCodecContext *avctx)
     {
       return ::avcodec_close(avctx);
     }
     virtual AVFrame *avcodec_alloc_frame() { return ::avcodec_alloc_frame(); }
     virtual int avpicture_fill(AVPicture *picture, uint8_t *ptr, PixelFormat pix_fmt, int width, int height) { return ::avpicture_fill(picture, ptr, pix_fmt, width, height); }
     virtual int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, AVPacket *avpkt) { return ::avcodec_decode_video2(avctx, picture, got_picture_ptr, avpkt); }
     virtual int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) { return ::avcodec_decode_audio4(avctx, frame, got_frame_ptr, avpkt); }
     virtual int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) { return ::avcodec_decode_subtitle2(avctx, sub, got_sub_ptr, avpkt); }
     virtual int avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples) { return ::avcodec_encode_audio(avctx, buf, buf_size, samples); }
     virtual int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { return ::avcodec_encode_audio2(avctx, avpkt, frame, got_packet_ptr); }
     virtual int avpicture_get_size(PixelFormat pix_fmt, int width, int height) { return ::avpicture_get_size(pix_fmt, width, height); }
     virtual AVCodecContext *avcodec_alloc_context3(AVCodec *codec) { return ::avcodec_alloc_context3(codec); }
     virtual void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode) { ::avcodec_string(buf, buf_size, enc, encode); }
     virtual void avcodec_get_context_defaults3(AVCodecContext *s, AVCodec *codec) { ::avcodec_get_context_defaults3(s, codec); }

     virtual AVCodecParserContext *av_parser_init(int codec_id) { return ::av_parser_init(codec_id); }
     virtual int av_parser_parse2(AVCodecParserContext *s,AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size,
                       const uint8_t *buf, int buf_size,
                       int64_t pts, int64_t dts, int64_t pos)
     {
       return ::av_parser_parse2(s, avctx, poutbuf, poutbuf_size, buf, buf_size, pts, dts, pos);
     }
     virtual void av_parser_close(AVCodecParserContext *s) { ::av_parser_close(s); }

     virtual AVBitStreamFilterContext *av_bitstream_filter_init(const char *name) { return ::av_bitstream_filter_init(name); }
     virtual int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc,
       AVCodecContext *avctx, const char *args,
       uint8_t **poutbuf, int *poutbuf_size,
       const uint8_t *buf, int buf_size, int keyframe) { return ::av_bitstream_filter_filter(bsfc, avctx, args, poutbuf, poutbuf_size, buf, buf_size, keyframe); }
     virtual void av_bitstream_filter_close(AVBitStreamFilterContext *bsfc) { ::av_bitstream_filter_close(bsfc); }

     virtual void avpicture_free(AVPicture *picture) { ::avpicture_free(picture); }
     virtual void av_free_packet(AVPacket *pkt) { ::av_free_packet(pkt); }
     virtual int avpicture_alloc(AVPicture *picture, PixelFormat pix_fmt, int width, int height) { return ::avpicture_alloc(picture, pix_fmt, width, height); }
     virtual int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic) { return ::avcodec_default_get_buffer(s, pic); }
     virtual void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic) { ::avcodec_default_release_buffer(s, pic); }
     virtual enum PixelFormat avcodec_default_get_format(struct AVCodecContext *s, const enum PixelFormat *fmt) { return ::avcodec_default_get_format(s, fmt); }
     virtual AVCodec *av_codec_next(AVCodec *c) { return ::av_codec_next(c); }

     virtual int av_dup_packet(AVPacket *pkt) { return ::av_dup_packet(pkt); }
     virtual void av_init_packet(AVPacket *pkt) { return ::av_init_packet(pkt); }
     virtual int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, enum AVSampleFormat sample_fmt, const uint8_t *buf, int buf_size, int align) { return ::avcodec_fill_audio_frame(frame, nb_channels, sample_fmt, buf, buf_size, align); }
     virtual void avcodec_free_frame(AVFrame **frame) { return ::avcodec_free_frame(frame); };
    };
  • Error for android-ndk-r21d and ffmpeg-snapshot

    4 août 2020, par yejafot

    why im getting the below errors.&#xA;Am i done any misconfiguration in the build file ?

    &#xA;

    Can you change it according, im trying to configure for arm64_v8a (.so) file for android jni in my linux machine. Thanks !

    &#xA;

    Below is my build file.

    &#xA;

    #!/bin/bash&#xA;export NDK=/media/sf_sharing/android-ndk-r21d&#xA;export SYSROOT=$NDK/platforms/android-21/arch-arm64/&#xA;export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64&#xA;export TARGET=aarch64-linux-android&#xA;export API=21&#xA;export AR=$TOOLCHAIN/bin/$TARGET-ar&#xA;export CC=$TOOLCHAIN/bin/$TARGET$API-clang&#xA;export CXX=$TOOLCHAIN/bin/$TARGET$API-clang&#x2B;&#x2B;&#xA;export LD=$TOOLCHAIN/bin/$TARGET-ld&#xA;export RANLIB=$TOOLCHAIN/bin/$TARGET-ranlib&#xA;export STRIP=$TOOLCHAIN/bin/$TARGET-strip&#xA;export CROSS_PREFIX=$NDK/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64&#xA;rm -f $(pwd)/compat/strtod.o     &#xA;function build_one&#xA;        {&#xA;         ./configure\&#xA;         --prefix=$PREFIX\&#xA;         --enable-shared\&#xA;         --disable-static\&#xA;         --ar=$AR\&#xA;         --cc=$CC\&#xA;         --cxx=$CXX\&#xA;         --pkg-config=$(which pkg-config)\&#xA;         --ld=$LD\&#xA;         --ranlib=$RANLIB\&#xA;         --strip=$STRIP\&#xA;         --enable-protocol=file\&#xA;         --enable-pic\&#xA;         --enable-small\&#xA;         --disable-programs\&#xA;         --disable-doc\&#xA;         --disable-symver\&#xA;         --target-os=android\&#xA;         --sysinclude=$TOOLCHAIN/sysroot/usr/include\&#xA;         --enable-cross-compile\&#xA;         --cross-prefix=$TOOLCHAIN/bin/$TARGET-\&#xA;         --extra-cflags="-Os -fpic $ADDI_CFLAGS"\&#xA;         --extra-ldflags="$ADDI_LDFLAGS"\&#xA;         --sysroot=$TOOLCHAIN/sysroot $ADDITIONAL_CONFIG_FLAG&#xA;         make clean&#xA;         make -j2&#xA;         make install&#xA;        }&#xA;        CPU=arm64-v8a&#xA;        mkdir -p $(pwd)/android/$CPU&#xA;        PREFIX=$(pwd)/android/$CPU&#xA;        ADDI_CFLAGS="-march=armv8-a"&#xA;        #ADDI_LDFLAGS="-L$TOOLCHAIN/sysroot/usr/lib"&#xA;        ADDI_LDFLAGS="-L$SYSROOT/usr/lib"&#xA;        ADDITIONAL_CONFIG_FLAG="--arch=aarch64 --enable-yasm"&#xA;        build_one&#xA;

    &#xA;

    Error :

    &#xA;

    INSTALL doc/examples/Makefile&#xA;CC  libavdevice/alldevices.o&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:39:&#xA;In file included from /media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h:32:&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h:61:7: error: expected identifier or &#x27;(&#x27;&#xA;char* getenv(const char* __name);&#xA;      ^&#xA;./config.h:17:19: note: expanded from macro &#x27;getenv&#x27;&#xA;#define getenv(x) NULL&#xA;                  ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/9.0.8/include/stddef.h:89:18: note: expanded from macro &#x27;NULL&#x27;&#xA;#  define NULL ((void*)0)&#xA;                 ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:39:&#xA;In file included from /media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h:32:&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h:61:7: error: expected &#x27;)&#x27;&#xA;./config.h:17:19: note: expanded from macro &#x27;getenv&#x27;&#xA;#define getenv(x) NULL&#xA;                  ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/9.0.8/include/stddef.h:89:18: note: expanded from macro &#x27;NULL&#x27;&#xA;#  define NULL ((void*)0)&#xA;                 ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h:61:7: note: to match this &#x27;(&#x27;&#xA;./config.h:17:19: note: expanded from macro &#x27;getenv&#x27;&#xA;#define getenv(x) NULL&#xA;                  ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/9.0.8/include/stddef.h:89:17: note: expanded from macro &#x27;NULL&#x27;&#xA;#  define NULL ((void*)0)&#xA;                ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:39:&#xA;In file included from /media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/local/include/stdlib.h:32:&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h:61:7: error: expected &#x27;)&#x27;&#xA;char* getenv(const char* __name);&#xA;      ^&#xA;./config.h:17:19: note: expanded from macro &#x27;getenv&#x27;&#xA;#define getenv(x) NULL&#xA;                  ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/9.0.8/include/stddef.h:89:24: note: expanded from macro &#x27;NULL&#x27;&#xA;#  define NULL ((void*)0)&#xA;                       ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/stdlib.h:61:7: note: to match this &#x27;(&#x27;&#xA;./config.h:17:19: note: expanded from macro &#x27;getenv&#x27;&#xA;#define getenv(x) NULL&#xA;                  ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/9.0.8/include/stddef.h:89:16: note: expanded from macro &#x27;NULL&#x27;&#xA;#  define NULL ((void*)0)&#xA;               ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:54:32: error: static declaration of &#x27;cbrt&#x27; follows non-static declaration&#xA;static av_always_inline double cbrt(double x)&#xA;                               ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:191:8: note: previous declaration is here&#xA;double cbrt(double __x);&#xA;       ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:61:31: error: static declaration of &#x27;cbrtf&#x27; follows non-static declaration&#xA;static av_always_inline float cbrtf(float x)&#xA;                              ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:192:7: note: previous declaration is here&#xA;float cbrtf(float __x);&#xA;      ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:68:32: error: static declaration of &#x27;copysign&#x27; follows non-static declaration&#xA;static av_always_inline double copysign(double x, double y)&#xA;                               ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:279:8: note: previous declaration is here&#xA;double copysign(double __value, double __sign) __attribute_const__;&#xA;       ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:121:22: error: static declaration of &#x27;erf&#x27; follows non-static declaration&#xA;static inline double erf(double z)&#xA;                     ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:211:8: note: previous declaration is here&#xA;double erf(double __x);&#xA;       ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:340:9: warning: &#x27;isnan&#x27; macro redefined [-Wmacro-redefined]&#xA;#define isnan(x)                  \&#xA;        ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:69:9: note: previous definition is here&#xA;#define isnan(x) __builtin_isnan(x)&#xA;        ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:359:9: warning: &#x27;isfinite&#x27; macro redefined [-Wmacro-redefined]&#xA;#define isfinite(x)                  \&#xA;        ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:65:9: note: previous definition is here&#xA;#define isfinite(x) __builtin_isfinite(x)&#xA;        ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:366:31: error: static declaration of &#x27;hypot&#x27; follows non-static declaration&#xA;static inline av_const double hypot(double x, double y)&#xA;                              ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:199:8: note: previous declaration is here&#xA;double hypot(double __x, double __y);&#xA;       ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:423:22: error: static declaration of &#x27;rint&#x27; follows non-static declaration&#xA;static inline double rint(double x)&#xA;                     ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:239:8: note: previous declaration is here&#xA;double rint(double __x);&#xA;       ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:430:43: error: static declaration of &#x27;lrint&#x27; follows non-static declaration&#xA;static av_always_inline av_const long int lrint(double x)&#xA;                                          ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:243:6: note: previous declaration is here&#xA;long lrint(double __x);&#xA;     ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:437:43: error: static declaration of &#x27;lrintf&#x27; follows non-static declaration&#xA;static av_always_inline av_const long int lrintf(float x)&#xA;                                          ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:244:6: note: previous declaration is here&#xA;long lrintf(float __x);&#xA;     ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:444:41: error: static declaration of &#x27;round&#x27; follows non-static declaration&#xA;static av_always_inline av_const double round(double x)&#xA;                                        ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:251:8: note: previous declaration is here&#xA;double round(double __x);&#xA;       ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:451:40: error: static declaration of &#x27;roundf&#x27; follows non-static declaration&#xA;static av_always_inline av_const float roundf(float x)&#xA;                                       ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:252:7: note: previous declaration is here&#xA;float roundf(float __x);&#xA;      ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:458:41: error: static declaration of &#x27;trunc&#x27; follows non-static declaration&#xA;static av_always_inline av_const double trunc(double x)&#xA;                                        ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:263:8: note: previous declaration is here&#xA;double trunc(double __x);&#xA;       ^&#xA;In file included from libavdevice/alldevices.c:23:&#xA;In file included from ./libavformat/internal.h:27:&#xA;In file included from ./libavformat/avformat.h:312:&#xA;In file included from ./libavcodec/avcodec.h:31:&#xA;In file included from ./libavutil/samplefmt.h:24:&#xA;In file included from ./libavutil/avutil.h:296:&#xA;In file included from ./libavutil/common.h:533:&#xA;In file included from ./libavutil/internal.h:143:&#xA;./libavutil/libm.h:465:40: error: static declaration of &#x27;truncf&#x27; follows non-static declaration&#xA;static av_always_inline av_const float truncf(float x)&#xA;                                       ^&#xA;/media/sf_sharing/android-ndk-r21d/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/math.h:264:7: note: previous declaration is here&#xA;float truncf(float __x);&#xA;      ^&#xA;2 warnings and 15 errors generated.&#xA;make: *** [libavdevice/alldevices.o] Error 1&#xA;santoku@santoku:/media/sf_sharing/ffmpeg$&#xA;

    &#xA;

    i tried all old version of ffmpeg,ndk with different build files but that didnt work so now im trying this latest ffmpeg-snapshot and ndk21

    &#xA;

  • ffmpeg realtime bad quality variable fps cams inputs to constant framerate problem

    23 janvier 2023, par BloodMan
        ../ffmpeg/ffmpeg -err_detect ignore_err -nostdin -threads 0 -y -strict experimental -thread_queue_size 10M -max_delay 20M -rtbufsize 20M -fflags &#x2B;discardcorrupt \&#xA;        -i "${cam1}" -i "${cam2}" -i "${cam3}" -i "${cam4}" \&#xA;        -filter_complex " \&#xA;        nullsrc=size=3840x2160:rate=30 [main1]; \&#xA;        anullsrc=channel_layout=stereo:sample_rate=44100 [a]; \&#xA;        [0:v] scale=1920:1080 [overlay1]; \&#xA;        [1:v] scale=1920:1080 [overlay2]; \&#xA;        [2:v] scale=1920:1080 [overlay3]; \&#xA;        [3:v] scale=1920:1080 [overlay4]; \&#xA;        [main1][overlay1] overlay=0:0 [main2]; \&#xA;        [main2][overlay2] overlay=1920:0 [main3]; \&#xA;        [main3][overlay3] overlay=0:1080 [main4]; \&#xA;        [main4][overlay4] overlay=1920:1080 [v] " \&#xA;        -t 10 -r 30 -g 60 -map "[v]" -map "[a]" \&#xA;        -shortest -video_size 3840x2160 -pix_fmt yuv420p -vcodec libx264 -preset ultrafast -tune zerolatency -minrate 2M -maxrate 2M -bufsize 20M -c:a aac -b:a 96k -ac 2 -ar 48000 -copytb 1 \&#xA;        -f flv -y -fflags &#x2B;genpts rtmp://b.rtmp.youtube.com/live2/${key}?backup=1&#xA;

    &#xA;

    ffmpeg version N-109650-g9d5e66942c Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 10 (Debian 10.2.1-6)&#xA;  configuration: --prefix=/home/bloodman/ffmpeg --pkg-config-flags=--static --extra-cflags=&#x27;-I/home/bloodman/ffmpeg/include -march=native&#x27; --extra-ldflags=-L/home/bloodman/ffmpeg/lib --extra-libs=&#x27;-lpthread -lm&#x27; --bindir=/home/bloodman/ffmpeg --enable-gpl --enable-nonfree --enable-libx264 --enable-libfdk-aac --enable-libmp3lame --enable-libfreetype --enable-hardcoded-tables&#xA;  libavutil      57. 44.100 / 57. 44.100&#xA;  libavcodec     59. 56.100 / 59. 56.100&#xA;  libavformat    59. 35.100 / 59. 35.100&#xA;  libavdevice    59.  8.101 / 59.  8.101&#xA;  libavfilter     8. 54.100 /  8. 54.100&#xA;  libswscale      6.  8.112 /  6.  8.112&#xA;  libswresample   4.  9.100 /  4.  9.100&#xA;  libpostproc    56.  7.100 / 56.  7.100&#xA;[hls @ 0x56019db77780] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0x56019db77780] Opening &#x27;cams/stream1_113.ts&#x27; for reading&#xA;Input #0, hls, from &#x27;cams/stream1.m3u8&#x27;:&#xA;  Duration: N/A, start: 1122.341667, bitrate: N/A&#xA;  Program 0&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;  Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p, 2048x1536, 15 fps, 15 tbr, 90k tbn&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;[hls @ 0x56019db9e980] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0x56019db9e980] Opening &#x27;cams/stream2_105.ts&#x27; for reading&#xA;Input #1, hls, from &#x27;cams/stream2.m3u8&#x27;:&#xA;  Duration: N/A, start: 1042.633000, bitrate: N/A&#xA;  Program 0&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;  Stream #1:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 100 tbr, 90k tbn&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;[hls @ 0x56019dccdbc0] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0x56019dccdbc0] Opening &#x27;cams/stream3_14.ts&#x27; for reading&#xA;Input #2, hls, from &#x27;cams/stream3.m3u8&#x27;:&#xA;  Duration: N/A, start: 132.469000, bitrate: N/A&#xA;  Program 0&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;  Stream #2:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 2688x1520, 25 fps, 100 tbr, 90k tbn&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;[hls @ 0x56019f0ec980] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0x56019f0ec980] Opening &#x27;cams/stream4_26.ts&#x27; for reading&#xA;Input #3, hls, from &#x27;cams/stream4.m3u8&#x27;:&#xA;  Duration: N/A, start: 253.389000, bitrate: N/A&#xA;  Program 0&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;  Stream #3:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuvj420p(pc, bt709), 1920x1080, 90k tbr, 90k tbn&#xA;    Metadata:&#xA;      variant_bitrate : 0&#xA;Stream mapping:&#xA;  Stream #0:0 (h264) -> scale:default&#xA;  Stream #1:0 (h264) -> scale:default&#xA;  Stream #2:0 (h264) -> scale:default&#xA;  Stream #3:0 (h264) -> scale:default&#xA;  overlay:default -> Stream #0:0 (libx264)&#xA;  anullsrc:default -> Stream #0:1 (aac)&#xA;[hls @ 0x56019db77780] Opening &#x27;cams/stream1_114.ts&#x27; for reading&#xA;[hls @ 0x56019db77780] Opening &#x27;cams/stream1_115.ts&#x27; for reading&#xA;[swscaler @ 0x5601a2c78e40] deprecated pixel format used, make sure you did set range correctly&#xA;[swscaler @ 0x5601a332c940] deprecated pixel format used, make sure you did set range correctly&#xA;[swscaler @ 0x5601a2c78e40] deprecated pixel format used, make sure you did set range correctly&#xA;    Last message repeated 2 times&#xA;[swscaler @ 0x5601a332c940] deprecated pixel format used, make sure you did set range correctly&#xA;[swscaler @ 0x5601a361fc00] deprecated pixel format used, make sure you did set range correctly&#xA;    Last message repeated 1 times&#xA;[libx264 @ 0x56019e5212c0] using SAR=1/1&#xA;[libx264 @ 0x56019e5212c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2&#xA;[libx264 @ 0x56019e5212c0] profile Constrained Baseline, level 5.1, 4:2:0, 8-bit&#xA;[libx264 @ 0x56019e5212c0] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=8 sliced_threads=1 slices=8 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=60 keyint_min=6 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2000 vbv_bufsize=20000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=0&#xA;Output #0, flv, to &#x27;rtmp://b.rtmp.youtube.com/live2/XXXX-XXXX-XXXX-XXXX-XXXX?backup=1&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf59.35.100&#xA;  Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p(progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 1k tbn&#xA;    Metadata:&#xA;      encoder         : Lavc59.56.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 2000000/0/0 buffer size: 20000000 vbv_delay: N/A&#xA;  Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, stereo, fltp, 96 kb/s&#xA;    Metadata:&#xA;      encoder         : Lavc59.56.100 aac&#xA;[hls @ 0x56019db77780] Skip (&#x27;#EXT-X-VERSION:3&#x27;)00:00:03.22 bitrate=7519.6kbits/s speed=0.359x&#xA;[hls @ 0x56019db77780] Opening &#x27;cams/stream1_116.ts&#x27; for reading&#xA;[hls @ 0x56019db77780] Skip (&#x27;#EXT-X-VERSION:3&#x27;)00:00:07.23 bitrate=4470.2kbits/s speed=0.383x&#xA;[hls @ 0x56019db77780] Opening &#x27;cams/stream1_117.ts&#x27; for reading&#xA;[hls @ 0x56019f0ec980] Skip (&#x27;#EXT-X-VERSION:3&#x27;)00:00:09.04 bitrate=3978.1kbits/s speed=0.384x&#xA;[hls @ 0x56019f0ec980] Opening &#x27;cams/stream4_27.ts&#x27; for reading&#xA;[hls @ 0x56019dccdbc0] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0x56019dccdbc0] Opening &#x27;cams/stream3_15.ts&#x27; for reading&#xA;[hls @ 0x56019db9e980] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0x56019db9e980] Opening &#x27;cams/stream2_106.ts&#x27; for reading&#xA;[flv @ 0x56019e639a00] Failed to update header with correct duration.811.6kbits/s speed=0.385x&#xA;[flv @ 0x56019e639a00] Failed to update header with correct filesize.&#xA;frame=  299 fps= 12 q=34.0 Lsize=    4622kB time=00:00:09.98 bitrate=3792.7kbits/s speed=0.386x&#xA;video:4603kB audio:3kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.349536%&#xA;[libx264 @ 0x56019e5212c0] frame I:5     Avg QP:45.60  size:275880&#xA;[libx264 @ 0x56019e5212c0] frame P:294   Avg QP:38.77  size: 11340&#xA;[libx264 @ 0x56019e5212c0] mb I  I16..4: 100.0%  0.0%  0.0%&#xA;[libx264 @ 0x56019e5212c0] mb P  I16..4:  1.4%  0.0%  0.0%  P16..4:  4.7%  0.0%  0.0%  0.0%  0.0%    skip:93.9%&#xA;[libx264 @ 0x56019e5212c0] coded y,uvDC,uvAC intra: 16.2% 8.9% 1.2% inter: 1.8% 0.6% 0.0%&#xA;[libx264 @ 0x56019e5212c0] i16 v,h,dc,p: 64% 17% 15%  5%&#xA;[libx264 @ 0x56019e5212c0] i8c dc,h,v,p: 90%  6%  3%  1%&#xA;[libx264 @ 0x56019e5212c0] kb/s:3783.23&#xA;[aac @ 0x56019e63a700] Qavg: 65511.207&#xA;[hls @ 0x56019db77780] Skip (&#x27;#EXT-X-VERSION:3&#x27;)&#xA;[hls @ 0x56019db77780] Opening &#x27;cams/stream1_118.ts&#x27; for reading&#xA;

    &#xA;

    NOTES : sources are cams streamed first to hls/m3u8. -t 10 only for testing purposes.

    &#xA;

    The problem is variable output fps= 12 (sometimes 2, 5, 10, maybe 13) where I expect 30. Machine is 10 times greater (encode uses up to 5% cpu).

    &#xA;

    Im trying adding -re, -r 30, -r 15 to sources, convert sources via stream_filter (,fps=30), vsync (old versions of ffmpeg), wallclock time, etc. and reading stackoverflow of course. And... nothing.

    &#xA;

    Where is the problem ?

    &#xA;