Recherche avancée

Médias (91)

Autres articles (98)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

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

  • Using FFMPEG in Java (developing on Mac)

    1er mai 2012, par Luuk D. Jansen

    I am trying to evoke FFMPEG directly in my Java code (running under the Playframework !).
    The final product will run on a Linux/Debian distro, but I first need to test on my Mac (I don't know if it works on Debian yet).

    I try to execute the simple code :

    Process pr = Runtime.getRuntime().exec(new String[]{"bash","-c", "ffmpeg"});

    or simpler :

    Process pr = Runtime.getRuntime().exec("ffmpeg")

    or using ProcessBuilder :

    Process pr = new ProcessBuilder("/opt/local/bin/ffmpeg").start();

    What I get is an error code 133, but I cannot find what this means.
    In the terminal the command gives the normal output. I can also replace 'ffmpeg' with e.g. 'ls -la' and get the directory listing. But I don't know what the problem is that ffmpeg does not work.

    Anybody any clues ?
    Thanks !

    UPDATE :
    I looked at the error stream. These are the errors I get. How is it that it works in the terminal, but not in using Java ?

    14:43:19,619 DEBUG ~ FFMPEG: dyld: Library not loaded: /opt/local/lib/libogg.0.dylib
    14:43:19,619 DEBUG ~ FFMPEG:   Referenced from: /opt/local/bin/ffmpeg
    14:43:19,619 DEBUG ~ FFMPEG:   Reason: Incompatible library version: ffmpeg requires version 9.0.0 or later, but libogg.0.dylib provides version 6.0.0
  • FFMPEG PHP - Converting gif to mpeg

    15 août 2014, par Kyle Goodrich

    I’d like to create a simple script that converts gifs to mpegs using FFMPEG PHP. The script works when using FFMPEG in terminal. When I use a similar script using FFMEG PHP and host it on my domain, the script converts the gif to an mpeg, but only converts one frame of it. This is strange because the FFMPEG line of code that is responsible for the conversion is essentially the same line used previously in terminal. I’ve made sure that my web host (cirtex) has FFMPEG installed in their server. Also, I made sure to edit my php.ini file for FFMPEG use.

    The script I created consists of two parts - uploader.php and uploader_02.php.

    uploader.php is a simple submit form, where the user uploads and submits a gif.

    uploader_02.php receives the gif and copies it over to another directory on the server. Then, the script applies the FFMPEG conversion to the saved gif.

    Here’s are the lines of php that are responsible for the conversion :

    <?php
    // ffmpeg
    $ffmpeg = "/usr/bin/ffmpeg";
    $videoFile = "test_videos/" . $name;
    $output = "test_videos/instagram.mpg";
    $cmd = "$ffmpeg -i $videoFile -vb 5M -y $output";
    exec($cmd);  
    ?>

    For some reason, only one frame of the gif is converted into mpeg format. Not sure what is causing this problem.

    Any information regarding this issue will help out a lot.

  • ffmpeg yield different results when used in the application

    5 mai 2020, par xoail

    This is perplexing me. I am using ffmpeg to convert m4a to wav audio. When I use it with fluent-ffmpeg the output mime is audio/wave while when I do it using terminal I get audio/wav. For extactly same commands. The application I am trying to play these files is rejecting my audio/wave file.

    



    Using node (results in audio/wave) :

    



    const ffmpegPath = require('@ffmpeg-installer/ffmpeg')
const ffmpeg = require('fluent-ffmpeg');
ffmpeg()
.setFfmpegPath(ffmpegPath)
.input('source.m4a')
.outputOptions(['-ac 1','-ar 16000'])
.save('out.wav')


    



    Using terminal (results in audio/wav) :

    



    /same/path/to/static-ffmpeg-as-in-node-program/ffmpeg -i source.m4a -ac 1 -ar 16000 out.wav


    



    I've both of their encoding as, PCM S16 LE (s16l), 16 bits/sample, mono and 16khz samplerate audio files. I've tried adding other flags and got same results on both scenarios : -vn -acodec pcm_s16le -ar 16000 -ac 1 -f wav. Just that one doesnt work. And I have no idea why.

    



    I've also tried not using fluent-ffmpeg but using spawn and got same audio/wave file.

    



    Any insight ?