Recherche avancée

Médias (91)

Autres articles (26)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

Sur d’autres sites (5125)

  • Create video stream from tiny endless files

    3 mars 2023, par T.Aoukar

    I have a client sending endless (or at least large unknown amount) tiny webm files (around 2 seconds each) using websocket, video content is base64 encoded, and I want to create a live video stream from them.
So it'll be like this :

    



      

    1. Client open web socket.
    2. 


    3. Client sends first file.
    4. 


    5. Server starts streaming the file online.
    6. 


    7. Client sends second file.
    8. 


    9. Server appends the video with the second file.
    10. 


    11. Repeat 5&6 until web socket closes.
    12. 


    



    Now, I've already done the part for websocket on server/client side, and decoding the content from base64 is no problem, but completely stuck on the stream conversion part, far as I've looked the best option would be running FFMPEG, but can't find a way to give it endless stream to convert.

    



    P.S : running on Windows machine, socket server is nodejs-websocket.

    


  • ffmpeg : not found when running ffmpeg via php xampp (mac)

    28 août 2021, par Alex Styl

    I am trying to execute ffmpeg from php. I have installed ffmpeg locally on my mac via homebrew and I am able to run the commands I need via terminal.

    


    When I try to execute the following code :

    


    &lt;?php&#xA;    echo "Starting ffmpeg";&#xA;    $output = shell_exec("ffmpeg -i test.mp3 -codec:a libmp3lame -b:a 128k out.mp3 2>&amp;1");&#xA;    echo "<pre>$output</pre>";&#xA;?>&#xA;

    &#xA;

    I am receiving the following on my browser :

    &#xA;

    &#xA;

    Starting ffmpeg

    &#xA;

    sh : 1 : ffmpeg : not found

    &#xA;

    &#xA;

    I am assuming that I somehow need to install ffmpeg to my xampp server but it is not obvious how to do that. After searching online I can find linux and Windows tutorials but I couldn't figure out something out by looking at them.

    &#xA;

    What I tried doing was to download the ffmpeg static build form https://ffmpeg.org/download.html#build-mac and placed it in the htdocs holder, and then tried to execute ffmpeg as if it was an executable (after changing chmod), but that gave me

    &#xA;

    &#xA;

    sh : 1 : ./ffmpeg : Exec format error

    &#xA;

    &#xA;

    How would one go and install and then run ffmpeg on their xampp server ?

    &#xA;

  • How to handle queueing of video encoding during multiple video uploads ?

    6 mars 2016, par Yash Desai

    I am working on developing a video streaming site where users can upload videos to the site (multiple videos at once using the uploadify jquery plugin).

    Now, I am faced with the question of encoding the videos to FLV for streaming them online.

    When should the video encoding process take place ? Should it take place immediately after uploads have finished (i.e redirect the user to upload success page, and then start encoding in the background using exec command for ffmpeg ?) However, using this approach, how do i determine if the encoding has finished successfully ? What if users upload a corrupt video and ffmpeg fails to encode it ? How do i handle this in PHP ?

    How do i queue encoding of videos since multiple users can upload videos at the same ? Does FFMpeg has its own encoding queue ?

    I also read about gearman and message queueing options such as redis and AMQP in another related SO thread. Are these one of the potential solutions ?

    I would really appreciate if someone could give answers to my questions.