Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (74)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (6375)

  • issue with ffmpeg (not loading song ?) - ffmpeg stream : write EPIPE

    15 novembre 2020, par super

    issue : 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
    • 


    


  • NodeJs watch file Chokidar and create Thumbnail with FFMPEG, Code is hanging. Memory jam ?

    30 juillet 2021, par Mert

    I'm trying watch file Chokidar. Mp4 files in Folder. And I'm trying watch folder with create thumnail. But My code is hanging. It's getting stuck. I'm waiting ten min but i didnt get error and my code worked more little. Again, I'm waiting more ten min. But no change anything.

    


    Code :

    


    let fs = require('fs');
var chokidar = require('chokidar');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path)

var counter = 0

var Mywatcher = chokidar.watch('Z:\\WatchFolder', {ignored: /^\./, persistent: true, usePolling: true});
Mywatcher
  .on('add', function(path) {
    worder = '.mp4'
    if(path.includes(worder)){
 
            counter = counter + 1 
            
            console.log('added' + counter)

            ffmpeg({ source: path })
            .on('filenames', (filenames) => {
                console.log('Created file names', filenames);
            })
            .on('end', () => {
                console.log('Job done');
            })
            .on('error', (err) => {
                console.log('Error', err);
            })
            .takeScreenshots({
                filename: counter +'.jpg',
                timemarks: [ 2 ],
             
            }, 'public/images/thumbnail/');
      
    }

    })

  .on('change', function(path) {console.log('File', path, 'has been changed');})



  .on('unlink', function(path) {

  })




  .on('error', function(error) {console.error('Error happened', error);})


    


    First Result : 1300 thumbnail completed. But not yet created. Thumbnail's folder is empty. My code is stuck.

    


    added13023
Created file names [ '13023.jpg' ]
added13024
Created file names [ '13024.jpg' ]
added13025
Created file names [ '13025.jpg' ]
added13026
Created file names [ '13026.jpg' ]
added13027
Created file names [ '13027.jpg' ]
added13028
Created file names [ '13028.jpg' ]
added13029
Created file names [ '13029.jpg' ]
added13030
Created file names [ '13030.jpg' ]
added13031
Created file names [ '13031.jpg' ]
added13032
Created file names [ '13032.jpg' ]
added13033
Created file names [ '13033.jpg' ]
added13034
Created file names [ '13034.jpg' ]
added13035
Created file names [ '13035.jpg' ]
added13036
Created file names [ '13036.jpg' ]


    


    Again I'm trying, i write 'nodemon start' and Result :

    


    Created file names [ '13026.jpg' ]
added13027
Created file names [ '13027.jpg' ]
added13028
Created file names [ '13028.jpg' ]
added13029
Created file names [ '13029.jpg' ]
added13030
Created file names [ '13030.jpg' ]
added13031
Created file names [ '13031.jpg' ]
added13032
Created file names [ '13032.jpg' ]
added13033
Created file names [ '13033.jpg' ]
added13034
Created file names [ '13034.jpg' ]
added13035
Created file names [ '13035.jpg' ]
added13036
Created file names [ '13036.jpg' ]
added13037
Created file names [ '13037.jpg' ]


    


    How can i fix it ? Thanks all. Regards.

    


  • lavfi/select : add scene detection.

    26 mai 2012, par Clément Bœsch

    lavfi/select : add scene detection.