Recherche avancée

Médias (1)

Mot : - Tags -/publicité

Autres articles (108)

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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (12429)

  • How easy is it to create a YouTube to MP3 application using yt-dlp and ffmpeg ?

    26 juin 2022, par fowlis

    I was thinking I could automate the process of downloading a video and converting it to mp3 (or other formats).
    
Instead of doing the process myself (which doesn't take that long and isn't too much hassle), which looks something like this :
    
• yt-dlp https://www.youtube.com/watch?v=dQw4w9WgXcQ
    
• wait for download then (find and) rename file to something simpler for next command
    
• ffmpeg -i video.mp4 video.mp3


    


    I thought I could turn it into a simple JS (or other language) program instead, where it :

    


      

    1. Asks for link and what format I want it in
    2. 


    3. Downloads the video
    4. 


    5. Renames it (not sure how easy this is)
    6. 


    7. Turns it into requested format
    8. 


    9. Opens file location
    10. 


    


    If something like this is possible, please let me know some things I should know since I've never written a windows app before, and some general guidance for how I could do this.

    
I apologise if questions like this aren't exactly allowed on this site, its my first time posting too.
    
Thanks in advance !

    


  • How do I add a cool down to a command for a discord music bot [closed]

    22 mars 2021, par sherbit fish

    I'm making a music bot in discord and I need to add a cool down into this command so that people don't spam it and crash the bot. What should I do to fix this problem ?

    


    const ytdl = require("ytdl-core");

client.on('message', async message => {
  if (message.member.voice.channel) {
    const connection = await message.member.voice.channel.join();
    console.log(`sound was just played`);
connection.play(ytdl('https://www.youtube.com/watch?v=jRxSRyrTANY',{ highWaterMark: 50 },{ quality: 'highestaudio' },{ type: 'opus' }));
setTimeout(() => {
  connection.disconnect();
}, 12000); 
  }
});


    


  • FFMPEG, last message repeated 1 times

    30 octobre 2023, par byeolki
    def play_queue(self, id:str, title:str):
    music_data = Music_Data(self.inter.guild)
    FFMPEG_OPTIONS = {'options': '-vn'}
    ydl_opts = {'format': 'bestaudio'}
    if not music_data.check_guild() or not music_data.is_playing():
        with yt_dlp.YoutubeDL(ydl_opts) as ydl:
            info = ydl.extract_info(f'https://www.youtube.com/watch?v={id}', download=False)
        URL = info['url']
        music_data.start_music(id, title, self.inter, self.voice_channel)
        self.voice_client.play(source=nextcord.FFmpegPCMAudio(URL, **FFMPEG_OPTIONS), after=lambda e: asyncio.run_coroutine_threadsafe(self.next_play(), self.client.loop))
        return True
    else:
        music_data.add_queue(id, title, self.inter)
        return False


    


    It's My source
my module : yt-dlp

    


    It originally worked well.
How fix ?