Recherche avancée

Médias (91)

Autres articles (88)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

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

Sur d’autres sites (4890)

  • FFMPEG audio decoding

    8 juillet 2012, par Nitin Goyal

    I have used the avcodec_decode_audio3 function to decode the AMR content in the frame order.

    I get 640 bytes output for each frame, with sample format being float and I have saved the output as a raw output file.

    Now, I want to validate this output content. But I can't play it in any player as it does not have any header or media info. And I am not able to find any command in ffmpeg which gives me raw audio output.

    Now, if want to re-encode that raw output content in FFMPEG, what would be the input format I need to give.

    Can anybody give some suggestion on this ?

  • Xamarin FFMpeg Add Progress Bar with Percentage

    22 mai 2020, par seopower

    I am doing some video conversion in Xamarin Android and using https://github.com/neurospeech/xamarin-android-ffmpeg

    



    I would like to show a ProgressDialog with percentage completed, below is the code I am using :

    



    Action onProgress;&#xA;Action<string> logger = null;&#xA;int total = 0;&#xA;int current = 0;&#xA;&#xA;var dialog = new ProgressDialog(this);&#xA;dialog.SetTitle("Please wait, creating video.");&#xA;dialog.Indeterminate = false;&#xA;dialog.SetProgressStyle(ProgressDialogStyle.Horizontal);&#xA;dialog.SetCancelable(false);&#xA;dialog.CancelEvent &#x2B;= (s, e) =>&#xA;{&#xA;&#xA;};&#xA;&#xA;dialog.SetCanceledOnTouchOutside(false); &#xA;dialog.Show();&#xA;&#xA;await FFMpegLibrary.Run(this, cmd, (s) =>&#xA;{&#xA;    logger?.Invoke(s);&#xA;    int n = Extract(s, "Duration:", ",");&#xA;    if (n != -1)&#xA;    {&#xA;        total = n;&#xA;        dialog.Max = n;&#xA;    }&#xA;&#xA;    n = Extract(s, "time=", " bitrate=");&#xA;    if (n != -1)&#xA;    {                        &#xA;        current = n;&#xA;        onProgress?.Invoke(current, total);                        &#xA;    }                    &#xA;});&#xA;&#xA;dialog.Hide();&#xA;</string>

    &#xA;&#xA;

    To extract time and duration below are the functions

    &#xA;&#xA;

    public int Extract(String text, String start, String end)&#xA;    {&#xA;        int i = text.IndexOf(start); &#xA;        if (i != -1)&#xA;        {&#xA;            text = text.Substring(i &#x2B; start.Length);&#xA;            i = text.IndexOf(end);&#xA;            if (i != -1)&#xA;            {&#xA;                text = text.Substring(0, i);&#xA;                return parseTime(text);&#xA;            }&#xA;        }&#xA;        return -1;&#xA;    }&#xA;&#xA;    public int parseTime(String time)&#xA;    {&#xA;        time = time.Trim();&#xA;        String[] tokens = time.Split(&#x27;:&#x27;);&#xA;        int hours = int.Parse(tokens[0]);&#xA;        int minutes = int.Parse(tokens[1]);&#xA;        float seconds = float.Parse(tokens[2]);&#xA;        int s = (int)seconds * 100;&#xA;        return hours * 360000 &#x2B; minutes * 60100 &#x2B; s;&#xA;    }&#xA;

    &#xA;&#xA;

    Any idea how to show progress in percentage on ProgressDialog ?

    &#xA;

  • Anomalie #4506 : Supprimer les CSS inline des modèles de documents

    9 juin 2020, par b b

    La réponse à la question est ici https://git.spip.net/spip/medias/commit/fa13018a9ef63c633e78da253106867d6bac8a78

    les styles en dur float sont supprimes, on ne garde qu’un width :largeurpx sur l’element

    qui permet d’avoir un conteneur ajuste : il se contourne facilement par un min-width:100% ; ou un width:auto !important ;