Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (28)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5712)

  • Saving Standard Output in memory instead of a file in C#

    19 décembre 2016, par Shawn W

    There is no online tutorial or even a book, for handling Standard Output with C#.

    I want to save standard output in a variable (memory) instead of a file in Shell Execution.

    This for storing thumbnail image from a video file with ffmpeg.

    The below is my code.

    public static void GetThumbnail(string video, string thumbnail, string ffdir)
    {
       var cmd = " -ss 00:01:00.000 -i " + '"' + video + '"' + " -vcodec rawvideo -vframes 1 -an -f rawvideo -s 320x240 pipe:1 ";


       var startInfo = new ProcessStartInfo
       {
           WindowStyle = ProcessWindowStyle.Normal,
           FileName = ffdir + "\\ffmpeg.exe ",
           Arguments = cmd,
           RedirectStandardOutput = true,
           UseShellExecute = false
       };

       var process = new Process
       {
           StartInfo = startInfo
       };

       process.OutputDataReceived += ProcessOnOutputDataReceived;
       process.ErrorDataReceived += ProcessOnOutputDataReceived;

       process.Start();

       process.WaitForExit(1000);
    }

    private static void ProcessOnOutputDataReceived(object sender, DataReceivedEventArgs dataReceivedEventArgs)
    {
       ....
    }

    But it does not enter to the event handler function (ProcessOnOutputDataReceived) when GetThumbnail function launched.

    Is there any clue to solve this problem ?

    I referred the question and answer here :
    getting mulitple images from a single stream piped from ffmpeg stdout

    But it does not help. It seems that the code for previous .NET versions.

  • FFmpeg - Can't redirect standard output stream

    4 janvier 2017, par Ryan Vancity Gosling

    I’m running FFmpeg throught my C# application to encode an video. To try an get the progress of the video, I’ve redirected the output but there seems to be no output. I tried the same with FFProbe and it worked perfectly. Just doesn’t work for FFmpeg.

    var FFmpeg = new Process
           {
               StartInfo = new ProcessStartInfo
               {
                   FileName = Directory.GetCurrentDirectory() + "\\FFmpeg\\ffmpeg.exe",
                   Arguments = CurrentArgs,
                   UseShellExecute = false,
                   RedirectStandardOutput = true,
                   CreateNoWindow = false
               }
           };
           FFmpeg.Start();

           string line;
           int i = 0;
           while (!FFmpeg.StandardOutput.EndOfStream)
           {
               i = i + 1;
           }

    And the weird thing is that I have the console window enabled on my WPF project and the output is shown although there isnt any code to write it to the console. And the loop is not iterating. The FFProbe output didn’t show up on console like this.

    Can someone help me. I need to get a percentage of the FFmpeg encoding process.

  • avformat : add MIDI Sample Dump Standard demuxer

    20 janvier 2017, par Paul B Mahol
    avformat : add MIDI Sample Dump Standard demuxer
    

    Signed-off-by : Paul B Mahol <onemda@gmail.com>

    • [DH] Changelog
    • [DH] doc/general.texi
    • [DH] libavformat/Makefile
    • [DH] libavformat/allformats.c
    • [DH] libavformat/sdsdec.c
    • [DH] libavformat/version.h