
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (58)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (11495)
-
Doubts in the development of a music bot for discord, using DSharpPlus and ffmpeg
21 avril 2018, par VralagoI 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;
}
} -
postproc/tests : Add test for temporal denoise
30 avril, par Michael Niedermayer -
Changelog and download for V2.97a.20120318
19 mars 2012, par Scott Schillerm doc/download/index.html Changelog and download for V2.97a.20120318