Recherche avancée

Médias (91)

Autres articles (67)

  • 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 (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (5787)

  • FFMpeg PHP : Unable to load FFProbe

    23 septembre 2023, par Artem Konyaev

    I am using the Lumen PHP framework which is the form of Laravel. On the server side I have Bitnami.

    


    I get the 500 error when the code that uses FFMpeg is being executed. My part of the code which leads to the problem :

    


    $ffmpeg = FFMpeg::create([
            'ffmpeg.binaries'   => '/opt/bitnami/apache/htdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg',
            'ffprobe.binaries'  => '/opt/bitnami/apache/htdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFProbe',
            'timeout' => 0
]);


    


    I also tried it without 'timeout'.

    


    Here are the details of the error that I get in the server response :

    


    


    [ExecutableNotFoundException](#trace-box-2) [ExecutableNotFoundException](#trace-box-1)

    


    HTTP 500 Internal Server Error

    


    Unable to load FFProbe

    


    Exceptions 2

    


    FFMpeg\Exception\ExecutableNotFoundException

    


    in /opt/bitnami/apache/htdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFProbeDriver.php (line 50)

    


      

    1.         $binaries = $configuration->get('ffprobe.binaries', ['avprobe', 'ffprobe']);

      


    2. 


    3.         

      


    4. 


    5.         try {

      


    6. 


    7.             return static::load($binaries, $logger, $configuration);

      


    8. 


    9.         } catch (BinaryDriverExecutableNotFound $e) {

      


    10. 


    11.             throw new ExecutableNotFoundException('Unable to load FFProbe', $e->getCode(), $e);

      


    12. 


    13.         }

      


    14. 


    15.     }

      


    16. 


    17. }

      


    18. 


    


    


    I tried changing the project folder rights by sudo chmod -R 777 /opt/bitnami/apache/htdocs. Not sure if it worked. Here is the current state :

    


    

    $ ls -l /opt/bitnami/apache/htdocs
total 328
drwxrwxrwx 10 bitnami root   4096 Feb 20 16:16 app
-rwxrwxrwx  1 bitnami root   1094 Feb 20 16:16 artisan
drwxrwxrwx  2 bitnami root   4096 Feb 20 16:16 bootstrap
-rwxrwxrwx  1 bitnami root   1076 Jul  2 00:25 composer.json
-rwxrwxrwx  1 bitnami root 274159 Jul  2 00:25 composer.lock
drwxrwxrwx  5 bitnami root   4096 Feb 20 16:16 database
-rwxrwxrwx  1 bitnami root   4871 May 18 15:46 index_default.html
-rwxrwxrwx  1 bitnami root    592 Feb 20 16:16 phpunit.xml
drwxrwxrwx  2 bitnami root   4096 Feb 20 16:16 public
-rwxrwxrwx  1 bitnami root   1920 Feb 20 16:16 README.md
drwxrwxrwx  3 bitnami root   4096 Feb 20 16:16 resources
drwxrwxrwx  2 bitnami root   4096 Feb 20 16:16 routes
drwxrwxrwx  5 bitnami root   4096 Feb 20 16:16 storage
drwxrwxrwx  2 bitnami root   4096 Feb 20 16:16 tests
drwxrwxrwx 36 bitnami root   4096 Jul  2 00:46 vendor


    


    


    Tried adding this to my .env file in /opt/bitnami/apache/htdocs :

    


    

    FFMPEG_BINARIES=/opt/bitnami/apache/htdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg
