
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (28)
-
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe 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, parMediaSPIP 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 2011Si 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 xiaoseHow 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 hihihiI'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:
Traceback (most recent call last):
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\ext\commands\core.py", line 165, in wrapped
 ret = await coro(*args, **kwargs)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "c:\Users\gmmz5\OneDrive\เดสก์ท็อป\python\qweqwewqeqewqe\hi.py", line 4
5, in tts
 source = await nextcord.FFmpegOpusAudio.from_probe("please read this.mp3", method="fallback")
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 496, in from_probe
 return cls(source, bitrate=bitrate, codec=codec, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 426, in __init__
 super().__init__(source, executable=executable, args=args, **subprocess_kwargs)
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 165, in __init__
 self._process: subprocess.Popen = self._spawn_process(args, **kwargs) 
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 184, in _spawn_process
 raise ClientException(executable + " was not found.") from None
nextcord.errors.ClientException: ffmpeg was not found.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\ext\commands\bot.py", line 1381, in invoke
 await ctx.command.invoke(ctx)
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\ext\commands\core.py", line 948, in invoke
 await injected(*ctx.args, **ctx.kwargs)
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\ext\commands\core.py", line 174, in wrapped
 raise CommandInvokeError(exc) from exc
nextcord.ext.commands.errors.CommandInvokeError: Command raised an exception: 
ClientException: ffmpeg was not found.
Exception ignored in: <function at="at" 0x0000022c43a47ba0="0x0000022c43a47ba0"> 
Traceback (most recent call last):
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 116, in __del__
 self.cleanup()
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 235, in cleanup
 self._kill_process()
 File "C:\Users\gmmz5\AppData\Local\Programs\Python\Python311\Lib\site-packages\nextcord\player.py", line 191, in _kill_process
 proc = self._process
 ^^^^^^^^^^^^^
AttributeError: 'FFmpegOpusAudio' object has no attribute '_process'
</function>


-
Can't get GCC's -static-libgcc working with DYLIB libraries on Mac OS X
29 mars 2012, par SynthetixI'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 !