Recherche avancée

Médias (91)

Autres articles (64)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (7055)

  • Compiling FFmpeg staticly using NDK error - Not position independent executables executable

    27 février 2017, par David Barishev

    I have been trying to compile ffmpeg into a static library in order to use it in my android application, but i couldn’t get it to work.

    Im working with FFmpeg 3.2.4, and ndk r13b, using bash on windows 10(Ubuntu 14.04).

    Here is what i did :

    • I made a stand alone toolchain for x86_64 and api 21 using :
      python make_standalone_toolchain.py --api 21 --arch x86_64 --install-dir {}

    • Made a configuration script :

      ./configure \
      --target-os=android                                     \
      --arch=x86_64                                              \
      --prefix=/home/david/ffmpeg_x86_64_build                          \
      --cross-prefix=/home/david/x86_64_toolchain/bin/x86_64-linux-android-\
      --sysroot=/home/david/x86_64_toolchain/sysroot                    \
      --enable-cross-compile                                  \
      --pkg-config-flags="--static"                           \
      --enable-ffmpeg                                         \
      --disable-ffplay                                        \
      --disable-ffprobe                                       \
      --disable-ffserver                                      \
      --disable-doc                                           \
      --disable-htmlpages                                     \
      --disable-manpages                                      \
      --disable-podpages                                      \
      --disable-txtpages                                      \
      --extra-cflags="-fPIC"                                  \
      --extra-cxxflags="-fPIC"
      --disable-shared --enable-static \
      --enable-yasm

      make
      make install

    It produced an FFmpeg executable, however when i ran it on my API 23 emulator, i got an error message :error: only position independent executables (PIE) are supported.
    Even that i used -fPic

    How can i fix it ? Also i’m not sure about my configuration, there wasn’t up to date sources on how to compile it correctly for every ABI (arm,arm64,x86,x86_64,mips,mips64) that i need for my application.
    I have seen many script, and im not too familiar with compiling native code, so i wasn’t sure what settings i need, for example like C flags and etc.

    To be precise on how i tried to configure FFmpeg :

    • I need a static library
    • I Only need the ffmpeg command line utility
    • I want to compile the library for every ABI i listed above.This configuration tried to compile for x86_64.
    • Running on android of course

    I would greatly appreciate some help on how to configure and compile this correctly.

  • Evolution #4300 : Rendre facultatif les plugins-dist

    3 mars 2019

    Suite à https://www.mail-archive.com/spip-dev@rezo.net/msg66757.html

    Une proposition de critère {selection_conditionnelle} qui crée des {id_xxx} pour chaque clé primaire des tables déclarées objets éditables.
    Très simple. Mais aucune option au critère pour le moment.

  • create multiple movie thumbnails using ffmpeg (one at a time) failing

    2 septembre 2013, par Christopher Johnson

    I'm using this small bit of code to create thumbnails of videos being uploaded to my site :

    public static void GetThumbnail(string video, string thumbnail)
    {
       var cmd = "ffmpeg  -itsoffset -1  -i " + &#39;"&#39; + video + &#39;"&#39; + " -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 " + &#39;"&#39; + thumbnail + &#39;"&#39;;
       var startInfo = new ProcessStartInfo
       {
           WindowStyle = ProcessWindowStyle.Hidden,
           FileName = "cmd.exe",
           Arguments = "/C " + cmd
       };

       var process = new Process
       {
           StartInfo = startInfo
       };

       process.Start();
    }

    I'm uploading the videos one at a time asynchronously. The first video thumbnail gets created just fine, but each subsequent one does not get created. I've noticed that if I try to delete subsequent videos from the file system, it says it can not delete them because they are in use by ffmpeg. I can delete the first one that finished processing just fine. I have to kill the ffmpeg process from task manager for all of the others that it's holding open. Why is ffmpeg only working the first time through and then holding the video's open in an open process afterwards ?

    I also tried creating multiple thumbnails one at a time from the command prompt and that worked fine (the process does not stay open either).

    What am I missing in my c# code to make sure the process finishes, and then terminates ?