Recherche avancée

Médias (91)

Autres articles (88)

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

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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (10878)

  • Error when trying to play MP3 in discord VC

    27 mars 2019, par QueenInTheNorth

    I am encountering an error when my discord bot is trying to play an MP3 file in a Voice channel.

    My code :

    if(message.member.voiceChannel){

           const connection = await message.member.voiceChannel.join();
           const dispatcher = connection.playFile('./resources/shamebell.mp3');

           dispatcher.on('finish', () => {
               console.log('Finished playing!');
             });

             dispatcher.destroy(); // end the stream
    }

    The bot encounters an error when trying to play the MP3 file. It joins the Voice Channel that the user is in just fine. The bot should join the VC, play the MP3 file then leave afterwards.

    Error in dispatcher :

    TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string

    I have tried using both the absolute path as well as the relative path to the MP3. FFMPEG is installed and windows PATH set as well as NPM installed "ffmpeg-binaries" : "^3.2.2-3".

    Swapping from connection.playFile('./resources/shamebell.mp3'); to connection.play('./resources/shamebell.mp3'); Gives the error connection.play is not a function at line 14:43

    Any help on resolving this issue will be appreciated :)

  • how to play edited videos in mpv [closed]

    19 avril 2021, par Eswar T

    How to play edited videos (before exporting them) like how we can play in ffplay like here an example in ffplay so can we also play them using MPV if yes please convert this command thank you

    


    ffplay -i 1.mp4 -ss 00:00:30.100 -t 00:00:10 -af volume=2.0,atempo=2.0-vf transpose=0,transpose=0,setpts=1/0.5*PTS,fps=30) 


    


    and using a playlist how can we play multiple edited files like

    


    ffplay -i 1.mp4 -ss 00:00:30.100 -t 00:00:10 -af volume=2.0,atempo=2.0-vf transpose=0,transpose=0,setpts=1/0.5*PTS,fps=30) && ffplay -i 2.mp4 -ss 00:00:30.100 -t 00:00:10 -af volume=2.0,atempo=2.0-vf transpose=0,transpose=0,setpts=1/0.5*PTS,fps=30)


    


  • Discord api, bot play audio but i can't hear it

    5 novembre 2023, par BigMautone

    Just for fun, i'm trying to make a discord bot with python to play music from youtube. I've implemented some basic function and the bot seems to work fine,except that, once I enter the voice channel, the icon lights up and seems to play audio but I can't hear it.

    


    This is the code that I'm calling from the discord command :

    


      @commands.command(name='play')
    async def play(self, ctx, link):
        try:
            await ctx.invoke(self.connect)
            server = ctx.message.guild
            voice_channel = server.voice_client

            async with ctx.typing():
                link_info = await YTManager.yt_search(link)
                filename = link_info['filename']
                stream = link_info['stream_url']
                try:
                    voice_channel.play(discord.FFmpegPCMAudio(source=stream, **ffmpeg_settings))
                    voice_channel.source.volume = 1
                except Exception as e:
                    pprint(f"error: {e}")

            await ctx.send('**Now playing:** {}'.format(filename))
        except:
            await ctx.send("The bot is not connected to a voice channel.")


    


    Ffmpeg is ok, i've added the bin folder to path and I don't get any error in the console.
What could be the problem ?