Recherche avancée

Médias (1)

Mot : - Tags -/portrait

Autres articles (80)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (8500)

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

    


  • After a while of being idle, my bot, hosted on CentOS 7, can no longer find ffmpeg and requires a restart

    14 août 2019, par Liam McMillen-Meyers

    So I have a discord bot running with discord.js on a CentOS 7 machine. After a while (I’m not exactly sure how long) it will start throwing errors when I try to play a song, saying it can’t find ffmpeg, except that ffmpeg is installed. After I quickly restart the bot it works fine again.

    I genuinely have no idea what causes this, I have a little experience with CentOS but I’m by no means an experienced user, is it something I did when it installed ? I have tried searching for answers online but I can’t find anything

    Error : FFMPEG not found
    at Function.selectFfmpegCommand (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/ffmpeg/Ffmpeg.js:46:13)
    at new FfmpegTranscoder (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/ffmpeg/Ffmpeg.js:7:37)
    at new MediaTranscoder (/user/DiscordBot/folder1/node_modules/prism-media/src/transcoders/MediaTranscoder.js:10:19)
    at new Prism (/user/DiscordBot/folder1/node_modules/prism-media/src/Prism.js:5:23)
    at new VoiceConnection (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/VoiceConnection.js:46:18)
    at Promise (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/ClientVoiceManager.js:63:22)
    at new Promise ()
    at ClientVoiceManager.joinChannel (/user/DiscordBot/folder1/node_modules/discord.js/src/client/voice/ClientVoiceManager.js:45:12)
    at VoiceChannel.join (/user/DiscordBot/folder1/node_modules/discord.js/src/structures/VoiceChannel.js:130:30)
    at execute (/user/DiscordBot/folder1/bot.js:467:40)