Recherche avancée

Médias (91)

Autres articles (99)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

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

Sur d’autres sites (9489)

  • FFMPEG Process not ending when encoding libx264

    17 janvier 2015, par Jamie Hartnoll

    Well, I’m very new and inexperienced with using Process and using FFMPEG, and command line processes in ASP.NET in general... but, have something working, nearly !

    I’m trying to convert AVI files to MP4 files which can be streamed to an HTML5 player.

    After a lot of messing around, I have found that for this to work it has to be encoded with X264, but, for some reason, when I do this the FFMPEG process does not close/end.

    The code I am using is below and works perfectly if I use -vcodec mpeg4, but when I use -vcodec libx264, whilst it works and produces the file I need to Process never ends.

    To get round this, I am temporarily adding 5 second time out to WaitForExit in the Process, but this is definitely a hack and whilst is OK with what I am doing at the moment is not a robust solution.

    Can anyone point me in the direction of why this is happening ?!

    Public Shared Sub AviToMP4(VideoFileName As String, Optional DeleteSource As Boolean = True)

       Dim SourceFile As String = VideoFileName.Replace(".avi", "")
       Dim DestinationFile As String = SourceFile

       Dim FFMPEG_EXE_PATH As String = """" & System.AppDomain.CurrentDomain.BaseDirectory() & "ffMPEG.exe"""
       Dim Codec = "libx264" ' libx264 || mpeg4
       Dim cdml = " -i """ & SourceFile & ".avi"" -acodec aac -strict -2 -b:a 128k -vcodec " & Codec & " -b:v 1200k -flags +aic+mv4 """ & DestinationFile & ".mp4"""

       Dim ProcessorLocation As String = FFMPEG_EXE_PATH
       Dim CommandLines As String = cdml

       Try
           Dim ProcessingResponse As String = ""
           Using myProcess As New Process()
               myProcess.StartInfo.UseShellExecute = False
               myProcess.StartInfo.RedirectStandardInput = True
               myProcess.StartInfo.RedirectStandardOutput = True
               myProcess.StartInfo.RedirectStandardError = True
               myProcess.StartInfo.CreateNoWindow = True
               myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden
               myProcess.StartInfo.FileName = ProcessorLocation
               myProcess.StartInfo.Arguments = CommandLines
               myProcess.Start()
               ProcessingResponse = myProcess.StandardError.ReadToEnd()
               myProcess.WaitForExit(5000) ' <<< Have to put a timeout here for libx264 or it will never end!!
           End Using
           HttpContext.Current.Response.Write("<pre>" &amp; ProcessingResponse &amp; "</pre><hr />")
           If File.Exists(SourceFile) AndAlso DeleteSource Then
               File.Delete(SourceFile)
           End If
       Catch ex As Exception
           HttpContext.Current.Response.Write(ex.ToString &amp; "<p>")
       End Try

    End Sub
    </p>
  • Streaming x264 with packet loss

    6 octobre 2014, par user2629511

    I write the program where I use x264 as the coder.
    I use the following parameters :

    av_opt_set (codecContextH264[numberCoder]-&amp;gt; priv_data, "profile", "baseline", 0);
    av_opt_set (codecContextH264[numberCoder]-&amp;gt; priv_data, "preset", "ultrafast", 0);
    av_opt_set (codecContextH264[numberCoder]-&amp;gt; priv_data, "tune", "zerolatency", 0);
    codecContextH264[numberCoder]-&amp;gt; bit_rate =bitrate;
    codecContextH264[numberCoder]-&amp;gt; bit_rate_tolerance=bitrate-5000;
    codecContextH264[numberCoder]-&amp;gt; width = w;
    codecContextH264[numberCoder]-&amp;gt; height = h;
    codecContextH264[numberCoder]-&amp;gt; time_base.den = fps;
    codecContextH264[numberCoder]-&amp;gt; time_base.num = 1;
    codecContextH264[numberCoder]-&amp;gt; pix_fmt = PIX_FMT_YUV420P;
    codecContextH264[numberCoder]-&amp;gt; gop_size = fps*3;
    codecContextH264[numberCoder]-&amp;gt; keyint_min = fps*3;
    codecContextH264[numberCoder]-&amp;gt; max_b_frames = 0;
    codecContextH264[numberCoder]-&amp;gt; slices = (int) (w*h)/1500+1;

    I use only I and P frames.
    What x264 settings I shall use that could lose P frames ?
    Perhaps x264 has no such opportunity ?!
    I read that if to use a "base" profile, it is possible to lose P frames...
    Help please.

  • Streaming x264 with packet loss

    6 octobre 2014, par user2629511

    I write the program where I use x264 as the coder.
    I use the following parameters :

    av_opt_set (codecContextH264[numberCoder]-&amp;gt; priv_data, "profile", "baseline", 0);
    av_opt_set (codecContextH264[numberCoder]-&amp;gt; priv_data, "preset", "ultrafast", 0);
    av_opt_set (codecContextH264[numberCoder]-&amp;gt; priv_data, "tune", "zerolatency", 0);
    codecContextH264[numberCoder]-&amp;gt; bit_rate =bitrate;
    codecContextH264[numberCoder]-&amp;gt; bit_rate_tolerance=bitrate-5000;
    codecContextH264[numberCoder]-&amp;gt; width = w;
    codecContextH264[numberCoder]-&amp;gt; height = h;
    codecContextH264[numberCoder]-&amp;gt; time_base.den = fps;
    codecContextH264[numberCoder]-&amp;gt; time_base.num = 1;
    codecContextH264[numberCoder]-&amp;gt; pix_fmt = PIX_FMT_YUV420P;
    codecContextH264[numberCoder]-&amp;gt; gop_size = fps*3;
    codecContextH264[numberCoder]-&amp;gt; keyint_min = fps*3;
    codecContextH264[numberCoder]-&amp;gt; max_b_frames = 0;
    codecContextH264[numberCoder]-&amp;gt; slices = (int) (w*h)/1500+1;

    I use only I and P frames.
    What x264 settings I shall use that could lose P frames ?
    Perhaps x264 has no such opportunity ?!
    I read that if to use a "base" profile, it is possible to lose P frames...
    Help please.