Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (96)

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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (9769)

  • Anomalie #3590 : Si on recharge la page après avoir changé le statut d’un article, il y a un messa...

    28 février 2016, par realet RealET

    Le scénario où j’ai classiquement ça, c’est sur un plantage du navigateur. Je le relance, il me recharge tous les onglets ouverts, et quand je vais dans un onglet qui contenait une page où je venais de changer le statut, le navigateur me propose de renvoyer le formulaire. Mais ça ne me dit pas ce que contient le formulaire, ni sur quoi il s’applique. C’est opaque.
    Si c’est en plus après un reboot automatique durant la nuit (Windows Update), autant dire que c’est le flou total.

    Si je suis seul sur le site, ça ne porte pas forcément à conséquence.

    Mais à plusieurs, on peut se retrouver sur le cas :
    - je propose un article
    - quelqu’un le valide
    - je plante, je recharge mes onglets, paf, l’article entre temps publié est de nouveau proposé

    C’est la seule action de SPIP qui a se comportement dérogatoire (d’après mon expérience).
    Toutes les autres actions ne sont pas rejouables par simple rafraichissement de la page (F5).

    Et que ça soit parce que c’est un formulaire et qu’en HTML, les formulaires fonctionnent comme ça m’en touche une sans faire bouger l’autre ;-)
    Ce que je vois, c’est que tous les autres formulaires de SPIP, à commencer par ceux d’édition d’un article n’ont pas ce comportement.

    Comme dirait ESJ, ce formulaire de changement de statut à un comportement dérogatoire qui nuit à l’intelligibilité du fonctionnement global ;-)

  • Using NReco ConvertLiveMedia with FFMPEG

    2 juillet 2020, par Alex

    I'm working with video files in my .net application using NReco's ffmpeg wrapper. I can easily convert videos if I point the ConvertMedia to an existing file with a path, but I really want to convert the file via a stream and not a path (before even saving it).

    


    Next to the ConvertMedia method, there's also a ConvertLiveMediaTask method that accepts a stream instead of a path, but that's for streaming videos or something ?

    


    It says I can create a task for live stream conversion (real-time) that reads data from stream and writes conversion result to the file, but I can't get it to work and I can't find a working example of it on the Internet.

    


    Does anyone have any experience with this ?

    


    I always get an exception with error code 1 when I call convertLiveMediaTask.Wait() or when I call convertLiveMediaTask.Write(). The inputStream that I provide the ConvertLiveMedia method starts at position 0 and ends up at position 113654 so SOMETHING is happening, but the new MemoryStream that I provide never gets anything written into it.

    


    Am I supposed to provide it with something specific in the ConvertSettings parameter ?

    


    private MemoryStream ConvertVideo(HttpPostedFileWrapper file)
        {
            if (file == null || file.ContentLength == 0)
            {
                return null;
            }

            var ffMpeg = new FFMpegConverter();
            var s = new MemoryStream();
            var convertLiveMediaTask = ffMpeg.ConvertLiveMedia(file.InputStream, Format.avi, s, Format.mp4, new ConvertSettings());            
            convertLiveMediaTask.Start();                
            convertLiveMediaTask.Wait(); // Throws Exception
            return s;
}
            


    


    Someone please help. I've been told this can work, but I haven't been able to get it to work at all.

    


  • Adding subtitles to video using Laravel FFMpeg

    13 juin 2024, par Pieter van der Mullen

    I've been trying to convert my console command to work with the Laravel FFMpeg package. The issue that I've been running into is that the available Filters are not really well documented.


    This is the Laravel code that is not working. The only part that does not work is the last addFilter part with the srt and font file.

    


                FFMpeg::fromDisk('local')
            ->open([$backgroundImage, $audioFile])
            ->export()
            ->toDisk('local')
            ->addFilter(function (FrameFilters $filters) {
                $filters->custom('scale=1920:1080');
            })
            ->addFormatOutputMapping(
                new X264,
                Media::make('local', $newVideoPath),
                ['0:v', '1:a']
            )
            ->addFilter(function ($filters) use ($srtFile, $fontFile) {
                $filter = "pad=1920:1080:0:0:color=black,subtitles={$srtFile}:force_style='Fontname={$fontFile},Alignment=10,Fontsize=36,BorderStyle=3,Outline=1,OutlineColour=&HFFFFFF&,PrimaryColour=&H008d7f00&'";
                $filters->custom('0:v', '0:v', $filter);
            })
            ->save();


    


    The command which I used to use in the console using Symphony Process was :

    


    '-vf', "pad=1920:1080:0:0:color=black,subtitles=$srtFile:si=0:force_style='Fontname=$fontFile,Alignment=10,Fontsize=36,BorderStyle=3,Outline=1,OutlineColour=&HFFFFFF&,PrimaryColour=&H008d7f00&'"


    


    Is there anyone who has experience doing this ?