
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (48)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (6964)
-
Evolution #2923 : Remplacement d’un document et date du document
21 mars 2013, par Fil UpIncidemment, je crois qu’il faudrait de temps en temps vérifier la conformité de ce qu’on a dans spip_documents avec ce qui se trouve sur le disque : taille et date du fichier ; ce qui permettrait de remplacer un doc par FTP en gardant des méta-données à (...)
-
avcodec/loco : rotate other planes too for non-power of 2 widths
11 septembre 2018, par Paul B Mahol -
issue with ffmpeg (not loading song ?) - ffmpeg stream : write EPIPE
15 novembre 2020, par superissue : with some songs that i play through the
StreamDispatcher
from the discord.js module (seems to be ones that have silences at the beginning), the dispatcher will almost immediately finish and throw an error. i use the ffmpeg-static module.

from what i've seen, these are the two errors that i'm receiving from calling the "debug" and "error" events of the dispatcher


Error: ffmpeg stream: write EPIPE


Error [ERR_STREAM_DESTROYED]: ffmpeg stream: Cannot call write after a stream was destroyed


reproducible code sample (requires ytdl-core) :


/**
* @param {Discord.VoiceConnection} connection 
* @param {String} url 
*/
async function run(connection, url) // assuming these two variables aren't null
{
 const video = ytdl(url, { highWaterMark: 5242880 });
 video.on("error", (err) => console.log(err));
 let dispatcher = connection.play(video);
 dispatcher.on("finish", () => console.log("finished"));
 break;
}
// recommended url: https://www.youtube.com/watch?v=Auk1oVI2Icw
// (this is one i've been using to test this issue)



original code from my project plus some comments from guiding :


async play() // this is my function for playing music on the bot
{
 if (this.queue.length === 0) return;
 if (!this.guild.me.voice || !this.guild.me.voice.channel) return;
 let connection = this.guild.me.voice.connection;
 if (!connection) return;
 if (connection.dispatcher) return;
 let track = this.queue[0];
 let channel = this.guild.channels.cache.get(track.channelID);
 switch (track.type)
 {
 //case "soundcloud" omitted
 case "youtube":
 {
 const video = ytdl(track.url, { highWaterMark: 5242880 });
 video.on("error", (err) => console.log(err));
 channel.send(`playing: **${track.name}** // requester: **${track.requester.tag}**`);
 let dispatcher = connection.play(video); // dispatcher will begin
 dispatcher.setVolume(this.volume);
 dispatcher.on("finish", () => this.finish()); // almost immediately the following will be called
 // fyi: there isn't anything special in the function called, just some code to shift the queue
 break;
 }
 }
}



details :


- 

- discord.js version : 12.4.1
- node.js version : v12.18.3
- operating system : windows 10