Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (69)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (7451)

  • How can I play an MPG file using Electron on windows without converting it ? [closed]

    1er novembre 2024, par Indy Singh

    I am trying to play MPG files in an Electron app on Windows. The files contain mpeg1 encoded video. I am using the video element. I can play MP4 files, but the MPG files do not play. One requirement is to be able to play the video from some arbitrary start time.

    


    Electron uses the Chrome engine to render output. Google Chrome app also cannot play MPG files.

    


    Electron uses ffmpeg.dll to play the video file. As far as I can tell ffmpeg.dll contains the mpeg1 decoder, but the video element does not appear to make use of it.

    


    I know I can convert the video before playing, however conversion takes several minutes and is not an ideal user experience. As a fallback I can convert small segments as needed, which still takes a bit of time, so it is not ideal.

    


    Streaming the video from a server process with on-the-fly conversion is possible, but I believe it may not work well with the need to seek. I could be wrong here.

    


    Any other suggestions would be welcome.

    


    EDIT 1 :
I am developing an Electron App using the programming languages TypeScript, JavaScript and HTML5 and the tools Nodejs and Electron. I did not post a code snippet as I am looking for an approach, not a fix for code. Not sure why this question got flagged as being 'not about programming'.

    


    A Google search does not show many options other than those mentioned below.

    


    EDIT 2 :
Thanks to the suggestion from VC.One I am looking at the JSMPEG library. It does look like it could possibly do the job but with 'numerous limitations'. It also say the other alternative called Broadway is 'huge, compiled with emscripten and quite complicated'

    


    EDIT 3 :
I am now looking hls.js, which I think will likely work for my needs. It integrates well with using the html5 video element. I can use it with on-demand decoding of the MPG MPEG1 video file in small segments.

    


  • Force graphic card or player to play at 25 fps even display is connected at 59.9

    15 novembre 2016, par Rkalkani

    My projector is connected at 1920x1080 59.9

    How I can force a graphic card to give output at 25fps or How I can play 25 fps video smoothly with 59.9 refresh rate.

    I used Blueray player and it is playing video smoothly at a constant rate.

    ( I am using MPV and ffmpeg player to play video on computer. )

  • 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