Recherche avancée

Médias (1)

Mot : - Tags -/publier

Autres articles (54)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (7806)

  • avutil/encryption_info : Fix documentation problem.

    26 juin 2018, par Jacob Trimble
    avutil/encryption_info : Fix documentation problem.
    

    Signed-off-by : Jacob Trimble <modmaker@google.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavutil/encryption_info.h
  • Scheduled ffmpeg function gives thread.error and also fires ffmpeg too many times

    16 février 2016, par user2192778

    I want to record a clip of a radio stream every hour. Below is the code I am using to accomplish this so far.

       def sched(): # schedules a recording every hour
           def stream_record ():
               timeinfo = datetime.now().strftime('%Y%m%d_%H%M_%S%f')
               ffmpegEXE = "C:/path/to/ffmpeg.exe"
               subprocess.call([ffmpegEXE, '-i', url, '-t', '00:07:00',
               output_folder + timeinfo + '_' + str(start_minute) + 'url.mp3'], shell=True)

           i = 0
           while True:

           x = datetime.today()
           y=x.replace(day=x.day+1, hour=i, minute= start_minute, second=0, microsecond=0)
           i = (i + 1) % 24
           delta_t=y-x
           secs=delta_t.seconds+1
           t = Timer(secs,stream_record)
           t.start()

    sched()

    Two things go wrong. (1) It will run, however an error reads :

    line X in (module)

    sched()

    line Y in sched

    t.start()

    line Z in start

    _start_new_thread(self.__bootstrap, ())

    thread.error : can’t start new thread

    And (2) when it runs, ffmpeg will initialize a recording anywhere from 5-15 times, saving many clips when I only want it to save one.

    How do I fix these errors and get ffmpeg to connect and record only one clip every hour ?

    I know this is an issue with the scheduling function ; the ffmpeg command works fine, as does the python script calling it.

  • 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) &amp;&amp;
                       outputWaitHandle.WaitOne(timeout) &amp;&amp;
                       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.