Recherche avancée

Médias (91)

Autres articles (72)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (8375)

  • FFMPEG avcodec_find_decoder(2) (CODEC_ID_MPEG2VIDEO) always returns incomplete AVCodec ?

    22 octobre 2012, par Passer

    I 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 ?

  • Discord Bot // Voice Client Returns NoneType

    1er mai 2022, par DimKewl

    Experimenting 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.

    


  • ARSS returns error "This WAVE file format is not currently supported"

    22 juin 2019, par itisyeetimetoday

    I have tried to import a wav file into ARSS : http://arss.sourceforge.net/index.shtml

    I get the above error.

    Files :
    https://drive.google.com/open?id=1X24eUOzOGa5uBUHFTtrSmzptIQTz-93l

    I have tried the following commands with FFmpeg to create a "clean" wav, however, they have all failed.

    ffmpeg -i "file.wav" -f wav -bitexact -acodec pcm_s16le -ar 22050 -ac 1 "ffmpeg.wav"

    ffmpeg -i file.wav -c copy -fflags +bitexact new.wav

    Ffmpeg appears to convert successfully, but it still returns the same error message in ARSS.