
Recherche avancée
Autres articles (36)
-
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 -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (8797)
-
Discord Bot // Voice Client Returns NoneType
1er mai 2022, par DimKewlExperimenting with Discord and Python followed a couple of guides and created a bot that could play music from streaming URLs.


However, now for the same code, I get Attribute Error : 'NoneType' object exceptions.


Exception snippet
Console Snapshot


The actual method goes like this :


.
.
 FFMPEG_OPTIONS = {
 "before_options": "-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5",
 "options": "-vn -sn -dn"
}

@commands.command()
async def radio(self,ctx,url):
 await self.join(ctx)
 await self.playStreamUrlLogic(ctx,url);

async def playStreamUrlLogic(self, ctx, url):
 source = await discord.FFmpegOpusAudio.from_probe(url, **self.FFMPEG_OPTIONS)
 await ctx.voice_client.play(source)
.
.



Even though everything points to a non instantiated class when I debug I can see that there is a voice_client object with info
Snapshot from Debbuger property viewer


I already tried to use FFMPegPCMAudio as well but with no results.
Any insights would be helpful.


-
FFMPEG avcodec_find_decoder(2) (CODEC_ID_MPEG2VIDEO) always returns incomplete AVCodec ?
22 octobre 2012, par PasserI got a problem with FFMPEG (avcodec-54.dll)
1) I wrote a .NET wrapper. As far as I can see it works well.
2) I try to decode something... and thats were the problem is :...
FFmpeg.avcodec_register_all();
pAVCodec = FFmpeg.avcodec_find_decoder(CodecID.CODEC_ID_MPEG2VIDEO); //which is in int 2
Console.WriteLine("CodecID " + (*pAVCodec).id);
Console.WriteLine("CodecType " + (*pAVCodec).type);
Console.WriteLine("CodecName " + (*pAVCodec).name);
....
No EXC was thrown and the following output came :
CodecID CODEC_ID_NONE
CodecType 1790854254
CodecName mpeg2video
What confuses me the most is that the name is correct, but the id and type are wrong.
In the previous Version if the DLL everything works fine. This behaviour came up with the new version.
Any guesses or debugging tips ? -
Use the font-size of the element if the font-size of the parent is 0 and use 16 if both are 0 (applies when deltaMode is 1).
10 juillet 2014, par brandonaaronUse the font-size of the element if the font-size of the parent is 0 and use 16 if both are 0 (applies when deltaMode is 1).