FFPROBE_BINARIES=/opt/bitnami/apache/htdocs/vendor/php-ffmpeg/php-ffmpeg/src/FFProbe


    


    


  • C program cannot find function which included in header file

    17 juin 2013, par Juneyoung Oh

    I made program like this.

     1 #include
     2 #include
     3 #include
     4 #include "libavformat/avformat.h"
     5
     6 int main (int argc, char* argv[]){
     7         av_register_all();
     8         return 0;
     9 }

    My header file located in

    root@ubuntu:/home/juneyoungoh/getDuration# find / -name "avformat.h"
    /root/ffmpeg/libavformat/avformat.h
    /usr/local/include/libavformat/avformat.h

    then I run with gcc getDuration.c , but I show message like below.

    root@ubuntu:/home/juneyoungoh/getDuration# gcc getDuration.c
    /tmp/ccwjonqH.o: In function `main':
    getDuration.c:(.text+0x10): undefined reference to `av_register_all'
    collect2: ld returned 1 exit status

    Frankly, I do not have any idea what makes this.

    Thanks for your answers.

    ========================== edited #1 ===========================

    when I "ls /usr/local/lib", I get this.

    root@ubuntu:/home/juneyoungoh/getDuration# ls /usr/local/lib/
    libavcodec.a   libavutil.a    libopus.la       libvpx.a   python2.7
    libavdevice.a  libfdk-aac.a   libpostproc.a    libx264.a
    libavfilter.a  libfdk-aac.la  libswresample.a  libyasm.a
    libavformat.a  libopus.a      libswscale.a     pkgconfig

    you can see libavformat.a in the very first of the last line.

    so if I command like what you suggest, I get below.

    /root/ffmpeg/libavformat/vqf.c:244: undefined reference to `av_free_packet'
    /usr/local/lib//libavformat.a(vqf.o): In function `add_metadata':
    /root/ffmpeg/libavformat/vqf.c:58: undefined reference to `av_malloc'
    /root/ffmpeg/libavformat/vqf.c:64: undefined reference to `av_dict_set'
    /usr/local/lib//libavformat.a(vqf.o): In function `vqf_read_header':
    /root/ffmpeg/libavformat/vqf.c:148: undefined reference to `av_dict_set'
    /root/ffmpeg/libavformat/vqf.c:208: undefined reference to `av_log'
    /root/ffmpeg/libavformat/vqf.c:216: undefined reference to `av_malloc'
    /root/ffmpeg/libavformat/vqf.c:170: undefined reference to `av_log'
    /root/ffmpeg/libavformat/vqf.c:121: undefined reference to `av_log'
    /root/ffmpeg/libavformat/vqf.c:184: undefined reference to `av_log'
    /root/ffmpeg/libavformat/vqf.c:136: undefined reference to `av_log'
    /usr/local/lib//libavformat.a(wavenc.o): In function `wav_write_trailer':
    /root/ffmpeg/libavformat/wavenc.c:210: undefined reference to `av_rescale'
    /usr/local/lib//libavformat.a(wavenc.o): In function `wav_write_packet':
    /root/ffmpeg/libavformat/wavenc.c:181: undefined reference to `av_log'

    It is too long, so I just post little part of that.

    I think all link of libavformat has been broken, But I do not know

    what can I do to fix that link.

    I have installed that their official link said.

    https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideQuantal

  • How i can fix selected processor does not support Thumb mode `itt gt'

    22 octobre 2017, par w liu

    When I compiled ffmpeg(version 3.3.4) for Android, I successfully compiled out .so, but there was an error while running the project.

    C :\Users\admin\AppData\Local\Temp\ffmpeg-105062.s : Assembler messages :
    C :\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43301 : Error : selected processor does not support Thumb mode

    itt gt'
     C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43302: Error: thumb conditional instruction should be in IT block --

    movgt r6,r0’
    C :\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43303 : Error : thumb conditional instruction should be in IT block —

    movgt r0,r1'
     C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43305: Error: selected processor does not support Thumb mode

    it le’
    C :\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43306 : Error : thumb conditional instruction should be in IT block —

    movle r0,r2'
     C:\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43308: Error: selected processor does not support Thumb mode

    it gt’
    C :\Users\admin\AppData\Local\Temp\ffmpeg-105062.s:43309 : Error : thumb conditional instruction should be in IT block — `movgt r6,r0’
    clang.exe : error : assembler command failed with exit code 1 (use -v to see invocation)

    NDK=/root/Ndk/android-ndk-r14b
    SYSROOT=$NDK/platforms/android-23/arch-arm/
    TOOLCHAIN=/root/Ndk/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
    function build_one

    ./configure \
    —prefix=$PREFIX
    —enable-shared
    —disable-static
    —disable-doc
    —enable-ffmpeg
    —disable-ffplay
    —disable-ffprobe
    —disable-ffserver
    —disable-doc
    —disable-symver
    —enable-small
    —cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
    —target-os=linux
    —arch=armv7-a
    —enable-cross-compile
    —sysroot=$SYSROOT
    —extra-cflags="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__"
    $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make
    make install

    CPU=arm
    PREFIX=/root/FFmpegOut/android/$CPU
    build_one