Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (81)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (12619)

  • Running "FFMPEG" for several times in winfoms

    13 novembre 2015, par Ahmad

    In a C# Windows application, I try to call "ffmpeg" to multiplex video and audio. It may be called several times. In the first call, everything is fine, but in the next call I have some problems. One problem is that the earlier "ffmpeg" process isn’t closed. So, I tried to kill it if it exists. but now I got an error for a disposed object in the following code :

      public static void FFMPEG3(string exe_path, string avi_path, string mp3_path, string output_file)
       {
           const int timeout = 2000;
           Kill(exe_path);
           using (Process process = new Process())
           {
               process.StartInfo.FileName = exe_path;
               process.StartInfo.Arguments = string.Format(@"-i ""{0}"" -i ""{1}"" -acodec copy -vcodec copy ""{2}""",
                                              avi_path, mp3_path, output_file);
               process.StartInfo.UseShellExecute = false;
               process.StartInfo.CreateNoWindow = true;
               process.StartInfo.RedirectStandardOutput = true;
               process.StartInfo.RedirectStandardError = true;

               StringBuilder output = new StringBuilder();
               StringBuilder error = new StringBuilder();

               using (AutoResetEvent outputWaitHandle = new AutoResetEvent(false))
               using (AutoResetEvent errorWaitHandle = new AutoResetEvent(false))
               {
                   process.OutputDataReceived += (sender, e) =>
                   {
                       if (e.Data == null)
                       {
                           outputWaitHandle.Set();
                       }
                       else
                       {
                           output.AppendLine(e.Data);
                       }
                   };
                   process.ErrorDataReceived += (sender, e) =>
                   {
                       if (e.Data == null)
                       {
                           errorWaitHandle.Set();
                       }
                       else
                       {
                           error.AppendLine(e.Data);
                       }
                   };

                   process.Start();

                   process.BeginOutputReadLine();
                   process.BeginErrorReadLine();

                   if (process.WaitForExit(timeout) &&
                       outputWaitHandle.WaitOne(timeout) &&
                       errorWaitHandle.WaitOne(timeout))
                   {
                       // Process completed. Check process.ExitCode here.
                       process.Close();
                   }
                   else
                   {
                       // Timed out.
                       process.Close();
                   }
               }
           }
       }

    I get ObjectDisposedException for ErrorDataRecieved event on errorWaitHandle.Set();

    First, I want to resolve this error, but if you know any better solution to run the "ffmpeg" for several times please suggest me.

  • FFmpeg - Multiple videos with 4 areas and different play times

    25 mai 2018, par Robert Smith

    I have videos as follows

    video   time
    ======= =========
    Area 1:
    video1a    0-2000
    video1b 2500-3000
    video1c 3000-4000

    Area 2:
    video2a  300- 400
    video2b  800- 900

    Area 3:
    video3a  400- 500
    video3b  700- 855

    Area 4:
    video4a  400- 500
    video4b  800- 900

    Basically these are security camera outputs and should display in 4 areas :

    So far I have the following :

    ffmpeg
       -i 1.avi -i 2.avi -i 3.avi -i 4.avi
       -filter_complex "
           nullsrc=size=640x480 [base];
           [0:v] setpts=PTS-STARTPTS, scale=320x240 [upperleft];
           [1:v] setpts=PTS-STARTPTS, scale=320x240 [upperright];
           [2:v] setpts=PTS-STARTPTS, scale=320x240 [lowerleft];
           [3:v] setpts=PTS-STARTPTS, scale=320x240 [lowerright];
           [base][upperleft] overlay=shortest=1 [tmp1];
           [tmp1][upperright] overlay=shortest=1:x=320 [tmp2];
           [tmp2][lowerleft] overlay=shortest=1:y=240 [tmp3];
           [tmp3][lowerright] overlay=shortest=1:x=320:y=240
       "
       -c:v libx264 output.mp4

    But there are two things I am missing :

    • The above is only for 4 video files, I need a way to add additional files to each area (for example video1b should play at its corresponding time after video1a in the same area)
    • How do I specify the beginning/ending time as shown above for each file ?
  • Insert Random silence multiple times between Audios in ffmpeg

    23 septembre 2021, par Gracie williams

    suppose I have MP3 of around 1 minute duration and increase its duration longer.Duration can be any.

    


    I want to randomly add N seconds of silence to that audio.

    


    I can generate the silence like below

    


    ffmpeg -f lavfi -i anullsrc=r=44100:cl=mono -t <seconds> -q:a 9 -acodec libmp3lame out.mp3&#xA;</seconds>

    &#xA;

    And I can insert silence to audio like below

    &#xA;

    ffmpeg -i in.wav -filter_complex "anullsrc,atrim=0:4[s];[0]atrim=0:14[a];[0]atrim=14,asetpts=N/SR/TB[b];[a][s][b]concat=3:v=0:a=1" out.wav&#xA;

    &#xA;

    Is there anyway to insert silence at multiple areas.With php I can generate random time to insert based on 60 seconds audio like below.

    &#xA;

    $arr = [];&#xA;$arr[3] = 2; //here 3 is original audio insert time and 2 is the duration of silence&#xA;$arr[6] = 3;  //here 6 is original audio insert time and 3 is the duration of silence&#xA;$arr[10] = 1;&#xA;$arr[12] = 3;&#xA;

    &#xA;

    Now I want to insert silence between seconds based on above array like

    &#xA;

    2 seconds silence at 3rd second&#xA;3 seconds silence at 6th second&#xA;1 second silence at 10th second&#xA;

    &#xA;

    and son on..

    &#xA;