Recherche avancée

Médias (0)

Mot : - Tags -/latitude

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (50)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8524)

  • If I pass this code in Windows console it works, but when I emulate windows console in node.js code doesn't work, and returns unclear error

    22 décembre 2016, par Maxim Cherevatov

    I have code :

    cmd.get(
       'trimp3  ant.mp3 ant2.mp3 00:00 00:20',
       function(data){
           console.log('the node-cmd cloned dir contains these files :\n\n',data)
       }
    );

    If pass this code in Windows console it works well !
    But, when i emulate windows console in node.js this code not work, and returns unclear mistake :

    [!!] ERROR:  "ffmpeg" �� ����� ����७��� ��� ���譥�
    ��������, �ᯮ��塞�� �ணࠬ��� ��� �������� 䠩���.

    To emulate the use node-cmd.

  • How to seek to a position in a song Discord.js ?

    4 décembre 2020, par hrishit biswas

    I am facing some difficulty with seeking to a specified timestamp in the current song. I have separate files for all my commands. I want to create a seek.js file which takes input a specified time and then passes it to the play.js file(it plays the current song in the queue) but the problem is I cant seem to find a way to how do this.

    


    This is my play command.

    


    const { Collector } = require("discord.js");
const ytdlDiscord = require("ytdl-core-discord");
//const play = require("../commands/play");
module.exports = {
    async play(song, message){
        const queue = message.client.queue.get(message.guild.id);

        if(!song){
            setTimeout(function(){
                if(!queue.connection.dispatcher && message.guild.me.voice.channel){
                    queue.channel.leave();
                    queue.textChannel.send(`**Cadenza** left successfully`).catch(console.error);
                }
                else return;
            },120000);
            
            message.client.queue.delete(message.guild.id);
            return queue.textChannel.send(`**Music Queue Ended**`);
        }
        let stream = await ytdlDiscord(song.url,{filter: 'audioonly', quality: 'highestaudio', highWaterMark: 1<<25});
        let streamType = song.url.includes("youtube.com") ? "opus" : "ogg/opus";
        queue.connection.on("disconnect", () => message.client.queue.delete(message.guild.id));
        const dispatcher = queue.connection
         .play(stream, {type: streamType, highWaterMark: 1})
         .on("finish", () => {
             if(queue.loop){
                 let last = queue.songs.shift();
                 queue.songs.push(last);
                 module.exports.play(queue.songs[0], message);
             }else{
             queue.songs.shift();
             module.exports.play(queue.songs[0], message);
             }

         })
         .on("error", (err) => {
             console.error(err);
             queue.songs.shift();
             module.exports.play(queue.songs[0], message);
         });
         dispatcher.setVolumeLogarithmic(queue.volume / 100);
        queue.textChannel.send(`Started Playing **${song.title}**`);
    }
};


    


    seek command

    


    const { play } = require("../include/play");
function timeConvert(str){
    const t = str.split(':');
    let s = 0, m = 1;
    while(t.length > 0){
        s = +m * parseInt(t.pop(),10);
        m = m * 60;
    }
    return s;
}
module.exports = {
    name: 'seek',
    description: 'Seeks to a certain point in the current track.',
    execute(message,args){
        const queue = message.client.queue.get(message.guild.id);
        if(!queue) return message.channel.send("There is no song playing.").catch(console.error);
        queue.playing = true;
        let time = timeConvert(args[0]);
        if( time > queue.songs[0].duration)
          return message.channel.send(`**Input a valid time**`);
        else{
            let time = timeConvert(args[0]) * 1000;
            #main code here
        }
    }
}


    


    How can I pass the time variable to play() so that the current song seeks to that amount ?

    


  • ffmpeg drawtext same font size and position on all kind of videos

    25 janvier 2018, par Bilal Akmal

    I’m drawing text and an icon on input video which user uploads. I’m able to draw the test and icon both successfully using two separate ffmpeg filter -vf and -filter_complex. But the problem is the output is not consistent for different size and resolution of videos. I mean I need to place the text and icon in top left corner with some padding, but it’s totally different positioned and sized on each video.
    So can you help me how I can calculate the font based on video height and width to make it consistent, I mean the text box should be of same size irrespective of video dimensions.

    Here’s the commands I’m using :

    ffmpeg -i input.mp4 -vf "drawtext=fontfile=OpenSans-Regular.ttf:text=\’LIVE\’:fontcolor=white:fontsize=40:x=50:y=50:box=1:boxcolor=red@0.9:boxborderw=20,format=yuv420p, drawtext=fontfile=OpenSans-Regular.ttf:text=’\ %eif :$1+t:d’:fontcolor=white:fontsize=40:x=195:y=50:box=1:boxcolor=black@0.4:boxborderw=20,format=yuv420p" -c:v libx264 -c:a copy -movflags +faststart output1.mp4 -y

    ffmpeg -i input.mp4 -vf "drawtext=fontfile=OpenSans-Regular.ttf:text=\’LIVE\’:fontcolor=white:fontsize=40:x=50:y=50:box=1:boxcolor=red@0.9:boxborderw=20,format=yuv420p, drawtext=fontfile=OpenSans-Regular.ttf:text=’\ %eif :$1+t:d’:fontcolor=white:fontsize=40:x=195:y=50:box=1:boxcolor=black@0.4:boxborderw=20,format=yuv420p" -c:v libx264 -c:a copy -movflags +faststart output1.mp4 -y
    ffmpeg -i output1.mp4 -i eye.png -filter_complex "[1]lut=a=val*1[a] ;[0][a]overlay=190:48" -pix_fmt yuv420p -c:a copy output2.mp4 -y ;