Recherche avancée

Médias (91)

Autres articles (58)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les statuts des instances de mutualisation

    13 mars 2010, par

    Pour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
    Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...)

Sur d’autres sites (4074)

  • ffmpeg performance with hundreds of cuts (atrim)

    25 mai 2021, par drakon

    I have audio files (think 2h) where I want to cut out a lot of pieces out of it (500+) and a ffmpeg command like this one :

    


    ['ffmpeg', '-i', 'pipe:', '-filter_complex', 
'[0]atrim=end=30.69:start=0.0[s0];
 [0]atrim=end=34.31:start=31.18[s1];
 [0]atrim=end=38.65:start=34.43[s2]; 
 (... hundreds more)
 [s37][s38][s39][s40][s41]concat=a=1:n=42:v=0[s42]', '-map', '[s42]']


    


    Stream mapping built with ffmpeg-python :

    


      Stream #0:0 (mp3float) -> atrim
  (... hundreds more)
  Stream #0:0 (mp3float) -> atrim
  concat -> Stream #0:0 (libmp3lame)


    


    Now this works as expected but it takes locally something like 10mins for the files I have and when I deploy it to some server in the cloud it takes something like an hour. It definitely depends on the machine obviously and I definitely scale there the speed but I'd also like to know if there's a way to speed up the processing with ffmpeg itself.

    


    Thanks for any pointers !

    


  • fatal error : Uncaught exception 'Alchemy\BinaryDriver\Exception\ExecutableNotFoundException' with message 'Executable not found, proposed

    6 septembre 2023, par arvindpundir

    I have installed https://github.com/PHP-FFMpeg/PHP-FFMpeg on linux

    



    hosting path is

    



    /public_html/videoconversion/


    



    I got this error.

    



    Fatal error: Uncaught exception 'Alchemy\BinaryDriver\Exception\ExecutableNotFoundException' with message 
'Executable not found, proposed : 
    public_html/videoconversion/' in 
        /home/deveducate/public_html/videoconversion/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php:160 Stack trace: 
        #0 /home/deveducate/public_html/videoconversion/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFProbeDriver.php(48): 
            Alchemy\BinaryDriver\AbstractBinary::load('public_html/vid...', NULL, Object(Alchemy\BinaryDriver\Configuration)) 
        #1 /home/deveducate/public_html/videoconversion/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFProbe.php(226): FFMpeg\Driver\FFProbeDriver::create(Array, NULL) 
        #2 /home/deveducate/public_html/videoconversion/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/FFMpeg.php(117): FFMpeg\FFProbe::create(Array, NULL, NULL) 
        #3 /home/deveducate/public_html/videoconversion/convert_to_mp4.php(10): FFMpeg\FFMpeg::create(Array, NULL) 
        #4 {main} Next exception 'FFMpeg\Exception\ExecutableNotFoundException' with message 
           'U in /home/deveducate/public_html/videoconversion/vendor/php-ffmpeg/php-ffmpeg/src/FFMpeg/Driver/FFProbeDriver.php on line 50


    



    file

    



    require 'vendor/autoload.php';
$ffmpeg = FFMpeg\FFMpeg::create(array(
'ffmpeg.binaries'  => '/opt/local/ffmpeg/bin/ffmpeg',
'ffprobe.binaries' => '/opt/local/ffmpeg/bin/ffprobe',
'timeout'          => 3600, // The timeout for the underlying process
'ffmpeg.threads'   => 12,   // The number of threads that FFMpeg should 
 use
 ), $logger);
 $video = $ffmpeg->open('video.mpg');
$video
->filters()
->resize(new FFMpeg\Coordinate\Dimension(320, 240))
->synchronize();
$video
->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10))
->save('frame.jpg');
$video
->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4')


    



    May any one let me know where to update path.

    



    Thanks

    


  • 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 ?