Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (107)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Ajout d’utilisateurs manuellement par un administrateur

    12 avril 2011, par

    L’administrateur d’un canal peut à tout moment ajouter un ou plusieurs autres utilisateurs depuis l’espace de configuration du site en choisissant le sous-menu "Gestion des utilisateurs".
    Sur cette page il est possible de :
    1. décider de l’inscription des utilisateurs via deux options : Accepter l’inscription de visiteurs du site public Refuser l’inscription des visiteurs
    2. d’ajouter ou modifier/supprimer un utilisateur
    Dans le second formulaire présent un administrateur peut ajouter, (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (13980)

  • GLIBCXX_3.4.9 not found when running ffmpeg from php in lampp server

    13 mai 2016, par Rafaf Tahsin

    I’ve written a php program which creates a video from sequence of images using ffmpeg.

    <?php
       $res = shell_exec("ffmpeg -framerate 50 -i image/image%d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 2>&1");
       echo "$res";

    When I run it,

    it says GLIBCXX_3.4.15 , GLIBCXX_3.4.9 , GLIBCXX_3.4.11 not found.

    ffmpeg : /opt/lampp/lib/libstdc++.so.6 : version `GLIBCXX_3.4.15’ not

    found (required by /usr/lib/i386-linux-gnu/libjack.so.0) ffmpeg :

    /opt/lampp/lib/libstdc++.so.6 : version `GLIBCXX_3.4.9’ not found

    (required by /usr/lib/i386-linux-gnu/libzmq.so.3) ffmpeg :

    /opt/lampp/lib/libstdc++.so.6 : version `GLIBCXX_3.4.11’ not found

    (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4) ffmpeg :

    /opt/lampp/lib/libstdc++.so.6 : version `GLIBCXX_3.4.9’ not found

    (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4)

    But from the terminal, ffmpeg -framerate 50 -i image/image%d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 command works fine. Why php can’t find the libraries while from the terminal it works fine ? and what should I do to fix the problem in php ? Thanks in advance.

  • GLIBCXX_3.4.9 not found when running ffmpeg from php in lampp server

    14 novembre 2020, par Rafaf Tahsin

    I've written a php program which creates a video from sequence of images using ffmpeg.

    



    <?php
    $res = shell_exec("ffmpeg -framerate 50 -i image/image%d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 2>&1");
    echo "$res";


    


    When I run it,

    


    it says GLIBCXX_3.4.15 , GLIBCXX_3.4.9 , GLIBCXX_3.4.11 not found.

    


    


    ffmpeg : /opt/lampp/lib/libstdc++.so.6 : version `GLIBCXX_3.4.15' not

    


    found (required by /usr/lib/i386-linux-gnu/libjack.so.0) ffmpeg :

    


    /opt/lampp/lib/libstdc++.so.6 : version `GLIBCXX_3.4.9' not found

    


    (required by /usr/lib/i386-linux-gnu/libzmq.so.3) ffmpeg :

    


    /opt/lampp/lib/libstdc++.so.6 : version `GLIBCXX_3.4.11' not found

    


    (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4) ffmpeg :

    


    /opt/lampp/lib/libstdc++.so.6 : version `GLIBCXX_3.4.9' not found

    


    (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4)

    


    


    But from the terminal, ffmpeg -framerate 50 -i image/image%d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4 command works fine. Why php can't find the libraries while from the terminal it works fine ? and what should I do to fix the problem in php ? Thanks in advance.

    


  • How to check for corrupt mp3 files using ffmpeg in nodejs

    2 septembre 2022, par Oliver Wagner

    Using the 'ffmpeg-static' npm package I managed to integrate ffmpeg in my node application, and run the [example][1]https://github.com/eugeneware/ffmpeg-static/blob/dce6d42ba772a5769df8181e704772db4456ef16/example.js code.

    


    The gist of the code is :

    


    import pathToFfmpeg from "ffmpeg-static";
import shell from 'any-shell-escape';
import { exec } from "child_process";

 function runFfmpeg(src, dest) {
  //where src is a existing mp3 file in a folder and dest is the destination folder
  const script = shell([
    pathToFfmpeg,
    '-y', '-v', 'error',
    '-i', resolve(process.cwd(), src),
    '-acodec', 'mp3',
    '-format', 'mp3',
    resolve(process.cwd(), dest),
  ]);

  exec(script);
}


    


    This works and this decodes and encodes the source file into mp3 and saves it in the dest folder.

    


    However, when I try what should be the simplest ffmpeg terminal command, such as ffmpeg -i file.mp3 -hide_banner it does not work. I have tried

    


    function runFfmpeg(src, dest) {
  const script = shell([
    pathToFfmpeg,
    '-i', resolve(process.cwd(), src), '-hide_banner'
  ]);

  const fileInfo = exec(script);
  return fileInfo;



    


    In the end, where I want to get to is being able to use my runFfmpeg function to check if an mp3 file has any missing or corrupted frames, using a terminal command that I found in the interwebs :
ffmpeg -v error -i video.ext -f null

    


    Any ideas on how to do that ?