
Recherche avancée
Autres articles (66)
-
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
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 (...) -
L’utiliser, en parler, le critiquer
10 avril 2011La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
Une liste de discussion est disponible pour tout échange entre utilisateurs.
Sur d’autres sites (5611)
-
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))



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

-
Convert 2 channel mp4 to each mono wav file using FFMPEG or Python code
30 mai 2024, par Harish AlwalaI am new to audio files and its codecs.


I would like to convert a 2 channel mp4 file to a single mono wav files.


My understanding is a when I say 2 channel, it stores speech coming from each microphone in a separate channel. And when I split the channels to each individual mono wav files, I get speech of each microphone.


My intension here is to get the speech from each channel and convert them to text. This way I can set the name of the speaker based on channel.


I tried with ffmpeg and python code as well, unfortunately I get two files with same content.


Looking at the following details
can someone construct ffmpeg command or python script to convert the 2 channel mp4 file to 2 individual mono wav files.


FFprobe
ffprobe -i Two-Channel.mp4 -show_streams -select_streams a


Result


Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 encoder : Google
 Duration: 00:52:42.19, start: 0.000000, bitrate: 421 kb/s
 Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 322 kb/s, 25 fps, 25 tbr, 12800 tbn (default)
 Metadata:
 handler_name : ISO Media file produced by Google Inc.
 vendor_id : [0][0][0][0]
 Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 96 kb/s (default)
 Metadata:
 handler_name : ISO Media file produced by Google Inc.
 vendor_id : [0][0][0][0]
[STREAM]
index=1
codec_name=aac
codec_long_name=AAC (Advanced Audio Coding)
profile=LC
codec_type=audio
codec_tag_string=mp4a
codec_tag=0x6134706d
sample_fmt=fltp
sample_rate=44100
channels=2
channel_layout=stereo
bits_per_sample=0
initial_padding=0
id=0x2
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/44100
start_pts=0
start_time=0.000000
duration_ts=139452416
duration=3162.186304
bit_rate=96000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=136184
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=16
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
TAG:handler_name=ISO Media file produced by Google Inc.
TAG:vendor_id=[0][0][0][0]
[/STREAM] 



FFmpeg command


ffmpeg -i Two-Channel.mp4 -filter_complex "pan=mono|c0=0c0" left_channel.wav


python code
using FFPMEG I converted mp4 to wav and then tried below code