Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (105)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • 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" ;

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (14854)

  • common.mak : Use CCFLAGS for assembly generation as well

    2 décembre 2015, par Timothy Gu
    common.mak : Use CCFLAGS for assembly generation as well
    

    CCFLAGS is equivalent to CPPFLAGS + CFLAGS, and it is already being used
    by other make rules like %.i and %.o. Simplifies common.mak.

    • [DH] common.mak
  • Doubts in the development of a music bot for discord, using DSharpPlus and ffmpeg

    21 avril 2018, par Vralago

    I have been making a bot for Discord, and recently I thought about adding the music system. Well I even understand how it works but also have some things that I’m not understanding how I should do it (I’m using the DiscordSharpPlus api), for example putting the music on pause (bearing in mind that ffmpeg continues to read the music).

    So I wanted to know if anyone can explain me or tell me how I should do it or how it works, given that it is my first time using ffmpeg and I do not know all the functions of the program.

    If it is necessary, there is the code where the ffmpeg is and the sending of data to the discord.

    public static async Task AddMusicFromYoutube(VoiceNextConnection vnc, CommandContext ctx, string url)
    {
       string fileName = "";

       if (url.ToLower().Contains("youtube.com"))
       {
           fileName = await DownloadFromYouTube(url);
           if (fileName == string.Empty) return;

           await ctx.RespondAsync($"Playing for **Youtube** -> `{url}`");
           await vnc.SendSpeakingAsync(true);

           var ffmpeg_pro = new ProcessStartInfo
           {
               FileName = "Libs/ffmpeg",
               Arguments = $@"-xerror -i ""{fileName}.mp3"" -ac 2 -f s16le -ar 48000 pipe:1",
               RedirectStandardOutput = true,
               UseShellExecute = false
           };
           var ffmpeg = Process.Start(ffmpeg_pro);

           Stream ffout = ffmpeg.StandardOutput.BaseStream;

           using (var ms = new MemoryStream())
           {
               await ffout.CopyToAsync(ms);
               ms.Position = 0;

               var buff = new byte[3840];
               var br = 0;
               while ((br = ms.Read(buff, 0, buff.Length)) > 0)
               {
                   if (br < buff.Length)
                       for (var i = br; i < buff.Length; i++)
                           buff[i] = 0;

                   await vnc.SendAsync(buff, 20); // Send PCM date for discord

                   //tentativa de parar a musica
                   if (Program.IsPuased)
                   {
                       while (Program.IsPuased)
                       {
                       }
                   }
               }

               ms.Close();
           }
           await vnc.SendSpeakingAsync(false);
       }
       else
       {
           await ctx.RespondAsync($"{ctx.Member.Mention}, por agora só aceito link's do Youtube!");
           return;
       }
    }
  • How do you apply filters to ffmpeg in one sentence and put music in the ffmpeg ?

    9 septembre 2017, par 이상우

    I want to put music on a photo with a filter applied.
    However, music will not be inserted and only the video will be played.
    What should I do ?

    "C:/Users/SCITMaster/Desktop/ffmpeg-20170827-ef0c6d9-win64-static/bin/ffmpeg",
    "-loop","1","-t","5","-i","photo1.jpg",
    "-loop","1","-t","5","-i","photo2.jpg",
    "-loop","1","-t","5","-i","photo3.jpg",
    "-loop","1","-t","5","-i","photo4.jpg",
    "-loop","1","-t","5","-i","photo5.jpg",
    "-filter_complex",
    "[1:v][0:v]blend=all_expr='A*(if(gte(T,2),1,T/2))+B*(1-(if(gte(T,3),1,T/3)))'[b1v];"
    + " [2:v][1:v]blend=all_expr='A*(if(gte(T,0.5),1,T/0.5))+B*(1-(if(gte(T,0.5),1,T/0.5)))'[b2v];"
    + " [3:v][2:v]blend=all_expr='A*(if(gte(T,0.5),1,T/0.5))+B*(1-(if(gte(T,0.5),1,T/0.5)))'[b3v];"
    + " [4:v][3:v]blend=all_expr='A*(if(gte(T,0.5),1,T/0.5))+B*(1-(if(gte(T,0.5),1,T/0.5)))'[b4v];"
    + " [0:v][b1v][1:v][b2v][2:v][b3v][3:v][b4v][4:v]concat=n=9:v=1:a=0,format=yuv420p[v]",
    "-map",
    "[v]","-i","Test.mp3","-s","1280x960","-vcodec","libx264","-crf","25","-acodec","copy",
    "crossfade.mp4"