Recherche avancée

Médias (0)

Mot : - Tags -/albums

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (42)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (5350)

  • Free music recognition API

    12 mars 2014, par AmirH

    I'm developing an application to recognize the music played by speakers. It records 32 seconds of the sound played and send a request via an API of music recognition. So far I used Echonest. But my api_key has been banned because of to many requests since I published my freeware, used by more than 200 users.

    So I looked for MusicBrainz but it needs the exact duration of the entire song to receive a acceptable response, duration that my application can't guess.

    So I'm looking for a free music recognition API so my freeware works. Do you know one ?

    Note : I used Echonest by :

    I tried to use MusicBrainz by :

    • capturing 32 seconds with ffmpeg
    • generating the fingerprint using Chromaprint with this command :

      fpcalc sound.mp3 > fingerprint.txt

    • sending this command via cURL :

      curl -F "client=XXX" -F "meta=recordings" -F "duration=32" -F "fingerprint=ABC" "http://api.acoustid.org/v2/lookup" > info.txt

  • ffmpeg Padding & Delay to Audio File Accurately

    14 avril 2022, par Ry-

    Recently I've been doing a personal project which does entail a little bit of
audio handling but I have noticed that the commands that I am using to modify
don't have a 1:1 correlation in the resulting file leading to it being fairly
offbeat (Note that this program is error sensitive).

    


    All I need to do is accurately add Padding to the start of an audio file, or
jumpforward to some point in the song using an Offset/Delay value. The values
are strictly accurate such as 0.13149s however accuracy passed the third radix
is pretty redundant since 'nobody' should be able to notice it.

    


    Here is an example of one issue:

    [Input File Info] // This is a test case/correct values
    Supposed to start at : 0.875
    Originally started at: 1.190
    Offset Value         : -0.315
    Difference           : 1.190 - 0.875 = 0.315


    


        // Audio file offset attempt (FAIL)
    FFMPEG Command:  
        ffmpeg -y -i "..." -ss 0.315 -c copy -map 0 "..."
        
    [Output File Info]
    Start Time Beat         : 0.766 
    Start Time Beat Audacity: 0.766
    Resulting Error         : 0.106


    


    What I want to know is if someone knows a better way to get 1:1 accuracy from
the command or atleast as close to it as possible. I don't often use ffmpeg so
I probably am missing vital information (I did my best googling ok :) but to
this I also wouldn't abstain from using a dedicated audio library for the
language I'm writing the program in (Java).

    


    I probably should mention that I have been using:
    ffmpeg -y -i "..." -af "adelay=DELAY" "..."

to add the padding but I haven't really gotten around to testing audio files
that require this yet so I don't know if its broken/inaccurate.


    


  • Code returns AttributeError : 'VoiceChannel' object has no attribute 'play' when running on Discloud

    18 septembre 2023, par Sc4rl3ttfir3

    So, my code works fine when I run it locally, but even after adapting it to run on Discloud, it returns an error I can't solve.

    


    Code :

    


    @bot.command(name='play', help='To play song')
async def play(ctx, url):
    voice_channel = ctx.author.voice.channel

    if voice_channel is None:
        return await ctx.send('You are not connected to a voice channel.')

    async with ctx.typing():
        filename = await YTDLSource.from_url(url, loop=bot.loop)
        
        if ctx.voice_client is not None:
            ctx.voice_client.stop()

        source = discord.FFmpegPCMAudio(
            executable="ffmpeg",
            source=filename
        )
        
        voice_channel.play(source)

    await ctx.send('**Now playing:** {}'.format(filename))


    


    When it runs on the Discloud server, it returns the following error/traceback message :

    


    Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/discord/ext/commands/core.py", line 235, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user_686208406444572830/Sc4rl3ttb0t.py", line 357, in play 
voice_channel.play(source)
^^^^^^^^^^^^^^^^^^
AttributeError: 'VoiceChannel' object has no attribute 'play'


    


    Anybody with any idea of what is going wrong would be greatly appreciated for helping out