Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

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

  • Fastest way to extract moving dynamic crop from video using ffmpeg

    5 avril 2024, par NateW

    I'm working on an AI project that involves object detection and action recognition on roughly 30 minute videos.

    


    My pipeline is the following :

    


      

    • determine crops using object detection model
    • 


    • extract crops using Python and write them to disk as individual images for each frame.
    • 


    • use action recognition model by inputting a series of the crops.
    • 


    


    The models are fast but actual writing of the crops to disk is slow. Sure, using an SSD would speed it up but I'm sure ffmpeg would greatly speed it up.

    


    Some of the challenges with the crops :

    


      

    • the output size is always 128x128
    • 


    • the input size is variable
    • 


    • the crop moves on every frame
    • 


    


    My process for extracting crops is simple using cv2.imwrite(output_crop_path, crop) in a for loop.

    


    I've done experiments trying to use sndcommand and filter_complex. I tried this https://stackoverflow.com/a/67508233/4447761 but it outputs an image with black below the crop and the image gets wrapped around on the x axis.

    


    enter image description here

    


  • Writing to two standard input pipes from C#

    3 janvier 2021, par Den Delimarsky

    I am using FFMPEG from my C# application to build out the video stream from raw unencoded frames. For just one input stream this is fairly straightforward :

    


    var argumentBuilder = new List<string>();&#xA;argumentBuilder.Add("-loglevel panic");&#xA;argumentBuilder.Add("-f h264");&#xA;argumentBuilder.Add("-i pipe:");&#xA;argumentBuilder.Add("-c:v libx264");&#xA;argumentBuilder.Add("-bf 0");&#xA;argumentBuilder.Add("-pix_fmt yuv420p");&#xA;argumentBuilder.Add("-an");&#xA;argumentBuilder.Add(filename);&#xA;&#xA;startInfo.Arguments = string.Join(" ", argumentBuilder.ToArray());&#xA;&#xA;var _ffMpegProcess = new Process();&#xA;_ffMpegProcess.EnableRaisingEvents = true;&#xA;_ffMpegProcess.OutputDataReceived &#x2B;= (s, e) => { Debug.WriteLine(e.Data); };&#xA;_ffMpegProcess.ErrorDataReceived &#x2B;= (s, e) => { Debug.WriteLine(e.Data); };&#xA;&#xA;_ffMpegProcess.StartInfo = startInfo;&#xA;&#xA;Console.WriteLine($"[log] Starting write to {filename}...");&#xA;&#xA;_ffMpegProcess.Start();&#xA;_ffMpegProcess.BeginOutputReadLine();&#xA;_ffMpegProcess.BeginErrorReadLine();&#xA;&#xA;for (int i = 0; i &lt; videoBuffer.Count; i&#x2B;&#x2B;)&#xA;{&#xA;    _ffMpegProcess.StandardInput.BaseStream.Write(videoBuffer[i], 0, videoBuffer[i].Length);&#xA;}&#xA;&#xA;_ffMpegProcess.StandardInput.BaseStream.Close();&#xA;</string>

    &#xA;

    One of the challenges that I am trying to address is writing to two input pipes, similar to how I could do that from, say, Node.js, by referring to pipe:4 or pipe:5. It seems that I can only write to standard input directly but not split it into "channels".

    &#xA;

    What's the approach to do this in C# ?

    &#xA;

  • About FFmpeg Muxing

    25 juillet 2015, par Minjung Kim

    i have a question.

    About FFMPEG MUX !!
    Just i want to know possible.

    1. video + audio MUX = possible.

    2. case 1 + music MUX = ?? ( only add music..)

    3. audio + audio MUX = ? (possible ?impossible ?)

    4. case 3 + video MUX = ? (possible ?impossible ?)

    Just

    possible or impossible in ffmpeg.

    can you help me ?
    sorry for my bad english, thank you !

     :-)