Recherche avancée

Médias (91)

Autres articles (102)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (13568)

  • Send email once FFMPEG video conversion has completed (php)

    14 juin 2012, par Dino

    I have a basic php script which converts an avi using ffmpeg :

    <?php
    if (exec("/usr/bin/ffmpeg -i testvideo.avi -sameq -ar 22050 convertvideo.mp4 2> logfile.log")){
    echo "Success";
    }else{
       echo "Error";
    }
    ?>

    now as an extension to this I would like to use php to check if the file is still being converted if not an email should be sent can anyone advise how I can achieve this ?

    Also despite using the code above and the file being converted successfully, the output I always get is "Error", can anyone help with this as well ?

    Thanks

  • How to start an FFmpeg process, create a pipe and write data from the parent process ?

    3 mai 2021, par xlxs

    My code is based on https://stackoverflow.com/a/32279430/5941827.

    


    I run FFmpeg with the following params :

    


    std::stringstream sstm;
sstm << "ffmpeg -loglevel error -y -f rawvideo -vcodec rawvideo -s " << std::to_string(width) << "x" << std::to_string(height) //
        << " -pix_fmt rgb24 -framerate " << std::to_string(fps) << " -i - -c:v libx264 -preset " << getPreset(encodeSpeed) << //
        " -crf " << std::to_string(crf) << " -shortest " << path;


    


    (the variables are initialized in a class constructor correctly)

    


    Then I open the pipe with pPipe = popen(sstm.str().c_str(), "w").The problem is after I fwrite to it and calling fclose, based on the contents I write sometimes less or more bytes reach FFmpeg, and I get

    


    [rawvideo @ 000000000010c3df] Invalid buffer size, packet size 196606 < expected frame_size 196608
Error while decoding stream #0:0: Invalid argument


    


    The saved output video usually has one frame more or less than the expected.
I have checked the array I'm sending trough the pipe with fwrite and it's size is correct.
It appears that based on the data I send some bytes don't get there, or more bytes than I send go through the pipe.

    


    I have also tried two different FFmpeg versions, but with the same error message.

    


  • A very simple lightweight video editor

    11 novembre 2011, par algorithmicCoder

    I want to make an editor that does the following :

    1) takes an mp3 audio file

    2) Takes a picture —a jpg file

    3) Outputs a simple video format e.g. .mov which consists of the jpg file with the mp3 file in the background

    4) Does NOTHING else

    I want to use this as a project to learn just the basics of all this stuff however I do not want to code basic things by hand. Where do I start and what key steps do I take to accomplish this ?

    I am decent with PHP and Java and do not mind learning Python for this. I actually would ideally want to write this in Python to gain experience.

    Thanks !