
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (62)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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. -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (13602)
-
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;
}
} -
mpegts : do not export empty language tags
21 juillet 2014, par Jan Gerber -
doc/developer.texi : Add variadic macros to allowed C language features
23 mars 2020, par Andreas Rheinhardt