Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (85)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

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

  • TypeError : source must be an AudioSource not FFmpegOpusAudio

    9 juin 2024, par salice
    async def play(ctx, *, link):
    try:
        voice_client = await ctx.author.voice.channel.connect()
        voice_clients[voice_client.guild.id] = voice_client
    except Exception as e:
        print(e)
    if 1==1:
        if youtube_base_url not in link:
            query_string = urllib.parse.urlencode({
                'search_query': link
            })

            content = urllib.request.urlopen(
                youtube_results_url + query_string
            )

            search_results = re.findall(r'/watch\?v=(.{11})', content.read().decode())

            link = youtube_watch_url + search_results[0]

        loop = asyncio.get_event_loop()
        data = await loop.run_in_executor(None, lambda: ytdl.extract_info(link, download=False))

        song = data['url']
        player = discord.FFmpegOpusAudio(song, **ffmpeg_options)

        voice_clients[ctx.guild.id].play(player, after=lambda e: asyncio.run_coroutine_threadsafe(play_next(ctx), bot.loop))


    


    ffmpeg installed and added in PATH
ffmpeg lib for python added

    


    I tried other variations of ffmpeg(like FFmpegPCMAudio) but this didn't solve the problem. I also tried to just copy-paste(Someone else's code that performs the same functions), which also did not give anything. I think the problem is not in the code.

    


    Traceback :

    


    Traceback (most recent call last):
  File "c:\Users\Saliceterik\AppData\Local\Programs\Python\Python310\lib\site-packages\disnake\ext\commands\core.py", line 173, in wrapped
    ret = await coro(*args, **kwargs)
  File "C:\Users\Saliceterik\Desktop\snackerbot\launch_serviceTyan_s-upd.py", line 122, in play
    voice_clients[ctx.guild.id].play(player, after=lambda e: asyncio.run_coroutine_threadsafe(play_next(ctx), bot.loop))    
  File "c:\Users\Saliceterik\AppData\Local\Programs\Python\Python310\lib\site-packages\disnake\voice_client.py", line 583, in play
    raise TypeError(f"source must be an AudioSource not {source.__class__.__name__}")
TypeError: source must be an AudioSource not FFmpegOpusAudio```


    


  • How can i capture microphone stream and change with ffmpeg ?

    23 janvier 2020, par Emre Erol

    I am using ffmpeg for chancing wav file with below code on python ;

    song = subprocess.Popen(["ffmpeg", "-i", sys.argv[1], "-af", "asetrate=22050,aresample=44100,atempo=2", "-f", "wav", "pipe:1"],stdout=subprocess.PIPE)

    But i want to send microphone stream to this subprocess. How can i change sys.argv[1] to microphone stream data ?

    I am using pyaudoio library for capturing sound in python.

  • avfilter/vf_gblur : add x86 SIMD optimizations

    15 mai 2019, par Ruiling Song
    avfilter/vf_gblur : add x86 SIMD optimizations
    

    The horizontal pass get 2x performance with the patch
    under single thread.

    Tested overall performance using the command(avx2 enabled) :
    ./ffmpeg -i 1080p.mp4 -vf gblur -f null /dev/null
    ./ffmpeg -i 1080p.mp4 -vf gblur=threads=1 -f null /dev/null
    For single thread, the fps improves from 43 to 60, about 40%.
    For multi-thread, the fps improves from 110 to 130, about 20%.

    Signed-off-by : Ruiling Song <ruiling.song@intel.com>

    • [DH] libavfilter/gblur.h
    • [DH] libavfilter/vf_gblur.c
    • [DH] libavfilter/x86/Makefile
    • [DH] libavfilter/x86/vf_gblur.asm
    • [DH] libavfilter/x86/vf_gblur_init.c