Recherche avancée

Médias (91)

Autres articles (106)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

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

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

Sur d’autres sites (13901)

  • ffmpeg video to image sequence batch file

    26 mai 2014, par Dale Cooper

    I’m using ffmpeg to convert .avi file into a .png image sequence. This one works just fine :

    @ ECHO OFF

    FOR %%A IN (*.avi) DO CALL :avi2png "%%A"

    :avi2png
    ffmpeg.exe -y -i %* -sameq -f image2 -c:v png "%%03d.png"

    ECHO.
    GOTO :EOF

    But I want the script to extract the name without the extension from .avi file that is currently being processed. This is what the image sequence should look like : currentavi001.png, currentavi002.png etc. The script I came up with isn’t working :

    @ ECHO OFF

    FOR %%A IN (*.avi) DO CALL :avi2png "%%A"

    :avi2png
    ffmpeg.exe -y -i %* -sameq -f image2 -c:v png "%%~nA%%03d.png"

    ECHO.
    GOTO :EOF

    I’ve tried both %~nA and %%~nA, but to no avail. The script returns this :

    Couldn't open file :
    av_interleaved_write_frame(): Input/output error.

    I’m a complete layman and would welcome every bit of help.

  • Faster way to write image to Process.StandardInput.BaseStream

    4 septembre 2012, par Hasibii

    Im trying to send a lot of desktop captured images to an encoders (FFmpeg) stdin.

    The following code example works.

    the CaptureScreen() function provides an image in 5-10 ms.

    If I save the image in a MemoryStream it takes almost no time.

    But I can only save 1 image every 45 ms to
    proc.StandardInput.BaseStream.

    public void Start(string bitrate, string buffer, string fps, string rtmp, string resolution, string preset)
    {
       proc.StartInfo.FileName = myPath + "\\ffmpeg.exe";
       proc.StartInfo.Arguments = "-f image2pipe -i pipe:.bmp -vcodec libx264 -preset " + preset + " -maxrate " + bitrate + "k -bufsize " +
       buffer + "k -bt 10 -r " + fps + " -an -y test.avi"; //+ rtmp;
       proc.StartInfo.UseShellExecute = false;
       proc.StartInfo.RedirectStandardInput = true;
       proc.StartInfo.RedirectStandardOutput = true;

       proc.Start();

       Stopwatch st = new Stopwatch();
       BinaryWriter writer = new BinaryWriter(proc.StandardInput.BaseStream);
       System.Drawing.Image img;

       st.Reset();
       st.Start();

       for (int z = 0; z < 100; z++)
       {
           img = ScrCap.CaptureScreen();
           img.Save(writer.BaseStream, System.Drawing.Imaging.ImageFormat.Bmp);
           img.Dispose();
       }

       st.Stop();
       System.Windows.Forms.MessageBox.Show(st.ElapsedMilliseconds.ToString());
    }

    The question is :

    Can I do the saving process faster ?

    I try to get stable 60 fps this way

  • Revision eb6aee50a4 : Code cleanup. Change-Id : I7c6e3bebd94856b24dbe2aded7f9e04ef8bb8c08

    20 février 2013, par Dmitry Kovalev

    Changed Paths : Modify /vp9/common/vp9_blockd.h Modify /vp9/common/vp9_idct.h Modify /vp9/common/vp9_invtrans.h Code cleanup. Change-Id : I7c6e3bebd94856b24dbe2aded7f9e04ef8bb8c08