Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (42)

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

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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (5252)

  • how to get the output of a child process in a variable c#

    4 août 2022, par Dokoa

    I want to get width, height information into a variable after ffprobe is finished.

    


    int width, height;   
Process pr = new Process();
                pr.StartInfo.FileName = "ffprobe";
                pr.StartInfo.Arguments = $"- v error - select_streams v: 0 - show_entries stream = width,height - of default = nw = 1 input.mp4";
                pr.StartInfo.UseShellExecute = false;
                pr.StartInfo.CreateNoWindow = true;
                pr.EnableRaisingEvents = true;
                pr.Start();


    


    example of ffprobe console output

    


    width=320
height=180


    


  • merge two mp4 video as single video using ffmpeg in C# is not working

    13 février 2016, par kapil darji

    For the last 4 hours I’ve been trying to combine 2 .mp4 files into one using ffmpeg in C#.

    ****My code is below :****

      public void MergeFiles(string strFile)
       {
           string strParam;

           string Path_FFMPEG = Server.MapPath("~/Video_Clips/ffmpeg.exe");

           //Merging two videos              
           String video1 = Server.MapPath("~/Videos/fast1.mp4");
           String video2 = Server.MapPath("~/Videos/fast2.mp4");
           String file = Server.MapPath("~/Videos/input.txt");
           String strResult =   Server.MapPath("~/Videos/ConvertedFiles/Output.mp4");

           strParam = " -f concat -i " + file + " -c copy " + strResult;

           process(Path_FFMPEG, strParam);
       }

      public void process(string Path_FFMPEG, string strParam)
       {
           try
           {
               Process ffmpeg = new Process();
               ProcessStartInfo ffmpeg_StartInfo = new ProcessStartInfo(Path_FFMPEG, strParam);
               ffmpeg_StartInfo.UseShellExecute = false;
               ffmpeg_StartInfo.RedirectStandardError = true;
               ffmpeg_StartInfo.RedirectStandardOutput = true;
               ffmpeg.StartInfo = ffmpeg_StartInfo;
               ffmpeg_StartInfo.CreateNoWindow = true;
               ffmpeg.EnableRaisingEvents = true;
               ffmpeg.Start();
               ffmpeg.WaitForExit(30000);
               //ffmpeg.WaitForExit();
               ffmpeg.Close();
               ffmpeg.Dispose();
               ffmpeg = null;
           }
           catch (Exception ex)
           {

           }
       }

    My input.txt file is below :

    List of Files to Join (Comment)

    file ’D :/Kapil_WorkSpace/ExtraProjectSource/VideoDemo/VideoDemo/Videos/fast1.mp4’

    file ’D :/Kapil_WorkSpace/ExtraProjectSource/VideoDemo/VideoDemo/Videos/fast2.mp4’

    Please help. Thanks in advance.

  • Converting video mp4 file to gif file in asp.net ?

    14 juillet 2018, par Jonny

    I am developing an web app in asp.net where I want to convert mp4 file to animated gif file. I created a sample in C# console app to test my logic where it worked smoothly but when I tried to implement the same logic in asp.net it is not working.

    I am using FFmpeg.exe to convert the videos.
    Here is my code that executes on Button Click. Any help would be appreciated.

    try
    {
       //srcLink = Session["videoPath"].ToString();
       System.Diagnostics.Process grabInfoProcess;
       grabInfoProcess = new System.Diagnostics.Process();
       grabInfoProcess.StartInfo.UseShellExecute = false;
       grabInfoProcess.StartInfo.RedirectStandardOutput = true;
       grabInfoProcess.StartInfo.RedirectStandardError = true;
       grabInfoProcess.StartInfo.CreateNoWindow = true;
       grabInfoProcess.StartInfo.FileName = Request.PhysicalApplicationPath + "FFmpeg\\ffmpeg.exe";
       grabInfoProcess.StartInfo.Arguments = "-ss 00:00:01 -t 00:00:15" + " -i " + Request.PhysicalApplicationPath + "videos\\test2.mp4" + " " + Request.PhysicalApplicationPath + "DestVideos\\animated.gif";
       //ffmpeg - i source_video.avi animated_gif.gif
       grabInfoProcess.Start();
       string output = grabInfoProcess.StandardOutput.ReadToEnd();
       string newoutput = grabInfoProcess.StandardError.ReadToEnd();
       grabInfoProcess.WaitForExit();

    }
    catch (Exception ex)
    {
       Page.ClientScript.RegisterStartupScript(this.GetType(), "scriptkey", "alert('" + ex.Message.ToString() + "');");
    }