Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (28)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

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

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (6922)

  • How create with ffmpeg a *.mov file which could be opened in default WMP ?

    22 mai 2016, par xiaose

    How create MOV, QuickTime Movie (.mov) which could be opened in default Windows Media Player ? Actually, smth. like this : http://cdn.online-convert.com/example-file/video/mov/example.mov

    I have files MPEG-1 or MPEG-2 and want to convert it with ffmpeg to the mov. Sure, I can write smth. like this :

    ffmpeg -i in.mpg -level 3.1 -vformat mpeg4 -qscale 1 -f mov out.mov

    ...and this will be Ok. But I need resulting file which will be correct MOV but, may be, without mpeg4 in it and played in WMP without installing any additional codecs

  • discord.py nextcord.py It cant read mp3 audio files

    23 février 2023, par hihihi hihihi

    I'm trying to make my discord bot speak some text, but I can't make it stream the generated mp3 audio file. I'm using Nextcord and FFmpeg.

    


    This is the code I run :

    


    @bot.command(name="bottalk")
async def bottalk(ctx, *args):
    text = " ".join(args)
    user = ctx.message.author
    if user.voice != None:
        try:
            vc = await user.voice.channel.connect()

        except:
            vc = ctx.voice_client   

        sound = gTTS(text=text, lang="en", slow=False)  
        sound.save("please read this.mp3")

        if vc.is_playing():
            vc.stop()

        source = await nextcord.FFmpegOpusAudio.from_probe("please read this.mp3", method="fallback")
        vc.play(source)
    else:
        await ctx.send("join vc")    


    


    When I run the code it generates the mp3 audio file but cannot play the audio file. I get this error :

    


    Ignoring exception in command bottalk:&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\ext\commands\core.py", line 165, in wrapped&#xA;    ret = await coro(*args, **kwargs)&#xA;          ^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File "c:\Users\gmmz5\OneDrive\เดสก์ท็อป\python\qweqwewqeqewqe\hi.py", line 4&#xA;5, in tts&#xA;    source = await nextcord.FFmpegOpusAudio.from_probe("please read this.mp3", method="fallback")&#xA;             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 496, in from_probe&#xA;    return cls(source, bitrate=bitrate, codec=codec, **kwargs)  # type: ignore           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 426, in __init__&#xA;    super().__init__(source, executable=executable, args=args, **subprocess_kwargs)&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 165, in __init__&#xA;    self._process: subprocess.Popen = self._spawn_process(args, **kwargs)     &#xA;                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^     &#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 184, in _spawn_process&#xA;    raise ClientException(executable &#x2B; " was not found.") from None&#xA;nextcord.errors.ClientException: ffmpeg was not found.&#xA;&#xA;The above exception was the direct cause of the following exception:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\ext\commands\bot.py", line 1381, in invoke&#xA;    await ctx.command.invoke(ctx)&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\ext\commands\core.py", line 948, in invoke&#xA;    await injected(*ctx.args, **ctx.kwargs)&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\ext\commands\core.py", line 174, in wrapped&#xA;    raise CommandInvokeError(exc) from exc&#xA;nextcord.ext.commands.errors.CommandInvokeError: Command raised an exception: &#xA;ClientException: ffmpeg was not found.&#xA;Exception ignored in: <function at="at" 0x0000022c43a47ba0="0x0000022c43a47ba0">    &#xA;Traceback (most recent call last):&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 116, in __del__&#xA;    self.cleanup()&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 235, in cleanup&#xA;    self._kill_process()&#xA;  File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 191, in _kill_process&#xA;    proc = self._process&#xA;           ^^^^^^^^^^^^^&#xA;AttributeError: &#x27;FFmpegOpusAudio&#x27; object has no attribute &#x27;_process&#x27;&#xA;</function>

    &#xA;

  • Can't get GCC's -static-libgcc working with DYLIB libraries on Mac OS X

    29 mars 2012, par Synthetix

    I've installed GCC 4.6.3 into a non-system path on a Mac system and it works fine. However, GCC wants to use code from libgcc for all the binaries I compile, and running otool -L shows that these compiled programs look for libgcc_s.1.dylib in GCC's install path. I can override this by passing -static-libgcc, which just compiles the stuff needed into the binary and that's fine. The problem is this only seems to work with executables, not shared libraries. If I use GCC to compile some third-party lib I want to use in one of my programs as a .dylib, these libraries still look for libgcc_s.1.dylib in the local GCC install path even if I specify -static-libgcc ! Needless to say, this is a problem as there's no guarantee that those libraries will find libgcc when run on some other system.

    I tried this with ffmpeg. If I look at config.log, the -static-libgcc is most certainly being used. GCC is just not linking libgcc statically with the resulting dylibs. I even tried the -nostdlib, -nostartfiles and -nodefaultlibs options but they were ignored. Again, I checked config.log and they're definitely there !