Recherche avancée

Médias (0)

Mot : - Tags -/masques

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (51)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (10819)

  • FFMpeg giving invalid argument error with python subprocess

    23 janvier 2020, par Emre Erol

    I am trying to convert a file or microphone stream to 22050 sample rate and change tempo to double. I can do it using terminal with below code ;

    #ffmpeg -i test.mp3 -af asetrate=44100*0.5,aresample=44100,atempo=2 output.mp3

    But i can not run this terminal code with python subprocess. I try many things but every time fail. Generaly i am taking Requested output format ’asetrate’ or ’aresample’ or ’atempo’ is not suitable output format errors. Invalid argument. How can i run it and take a stream with pipe ?

    song = subprocess.Popen(["ffmpeg.exe", "-i", sys.argv[1], "-f", "asetrate", "22050", "wav", "pipe:1"],
                           stdout=subprocess.PIPE)
  • FFmpeg - PHP Error Code 127

    25 avril 2013, par Kit

    I am trying to execute FFmpeg from php. I have installed FFmpeg-php, and the extension is in the modules directory and it shows up in phpinfo. FFmpeg is working fine as I can run the command in a terminal and it outputs the video. However, when I try and run the command from php using the following script :

    exec(ffmpeg -i input.avi output.avi);

    But I get a '127' error code.

    The extension is loaded in using :

    $extension      = "ffmpeg";
    $extension_soname   = $extension . "." . PHP_SHLIB_SUFFIX;
    $extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;

    // Locate Extension
    define('FFMPEG_LIBRARY', '/usr/local/bin/ffmpeg');

    // Load Extension
    if (!extension_loaded($extension))
       echo dl($extension_soname) or die("Can't load extension $extension_fullname\n");

    I have also tried defining the aboslute extension location in the command :

    exec(/usr/local/bin/ffmpeg-i input.avi output.avi);

    Again, this works in the terminal but still returns the same erro code using the php exec().

    Has anyone got any ideas ?

    Thank you.

  • PHP's exec() not executing command for FFmpeg

    16 septembre 2011, par tundoopani

    I have installed ffmpeg on my server and it works fine via my terminal. I'm able to successfully convert a file to webm format, so I'm sure the installation is fine. I'm also sure that I only have one installation of ffmpeg installed on my machine.

    A problem arises when I try to convert files through PHP via PHP's exec(). When I run the same commands, I ran in the terminal, nothing happens. I looked around stackoverflow and other parts of the net for some help. I tried this to see the output :

    exec($cmd, $out, $rv);
    echo "output is:\n".implode("\n", $out)."\n exit code:$rv\n";

    The output is : "output is : exit code:127"

    The command I'm using is in this format :

    ffmpeg -i "sample.mov" -vcodec libvpx  -r 30 -b "644k" -acodec libvorbis -ab 128000   -ar "44100" -ac 2 -s "352x198" "sample.webm"

    I've tried replacing "ffmpeg" with the full path to FFmpeg but that did not work.

    Why isn't the script running the command correctly and converting the files ?

    Thank you !