Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (77)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (8804)

  • NGINX RTMP convert flv to hls ?

    3 mai 2016, par MandelDuck

    I have a server that takes an rtmp stream and saves it as flv.

    Web users can view the flv video in their browser, however iPhone users can’t as it is flash

    Is there away to convert the saved flv files on the fly to hls for the iPhone viewers ?

    here is my config, Webusers access the vod application

    rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record all;
                        record_path /videos/av;
                        idle_streams off;
                }
                application audio {
                        live on;
                        record audio;
                        record_path /videos/audio;
                        idle_streams off;

                }
                application vod {
                        play /videos/av;
                }
                application aod {
                        play /videos/audio;
                }

        }
    }
  • MinGW 64 - CMake Error - CMake will not be able to correctly generate this project. (Windows11 - ffmpeg - AudioToolboxWrapper)

    22 janvier 2024, par corruptsmurf

    I occasionally encode some audio, and I am trying to modify my install of ffmpeg using the code and instructions from the following Github repo :
https://github.com/dantmnf/AudioToolboxWrapper

    


    Instructions from the above Github page :

    


    # in MSYS2 MinGW shell
cd path/to/this/repo
mkdir build
cd build
prefix="$PWD/install-prefix"
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$prefix" ..
make install

# test if we can use the wrapper library, it should not crash
./testapp

mkdir ffmpeg
cd ffmpeg
export CFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
path/to/ffmpeg/source/tree/configure  --enable-audiotoolbox
make LD="${prefix}/bin/atw_ldwrapper"

# test if ffmpeg can use it
./ffmpeg -f lavfi -i sine=1000 -c aac_at -f mp4 -y NUL


    


    My OS is Windows 11 Pro 64-bit, Version 10.0.22621 Build 22621

    


    The example on that git mentions using MSYS2 MinGW, which I didn't have, so I did the following :

    


      

    1. Created a folder at C :/01Code/ATW for this project.
    2. 


    3. Installed MSYS2 MINGW64 using installer from https://github.com/msys2/msys2-installer/releases
    4. 


    5. Began to run through the commands from AudioToolboxWrapper
    6. 


    7. Ran into issues running the command cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$prefix" ..
    8. 


    9. As part of troubleshooting, I did the following :
    10. 


    


    pacman -S mingw-w64-x86_64-gcc
pacman -S mingw-w64-x86_64-gdb
pacman -S mingw-w64-x86_64-cmake
pacman -S gcc
pacman -S gdb
pacman -S cmake
pacman -S make


    


      

    • I updated the PATH environment variable to include the msys path (C :\msys64\usr\bin)
    • 


    • I opened CMD as admin and executed C:\msys64\mingw64\bin>mklink make mingw32-make.exe to create a symbolic link for make (recommended by another forum post).
