
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (30)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (4587)
-
Discord bot not playing any audio and immediately terminates once joined channel (Python)
28 novembre 2024, par MrPwnageLegendI am trying to create a small discord bot for me and my friends. Currently, I tried several examples online for a music bot using ffmpeg. I added the path to environment variables as well. I simplified the code to make it easier to debug. Below is the code :


voice_client = await msg.author.voice.channel.connect()
print(voice_client.is_playing())
FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5','options': '-vn'}
voice_client.play(discord.FFmpegPCMAudio(source="test.mp3", **FFMPEG_OPTIONS))



The moment the bot enters the channel, it displays this on the terminal and nothing else happens :

discord.player ffmpeg process 18792 successfully terminated with return code of 2880417800


I originally tried Youtube videos, but that did not work. So, I tried local files, and that did not work as well. Tried bypassing the ffmpeg path using
executable = "C:\\ffmpeg\\ffmpeg.exe"
, still the same error. Is there some other reasons for the error such as firewalls etc ? I have set the intents to all(). Could that be a problem as well ?

-
My discord bot (python) isn't connecting to voice channel
24 juin 2023, par BeanieYiMy discord bot for some reason is not connecting to my voice channel when I type
 !play some url ... My bot is running because I've ran other tests on it. No error messages show up, so I'm lost as to why it's not working. This is the part of the code where it commands to bot to connect


async def play_song(self, ctx):
 """
 Function plays music. Checks if user in voice channel
 """
 if len(self.queue) > 0:
 self.play = True
 url = self.queue[0][0]["source"]

 if self.vc is None or not self.vc.is_connected(): # If not in voice channel
 self.vc = await self.queue[0][1].connect() # Wait until user joins channel
 if self.vc == None: # If user doesn't join channel, quit
 await ctx.send("Could not connect D:")
 return 
 else:
 await self.vc.move_to(self.queue[0][1]) # Moves bot to channel user is in

 self.queue.pop(0) 
 self.vc.play(discord.FfmpegPCMAudio(url, **self.ffmpeg_options), after=lambda e: self.next_song()) 
 else:
 self.play = False



I added the following code below because this was the "new" method for cog, but it didn't yield any results for me. I also made sure my bot had permission on Discord to join channels and talk.


async def setup(bot):
 await bot.add_cog(Event(bot))



-
Adding background audio in FFMPEG, but quieting it if there is sound in another channel
9 septembre 2021, par Connor BellI'm appending several videos together with FFMPEG. Some of these videos have accompanying audio, and some do not.


I'd like to add music in the background, and have found out how to do so from here. However, I'd like the background music to be (let's say 80%) quieter if there is already audio in that video. Note that all videos have a null audio track, so just checking for the existence of an audio track isn't sufficient.


My current process is :


- 

- Take source videos, add a null audio source and upscale (The null audio source is required for ffmpeg-concat to work due to a bug, I think)
- Combine the videos using ffmpeg-concat






Preferably, adding the background music should be the third step, as splitting the background music prior to combining the videos sounds more complex, but I may be wrong.