Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (56)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (8736)

  • Playing RTSP in WPF application with low latency using FFMediaElement (FFME)

    17 août 2018, par Paboka

    I’m trying to use FFMediaElement (FFME, WPF MediaElement replacement based on FFmpeg) component to play RSTP live video in my WPF application.

    I have a good connection to my camera and I want to play it with minimum available latency.

    I’ve reduced the latency by changing ProbeSize to its minimal value :

    private void Media_OnMediaInitializing(object Sender, MediaInitializingRoutedEventArgs e)
    {
     e.Configuration.GlobalOptions.ProbeSize = 32;
    }

    But I still have about 1 second of latency since the very beginning of the stream. I mean, when I start playing, I have to wait for 1 second till the video appears and then I have 1s of latency.

    I’ve also tried to change following parameters :

    e.Configuration.GlobalOptions.EnableReducedBuffering = true;
    e.Configuration.GlobalOptions.FlagNoBuffer = true;
    e.Configuration.GlobalOptions.MaxAnalyzeDuration = TimeSpan.Zero;

    but it gave no result.

    Is there any parameter of FFME or FFmpeg I`ve missed ?

  • Using C# and ffmpeg to rip audio from an .mp4, ffmpeg stuck until closing the calling application

    19 juillet 2018, par user3806186

    I happened to find this answer :
    https://stackoverflow.com/questions/44981454/c-sharp-extract-mp3-file-from-mp4-file#=

    And it seems to work, However, the conversion process gets stuck, and it only resumes after I have closed the application that called ffmpeg to run.

    The following code is responsible for the launch of ffmpeg :
    (The commented lines are just from testing on how to fix the hanging)

           public static string ConvertToMp3(string inputFile, string outputFile = "extracted_audio.mp3")
       {
           Console.WriteLine("Converting mp3 to " + Path.GetFullPath("extracted_audio.mp3"));
           string mp3out = "";

           try
           {
               if (ffmpegProcess != null)
                   ffmpegProcess.Kill();

               ffmpegProcess = new Process();
               ffmpegProcess.StartInfo.UseShellExecute = false;
               ffmpegProcess.StartInfo.RedirectStandardInput = true;
               ffmpegProcess.StartInfo.RedirectStandardOutput = true;
               ffmpegProcess.StartInfo.RedirectStandardError = true;
               ffmpegProcess.StartInfo.CreateNoWindow = true;
               ffmpegProcess.StartInfo.FileName = Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName) + @"\bin\ffmpeg.exe";
               ffmpegProcess.StartInfo.Arguments = "-i " + Path.GetFullPath(inputFile) + " -vn -f mp3 -ab 320k output " + Path.GetFullPath(outputFile);
               ffmpegProcess.Start();
               ffmpegProcess.StandardOutput.ReadToEnd();
               mp3out = ffmpegProcess.StandardError.ReadToEnd();
               //ffmpegProcess.WaitForExit();
               if (!ffmpegProcess.HasExited)
               {
                   //ffmpegProcess.Kill();
               }
           }
           catch (InvalidOperationException e)
           {
               Console.WriteLine("mp3 conversion failed: " + e.Message);
               return "";
           }

           return mp3out;
       }

    I have no idea what causes the halting, any ideas ?

  • NReco Error : "The specified executable is not a valid application for this OS platform"

    18 juillet 2018, par swabygw

    I’m using the NReco to convert videos. I declare the converter like the following, and add a handler to ConvertProgress.

    Dim vid_Convert As New FFMpegConverter
    AddHandler vid_Convert.ConvertProgress, Sub(sender, e) vidConvertProgress(folder,fname,fext,fverdest,fint,fcount,fhost,e)
    vid_Convert.ConvertMedia(file_temp, Nothing, file_dest, "mp4", cSettings)

    The media is converted fine. The problem is in the handler where I declare a new converter and have it do a GetVideoThumbnail (when the prior conversion is completed), like this :

    Dim vid_Extract As New FFMpegConverter
    vid_Extract.GetVideoThumbnail(inputFile, outputFile, extractposition)

    This produces the error "The specified executable is not a valid application for this OS platform". However, I’ve executed the GetVideoThumbnail method by itself elsewhere in my program with no problem. For some reason, it won’t work if it’s executed within the handler. Is there a way around this ?