Recherche avancée

Médias (1)

Mot : - Tags -/net art

Autres articles (31)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (9959)

  • How to link FFmpeg libraries with CMake in windows

    4 juillet 2021, par ldall03

    I'm new to CMake and not very familiar with how linking/compiling works. I am on windows 10 using MinGW in CLion. As the title says I want to use FFmpeg libraries in my c++ code. I downloaded the source code from : https://ffmpeg.org/download.html (Download Source Code button). I unzipped it and put the libavcodec library in my project. Here is my project structure :

    


    project
   \-- cmake-build-debug
   \-- src
      \-- vendor
         \-- libavcodec
   \-- main.cpp
   \--CMakeLists.txt


    


    Here is my main.cpp file :

    


    extern "C" {&#xA;#include "libavcodec/avcodec.h"&#xA;}&#xA;&#xA;#include <iostream>&#xA;&#xA;int main(int argc, char *argv[]) {&#xA;    std::cout &lt;&lt; "Hello World\n";&#xA;    return 0;&#xA;}&#xA;&#xA;</iostream>

    &#xA;

    And my CMakeLists.txt file :

    &#xA;

    cmake_minimum_required(VERSION 3.19)&#xA;project(VidShare)&#xA;&#xA;set(CMAKE_CXX_STANDARD 17)&#xA;set(CMAKE_INCLUDE_CURRENT_DIR ON)&#xA;set(CMAKE_CXX_STANDARD_REQUIRED ON)&#xA;set(CMAKE_PREFIX_PATH  "C:/Qt/6.1.1/mingw81_64/lib/cmake")&#xA;&#xA;find_package(Qt6Widgets REQUIRED)&#xA;&#xA;set(CMAKE_AUTOMOC ON)&#xA;set(CMAKE_AUTORCC ON)&#xA;set(CMAKE_AUTOUIC ON)&#xA;&#xA;add_executable(VidShare main.cpp)&#xA;include_directories(src src/vendor)&#xA;target_link_libraries(VidShare Qt6::Widgets Qt6::Core Qt6::Gui)&#xA;

    &#xA;

    Ignore the Qt stuff it works fine.

    &#xA;

    And well when I build I get this error message :

    &#xA;

    fatal error: libavutil/avconfig.h: No such file or directory&#xA; #include "libavutil/avconfig.h"&#xA;

    &#xA;

    I've seen that I had to run a configure script in the FFmpeg main file but I'm on windows so I can't really do that. I don't know if I have to use other kinds of libraries or if I downloaded the wrong thing... I am really at lost here. There is probably a better or more convenient way of doing what I want but I could not find many resources on it... Help would be appreciated :)

    &#xA;

  • How to use pathinfo in php ?

    10 juin 2019, par flash

    I am working on a php code as shown below on which Line#A prints the following array (shown below php code). My code doesn’t seems to go inside switch statement. I am not sure why.

    I added print_r($parts) at Line A in order to print the value of $parts.

    php code :

    &lt;?php
       if (!empty($_POST['id']))
       {
       for($i=0; $i / Line A
       switch ($parts['extension'])
       {
       echo "Hello World";                 // Line B
       case 'mp4' :
       $filePath = $src_dir . DS . $f;
       system('ffmpeg -i ' . $filePath . ' -map 0:2 -ac 1 ' . $destination_dir . DS . $parts['filename'] . '.mp3', $result);
       }
       }
       }
       }
    ?>

    Output (Line#A) :

    Array
    (
       [dirname]  => .
       [basename] => hello.mp4
       [extension] => mp4
       [filename] => hello
    )

    I have used echo "Hello World" at Line B but for some reasons, its not getting printed and throwing 500 internal server error on console.

    Problem Statement :

    I am wondering what changes I should make in the php code so that it goes inside switch statement.

  • FFMPEG - How to get a blur effect, without altering the color white ?

    17 août 2016, par Hugo

    I need a picture, with blur effect background. I found the code works, but, the white color of the photos is lost ( only happens with white color)...

    Step1 : ffmpeg -i eyes.jpg -s 640x360 -qscale 1 bg.jpg
    Step2 : ffmpeg -i bg.jpg -filter_complex "[0:v]crop=640:360:0:0,boxblur=20[fg] ;[0:v][fg]overlay=0:0[v]" -map "[v]" -qscale 1 bg.jpg -y
    Step3 : ffmpeg -i bg.jpg -i eyes.jpg -filter_complex "overlay=(main_w-overlay_w)/2 :(main_h-overlay_h)/2" -qscale 1 result.jpg
    

    Original photo :
    see original photo

    Result (white color is lost)
    see result photo

    Please I need help (The white color should remain).

    Thank you very much,
    Greetings,
    Hugo