
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (40)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.
Sur d’autres sites (9477)
-
Discord.py music bot doesn't play next song in queue
10 mai 2019, par Lewis HThis is my code for the bot I’m trying to create, it plays the music fine.
ytdl_options = {
'format': 'bestaudio/best',
'restrictfilenames': True,
'noplaylist': True,
'nocheckcertificate': True,
'quiet':True,
'ignoreerrors': False,
'logtostderr': False,
'no_warnings': True,
'default_search': 'auto',
'source_address': '0.0.0.0' # using ipv4 since ipv6 addresses causes issues sometimes
}
# ffmpeg options
ffmpeg_options= {
'options': '-vn'
}
@bot.command()
async def play(ctx, url:str = None):
queue = {}
channel = ctx.author.voice.channel
if ctx.voice_client is not None:
await ctx.voice_client.move_to(channel)
elif ctx.author.voice and ctx.author.voice.channel:
await channel.connect()
if not url:
await ctx.send("Try adding a URL. e.g. !play https://youtube.com/watch?v=XXXXXXXXX")
if ctx.voice_client is not None:
vc = ctx.voice_client #vc = voice client, retrieving it
ytdl = youtube_dl.YoutubeDL(ytdl_options)
loop = asyncio.get_event_loop()
data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url))
if 'entries' in data:
data = data['entries'][0]
svr_id = ctx.guild.id
if svr_id in queue:
queue[svr_id].append(data)
else:
queue[svr_id] = [data]
await ctx.send(data.get('title') + " added to queue")
source = ytdl.prepare_filename(queue[svr_id][0])
def pop_queue():
if queue[svr_id] != []:
queue[svr_id].pop(0)
data = queue[svr_id][0]
else:
vc.stop()
if not vc.is_playing():
vc.play(discord.FFmpegPCMAudio(source, **ffmpeg_options), after=lambda: pop_queue())The next song downloads and queues it fine, but once the first song finishes, it doesn’t play the next one. I can’t figure out how to make it play after the first song has commenced. I have the
after=
set to remove the top item of the queue, but how do I get it to play again ? Thanks -
avformat/segafilm : drop song and dance, this seems not to do anything anymore since...
7 janvier 2014, par Michael Niedermayeravformat/segafilm : drop song and dance, this seems not to do anything anymore since a long time
Fixes use of uninitialized memory
Partly fixes ; msan_uninit-mem_7fb7d24780d0_2744_R03T.CAK
Found-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by : Michael Niedermayer <michaelni@gmx.at> -
Select song sample rate
22 avril 2022, par ClamarcI have a folder with several mp3's and I needed to separate (copy) all the 4800 hz sample rate files to another folder.


I have a folder "General Audios" and I created another one called "Audios 48000 sample rate"


I'm running the ffprobe command that returns the sample rate value of each song.. but when I try to save the value in a string to be able to use the IF and copy only the ones with 48000 hz, I get a message that the command is a command input ? what is wrong ?


md "C:\Users\%username%\Desktop\Áudios 48000 sample rate"

cd /d "C:\Users\%username%\Desktop\Áudios Gerais"

for %%F IN (*) do (
 ffprobe -i "%%F" -v error -show_entries stream=sample_rate ˆ
 -of default=noprint_wrappers=1:nokey=1 set %%S if %%S==48000 ˆ
 "C:\Users\%username%\Desktop\Áudios 48000 sample rate\%%F"
 )

pause



EDITED :
I have no more code, this is the only one, I run the ffprobe command in a folder and I select the ones that have 48000Hz to copy to another folder, that's all !?!?