Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (77)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (7490)

  • 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

    


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

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