Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (107)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (11223)

  • avcodec/ralf : Check num_blocks before use

    11 mai 2020, par Michael Niedermayer
    avcodec/ralf : Check num_blocks before use
    

    Fixes : out of array access
    Fixes : 20659/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RALF_fuzzer-5739471895265280

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/ralf.c
  • 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.

    &#xA;

    This is my play command.

    &#xA;

    const { Collector } = require("discord.js");&#xA;const ytdlDiscord = require("ytdl-core-discord");&#xA;//const play = require("../commands/play");&#xA;module.exports = {&#xA;    async play(song, message){&#xA;        const queue = message.client.queue.get(message.guild.id);&#xA;&#xA;        if(!song){&#xA;            setTimeout(function(){&#xA;                if(!queue.connection.dispatcher &amp;&amp; message.guild.me.voice.channel){&#xA;                    queue.channel.leave();&#xA;                    queue.textChannel.send(`**Cadenza** left successfully`).catch(console.error);&#xA;                }&#xA;                else return;&#xA;            },120000);&#xA;            &#xA;            message.client.queue.delete(message.guild.id);&#xA;            return queue.textChannel.send(`**Music Queue Ended**`);&#xA;        }&#xA;        let stream = await ytdlDiscord(song.url,{filter: &#x27;audioonly&#x27;, quality: &#x27;highestaudio&#x27;, highWaterMark: 1&lt;&lt;25});&#xA;        let streamType = song.url.includes("youtube.com") ? "opus" : "ogg/opus";&#xA;        queue.connection.on("disconnect", () => message.client.queue.delete(message.guild.id));&#xA;        const dispatcher = queue.connection&#xA;         .play(stream, {type: streamType, highWaterMark: 1})&#xA;         .on("finish", () => {&#xA;             if(queue.loop){&#xA;                 let last = queue.songs.shift();&#xA;                 queue.songs.push(last);&#xA;                 module.exports.play(queue.songs[0], message);&#xA;             }else{&#xA;             queue.songs.shift();&#xA;             module.exports.play(queue.songs[0], message);&#xA;             }&#xA;&#xA;         })&#xA;         .on("error", (err) => {&#xA;             console.error(err);&#xA;             queue.songs.shift();&#xA;             module.exports.play(queue.songs[0], message);&#xA;         });&#xA;         dispatcher.setVolumeLogarithmic(queue.volume / 100);&#xA;        queue.textChannel.send(`Started Playing **${song.title}**`);&#xA;    }&#xA;};&#xA;

    &#xA;

    seek command

    &#xA;

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

    &#xA;

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

    &#xA;

  • avcodec/ralf : fix undefined shift

    17 août 2019, par Michael Niedermayer
    avcodec/ralf : fix undefined shift
    

    Fixes : left shift of negative value -2
    Fixes : 16145/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_RALF_fuzzer-5146671058518016

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/ralf.c