Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (71)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

Sur d’autres sites (5986)

  • (FIXED) How do I make my discord.py bot play a sound effect ?

    6 décembre 2023, par Kronik71

    My bot is supposed to be some sort of jeopardy quiz show type of bot. /joinvc makes the bot connect to the call, however, I cant seem to make the bot make noise when its in a vc. Here's some of the code :

    


    @interactions.slash_command(
    name="press",
    description="Press the button"
)

async def press(ctx: interactions.ComponentContext):
    await ctx.send(f"{ctx.author.mention} has pressed the button")
    vc = ctx.author.voice.channel
    player = vc.create_ffmpeg_player('audiopath', after=lambda: print('done'))
    player.start()


    


    But whenever I use the /press command, I get this error AttributeError: 'GuildVoice' object has no attribute 'create_ffmpeg_player'

    


    Is it something I did wrong with ffmpeg ?

    


    I tried using a different way to write the code, basically grabbing the ffmpeg.exe path and the audio path, didn't work either. I just want the bot to play a small noise whenever someone uses /press command.

    


  • How do I make my discord.py bot play a sound effect ?

    15 mai 2024, par Kronik71

    My bot is supposed to be some sort of jeopardy quiz show type of bot. /joinvc makes the bot connect to the call, however, I cant seem to make the bot make noise when its in a vc. Here's some of the code :

    


    @interactions.slash_command(
    name="press",
    description="Press the button"
)

async def press(ctx: interactions.ComponentContext):
    await ctx.send(f"{ctx.author.mention} has pressed the button")
    vc = ctx.author.voice.channel
    player = vc.create_ffmpeg_player('audiopath', after=lambda: print('done'))
    player.start()


    


    But whenever I use the /press command, I get this error AttributeError: 'GuildVoice' object has no attribute 'create_ffmpeg_player'

    


    Is it something I did wrong with ffmpeg ?

    


    I tried using a different way to write the code, basically grabbing the ffmpeg.exe path and the audio path, didn't work either. I just want the bot to play a small noise whenever someone uses /press command.

    


  • downloading and concatenating parts of videos from youtube

    17 octobre 2018, par amit

    I’m trying to create a video quiz, that will contain small parts of other videos, concatenated together (with the purpose, that people will identify from where these short snips are taken from).

    For this purpose I created a file that contain the URL of the video, the starting time of the "snip", and its length. for example :

    https://www.youtube.com/watch?v=5-j6LLkpQYY   00:00   01:00
    https://www.youtube.com/watch?v=b-DqO_D1g1g   14:44   01:20
    https://www.youtube.com/watch?v=DPAgWKseVhg   12:53   01:00

    Meaning that the first part should take the video from the first URL from its beginning and last for a minute, the second part should be taken from the second URL starting from 14:44 (minutes:seconds) and last one minute and 20 seconds and so forth.

    Then all these parts should be concatenated to a single video.

    I’m trying to write a script (I use ubuntu and fluent in several scripting languages) that does that, and I tried to use youtube-dl command line package and ffmpeg, but I couldn’t find the right options to achieve what I need.

    Any suggestions will be appreciated.