Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (73)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (7962)

  • 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"
  • 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;
       }
    }
  • Video with music taking long time

    1er octobre 2020, par Konduri Sai Aditya

    Hi I am rendering video with filters and adding audio at the end. But while running it is taking a long time and rendering continuously. Can anyone help me where I am wrong ? below is the command

    


     ffmpeg -i test.png -i test.mp4 -i test.mp3  -y -filter_complex "[1:v]scale=1422:800[scale1],[scale1]rotate=0:c=black@0:ow=rotw(0):oh=roth(0)[rotate0],[0:v][rotate0]overlay=258.04:107.71[mediaoverlayout0],color=black@0:451x137[c1],[c1]setsar=1,drawtext=fontfile='/Windows/fonts/Peddana-Regular.ttf':text='ADITYA':fontsize=121.199:fontcolor=#1e8bc3:line_spacing=16.91,rotate=0:ow=rotw(0):oh=roth(0):c=black@0[rottext1],[mediaoverlayout0][rottext1]overlay=x=544.63:y=263.076[out]" -vcodec libx264 -map "[out]" -map 2:a -preset veryfast -c:a copy -pix_fmt yuv420p op.mp4