Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (34)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Personnaliser l’affichage de mon Médiaspip

    27 mai 2013

    Vous pouvez modifier la configuration du squelette afin de personnaliser votre Médiaspip Voir aussi plus d’informations en suivant ce lien
    Comment supprimer le nombre de vues d’affichage d’un média ?
    Administrer > Gestion du squelette > Pages des articles et médias Cocher dans "Informations non affichées sur les pages de médias" les paramètres que vous ne souhaitez pas afficher.
    Comment supprimer le titre de mon Médiaspip dans le bandeau horizontal ?
    Administrer > Gestion du squelette > (...)

Sur d’autres sites (6333)

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


    


  • Flash Media Server Recording Delay

    14 novembre 2011, par Corey

    I have an application where a user can record themselves singing along to a song. Once I receive the NetStream status event 'Record.Start' I start playing an audio file. Once the audio completes, I stop recording. Next, I have a script that runs FFMPEG to combine the recorded video/audio with the same music file. The problem I'm finding is that there is a noticeable delay between the recorded audio and the music. It seems also that this delay depends on network speed as it varies depending on the network. Can I determine this delay through the FMS dynamically ?

  • How can i receive audio from url stream with ffmpeg ?

    1er janvier 2021, par Paulo Sérgio Costa Magalhães

    I'm trying to build an application that plays a song from the url of a live radio, I did include the ffmpeg but it's giving an error, I'm new to c ++ could you help me ?

    


    #include 
#include "ffmpeg.h"

int main(){
   ffmpeg - i https ://s3.free-shoutcast.com/stream/18144 -c copy output.mp3;
}


    


    Error : identifier "ffmpeg" undefined

    


    Reference : How to capture audio streaming with ffmpeg