Recherche avancée

Médias (1)

Mot : - Tags -/publishing

Autres articles (88)

  • 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 (14788)

  • 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 How to join the audio of one song into the instrumental of another song

    28 mai 2020, par Patrice Andala

    The Problem :

    



    So I am creating an android app where people can upload music and I want people to be able to take the vocals of one song and the instrumental from another song and merge them to create a different song, and I think the android FFMPEG library is the best way to accomplish this.

    



    What I've been able to do :

    



    1.) I have been able to get the instrumental from a song using this command : -i audio1.mp3 -af pan='stereo|c0=c0|c1=-1*c1' -ac 1 output.mp3But the job isn't so good, since I can still hear some audio in the background and not all the audio is removed.

    



    2)I've been able to join two audio files using the command -y -i audio1.mp3 -i audio2.mp3 -filter_complex '[0:0][1:0] amix=inputs=2:duration=longest' -c:a libmp3lame output.mp3

    



    What I need

    



    1) I need to be able to strip just the vocals of a song. Is there an FFMPEG command to do this ?

    



    2)I need a better command to get me the instrumental of the song, since the one I'm using is not goood enough.

    



    3) I need a command that will help me determine the starting point of a song in an instrumental, so that I know where to place the new vocals when I finally merge them.

    



    4) How to get the bpm of an audio file with ffmpeg, since I know songs mix well when their bmp is almost similar

    



    Any help in any of these areas is greatly appreciated.

    


  • How can I debug this rtmp stream ? It wont play on Vlc, and logs show no error

    12 avril 2020, par SquirrelSenpai

    I am creating a rtmp stream using FFMPEG and sending the data to local NGINX server with the RTMP module.

    



    When playing the stream in VLC I am unable to hear any music. Have I missed something ?

    



    No FFMPEG errors according to logs

    



    fmpeg -hide_banner -loglevel warning -i http://x.x.x.x:8138 -f mp3 rtmp://localhost/live


    



    To test VLC >> Open Network Stream >> rtmp ://localhost/live

    



    Nginx.conf

    



    worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;

events {
        worker_connections 768;
        # multi_accept on;
}

rtmp_auto_push on;

rtmp{

        server{

                listen 1935;

                application live {

                        # enable live streaming
                        live on;
                        record off;

                        # publish only from localhost
                        allow publish all;
                        allow play all;

                }

        }

}