Honestly, I cannot remember how many pacman commands I ran trying to find the correct dependency.
    • 


    


    So here is what happens :

    


    cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX="$prefix" ..


    


    


    CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required) :
    &#xA;Compatibility with CMake < 3.5 will be removed from a future version of CMake.

    &#xA;

    Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

    &#xA;

    — The C compiler identification is GNU 13.2.0
    &#xA;— Detecting C compiler ABI info
    &#xA;— Detecting C compiler ABI info - failed
    &#xA;— Check for working C compiler : C :/msys64/mingw64/bin/cc.exe
    &#xA;— Check for working C compiler : C :/msys64/mingw64/bin/cc.exe - broken
    &#xA;CMake Error at C :/msys64/mingw64/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message) :
    &#xA;The C compiler

    &#xA;

    "C :/msys64/mingw64/bin/cc.exe"
    &#xA;is not able to compile a simple test program.

    &#xA;

    It fails with the following output :

    &#xA;

    Change Dir : 'C :/01Code/ATW/build/CMakeFiles/CMakeScratch/TryCompile-orrmfo'

    &#xA;

    Run Build Command(s) : C :/msys64/mingw64/bin/cmake.exe -E env VERBOSE=1 C :/msys64/mingw64/bin/make -f Makefile cmTC_39424/fast
    &#xA;no such file or directory

    &#xA;

    CMake will not be able to correctly generate this project.

    &#xA;

    Call Stack (most recent call first) :
    &#xA;CMakeLists.txt:2 (project)

    &#xA;

    — Configuring incomplete, errors occurred !

    &#xA;

    &#xA;

    The command generates some output, but I am assuming it is incomplete. If I try the next command, I get this :

    &#xA;

    # make install&#xA;make: *** No rule to make target &#x27;install&#x27;.  Stop.&#xA;

    &#xA;

  • undefined reference to 'memset' while configuring ffmpeg

    20 mai 2013, par Jacques Giraudel

    I want to port ffmpeg on android to use it in an app (to convert video files in webm format).

    I use the following command to configure FFMPEG :

    ./configure --target-os=linux \
       --cross-prefix=arm-linux-androideabi \
       --arch=arm-linux \
       --sysroot=$TC_SYSROOT \
       --nm=$NM \
       --ar=$AR \
       --cc=$CC \
       --ld=$LD \
       --disable-symver \
       --enable-small \
       --enable-libvorbis \
       --enable-libvpx \
       --extra-cflags="-I$PROJECT_BASE/jni/libvorbis/build/include -I$PROJECT_BASE/jni/libogg/build/include -I$PROJECT_BASE/jni/libvpx/libvpx -I$PROJECT_BASE/jni/libvpx/libvpx/build/install/include" \
       --extra-ldflags="-L$PROJECT_BASE/jni/libvorbis/build/lib -L$PROJECT_BASE/jni/libogg/build/lib -L$PROJECT_BASE/jni/libvpx/libvpx/build/install/lib" \
       --prefix=$PROJECT_BASE/jni/ffmpeg/build

    I use a standalone toolchain (NDK compiler version : 4.6). I dont use the AS of the toolchain, when I try the command block (I have waited for 10 minutes without response, some starting infos in the config.log and it seems to block at the beginning of the compilation). The different lib and directory added are the build install of the libraries needed (ogg, vorbis and vpx).

    I obtain this message :

     /Bureau/TripApp/jni/ffmpeg /Bureau/TripApp/jni /Bureau/TripApp/jni
    ERROR : libvpx decoder version must be >=0.9.1

    When I look at the config.log file, I have :

    check_lib2 vpx/vpx_decoder.h vpx/vp8dx.h vpx_codec_dec_init_ver -lvpx
    check_func_headers vpx/vpx_decoder.h vpx/vp8dx.h vpx_codec_dec_init_ver -lvpx
    check_ld cc -lvpx
    check_cc
    BEGIN /tmp/ffconf.TOBhIIiF.c
       1   #include <vpx></vpx>vpx_decoder.h>
       2   #include <vpx></vpx>vp8dx.h>
       3   long check_vpx_codec_dec_init_ver(void) { return (long) vpx_codec_dec_init_ver; }
       4   int main(void) { return 0; }
    END /tmp/ffconf.TOBhIIiF.c
    /home/jacques/my-android-toolchain2/bin/arm-linux-androideabi-gcc --sysroot=/home/jacques/my-android-toolchain2/sysroot -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -I/home/jacques/Bureau/TripApp/jni/libvorbis/build/include -I/home/jacques/Bureau/TripApp/jni/libogg/build/include -I/home/jacques/Bureau/TripApp/jni/libvpx/libvpx -I/home/jacques/Bureau/TripApp/jni/libvpx/libvpx/build/install/include -march=armv5te -std=c99 -fomit-frame-pointer -fPIC -marm -c -o /tmp/ffconf.bbOA0x5j.o /tmp/ffconf.TOBhIIiF.c
    /home/jacques/my-android-toolchain2/bin/arm-linux-androideabi-ld -L/home/jacques/Bureau/TripApp/jni/libvorbis/build/lib -L/home/jacques/Bureau/TripApp/jni/libogg/build/lib -L/home/jacques/Bureau/TripApp/jni/libvpx/libvpx/build/install/lib --sysroot=/home/jacques/my-android-toolchain2/sysroot -o /tmp/ffconf.IqRLz1B9 /tmp/ffconf.bbOA0x5j.o -lvpx -lvorbisenc -lvorbis -logg -lm -lz
    /home/jacques/my-android-toolchain2/bin/arm-linux-androideabi-ld: /home/jacques/Bureau/TripApp/jni/libvpx/libvpx/build/install/lib/libvpx.a(vpx_decoder.c.o): in function vpx_codec_dec_init_ver:(.text+0xc0): **error: undefined reference to &#39;memset&#39;**
    ERROR: libvpx decoder version must be >=0.9.1

    I have also a warning at the beginning of the file :

    WARNING: arm-linux-androideabipkg-config not found, library detection may fail.

    And many other errors which seem to be not blocking (eg : related to the support of older ARM version than the targeted one)

    libvpx is configured using the following command (the make succeeds) :

    ./libvpx/configure --target=armv5te-android-gcc --disable-examples \
                       --sdk-path=$NDK_BASE --prefix=$PROJECT_BASE/jni/libvpx/libvpx/build

    The NDK version used is r8e.

    My search on this :
    The libvpx version used is 1.1.0, memset is a function defined in string.h. String.h is present in the include dir of the sysroot used (and memset is defined).

    Do you see what could be the source of the problem ?