
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (77)
-
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" (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (10522)
-
FFmpeg doesn't play any audio through Discord.py BOT
12 mai 2019, par Lewis HHere is my code for my Discord bot’s play function :
@bot.command()
async def play(ctx, url:str = None): # DOESN'T WORK, DOWNLOADS BUT DOESN'T PLAY
...
ytdl_options = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
}
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] # taking top item from a YT playlist
source = ytdl.prepare_filename(data)
vc.play(discord.FFmpegPCMAudio(source)) #play audio
print(vc.is_playing())
await ctx.send("Now playing: " + data.get('title')) #now playing
asyncio.sleep(3)
print(vc.is_playing())When I call the function, it runs fine and downloads the video from youtube-dl, then sends the message "Now playing : X", but doesn’t play any audio.
I added the two
print(vc.is_playing())
lines and what is returned in the shell is :True
FalseSo clearly it tries to play the song but immediately fails.
There are no exceptions thrown, so I can’t understand why FFmpeg doesn’t want to play the audio.
-
Discord JS dispatcher goes immediately on finish
2 juillet 2021, par JonJonI experienced some issues with my Discord bot. I want to play a mp3-file in a voice channel. But the dispatcher goes immediately on status 'finish' and the song doesn't play. There are no errors. First I thought that ffmpeg might be the problem. But ffmpeg seems to work fine. Then I tried reinstalling nodejs. This didn't work out as well. The code can't be the problem as well, because it worked fine last week.
Has anyone an idea ?
Code :




const Discord = require('discord.js');
const client = new Discord.Client();

client.login('token');

client.on('message', async msg =>{
 if(msg.content === 'play'){
 msg.reply('playing');
 const connection = await msg.member.voice.channel.join();

 const player = connection.play('musik.mp3');

 player.on('finish', () => {
 msg.member.voice.channel.leave();
 });
 }
});







-
FFmpeg - how to set output sample_size
23 décembre 2019, par DennisJTrying to create a simple command line player for .dsf (DSD audio) files, and output to an alsa device that supports up to 24-bit 192 kHz sample rate. The following command almost works and it does play the track. Examining the bold text below, the dsf input file is converted to 24-bit/192 kHz, but the output is then truncated to 16-bit 192 kHz (pcm_s16le i.e, 16 bit little endian).
ffmpeg -i ’01 - Sweet Georgia Brown.dsf’ -f alsa hw:0,0
After displaying the ffmpeg banner and song metadata (tags), here is the result, bold is my emphasis :
Duration : 00:05:14.83, start : 0.000000, bitrate : 9234 kb/s
Stream #0:0 : Audio : flac, 192000 Hz, stereo, s32 (24 bit)
Stream mapping :
Stream #0:0 -> #0:0 (flac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, alsa, to ’hw:0,0’ :Since I can play this and many other tracks at full resolution using another player (foobar2000) it seems there might be an option in the encoder which is part of FFmpeg : Lavf57.83.100 I can find no information in any of the FFmpeg documentation that helps. Tried finding options in FFplay and even guessing using other FFmpeg options like this example.
ffmpeg -sample_fmt s24 -i ’01 - Sweet Georgia Brown.dsf’ -f alsa hw:0,0 ***** same results.I’m stuck. Any suggestions ?
Environment : Linux Mint 19.2, 64-bit, ASUS Xonar STXii sound card.