Recherche avancée

Médias (91)

Autres articles (6)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (3050)

  • lavfi/opencl : add ff_opencl_print_const_matrix_3x3()

    22 janvier 2019, par Ruiling Song
    lavfi/opencl : add ff_opencl_print_const_matrix_3x3()
    

    This is used to print a 3x3 matrix into a part of OpenCL
    source code.

    Signed-off-by : Ruiling Song <ruiling.song@intel.com>

    • [DH] libavfilter/opencl.c
    • [DH] libavfilter/opencl.h
  • ffmpeg - stream_loop mp3 + looping video (per track)

    5 mars 2023, par cYberSport91

    I'm using ffmpeg to create a livestream video playlist of a folder of mp3s and a folder of videos.

    &#xA;&#xA;

    I'd like everytime a new song comes on a new video loops until the next song.

    &#xA;&#xA;

    Initially I was using live-stream-radio which is perfect except how it's handled is after every track a new ffmpeg stream loop is initialized. And in a lot of clients this issues a stop command, and there's "dead space" between.

    &#xA;&#xA;

    My attempt was when creating the gif playlist text file (they were gifs but I converted to mp4), I set the duration for the duration of the corresponding track. The problem is the video plays once, and then freezes on the final frame until the next track.

    &#xA;&#xA;

    rm music.txt&#xA;rm gifs.txt&#xA;printf "ffconcat version 1.0\n" >> gifs.txt&#xA;printf "ffconcat version 1.0\n" >> music.txt&#xA;for i in {1..9}; do&#xA;  printf "file &#x27;mp3/00%s.mp3&#x27;\n" $i >> music.txt&#xA;done&#xA;&#xA;for i in {1..9}; do&#xA;  DURATION=$(ffmpeg -i mp3/00$i.mp3 2>&amp;1 | awk &#x27;/Duration/ { print substr($2,0,length($2)-1) }&#x27;)&#xA;  printf "file &#x27;gif/00%s.mp4&#x27;\nduration %s\n" $i $DURATION >> gifs.txt&#xA;done&#xA;&#xA;ffmpeg \&#xA;    -stream_loop -1 \&#xA;    -i gifs.txt \&#xA;    -i music.txt \&#xA;    -vcodec libx264 \&#xA;    -f flv "$URL"&#xA;

    &#xA;&#xA;

    Any ideas here would be great.

    &#xA;

  • "Cannot read property 'url' of undefined" even though it's already defined

    28 novembre 2020, par Levi Stancz

    I'm making a Discord music Bot and I'm having trouble with an error saying

    &#xA;

    TypeError: Cannot read property &#x27;url&#x27; of undefined&#xA;

    &#xA;

    I tried console logging it and it showed me the url, so I don't understand what is the problem with my code.

    &#xA;

    Here's my code :

    &#xA;

    //musicBOT&#xA;const Discord = require(&#x27;discord.js&#x27;);&#xA;const client = new Discord.Client();&#xA;const ytdl = require(&#x27;ytdl-core&#x27;);&#xA;const mcPrefix = &#x27;.&#x27;;&#xA;&#xA;const queue = new Map();&#xA;&#xA;client.on(&#x27;ready&#x27;, () => console.log(&#x27;Music bot ready!&#x27;));&#xA;&#xA;client.on(&#x27;message&#x27;, async message => {&#xA;    if(message.author.bot) return;&#xA;    if(!message.content.startsWith(mcPrefix)) return;&#xA;&#xA;    const args = message.content.substring(mcPrefix.length).split(" ");&#xA;    const serverQueue = queue.get(message.guild.id);&#xA;&#xA;    if(message.content.startsWith(`${mcPrefix}play`)) {&#xA;&#xA;        const voiceChannel = message.member.voice.channel;&#xA;        if(!voiceChannel) return message.channel.send("Hang-szob&#xE1;ban kell lenned zenelej&#xE1;tsz&#xE1;shoz.");&#xA;        const permissions = voiceChannel.permissionsFor(message.client.user);&#xA;        if(!permissions.has(&#x27;CONNECT&#x27;)) return message.channel.send("Nincs jogosults&#xE1;gom csatlakozni a hangszob&#xE1;hoz.");&#xA;        if(!permissions.has(&#x27;SPEAK&#x27;)) return message.channel.send("Nincs jogosults&#xE1;gom megsz&#xF3;lalni ebben a hangszob&#xE1;ban.");&#xA;&#xA;        const songInfo = await ytdl.getInfo(args[1])&#xA;        const song = {&#xA;            title: songInfo.title,&#xA;            url: songInfo.videoDetails.video_url&#xA;        }&#xA;&#xA;        if(!serverQueue) {&#xA;            const queueConstruct = {&#xA;                textChannel: message.channel,&#xA;                voiceChannel: voiceChannel,&#xA;                connection: null,&#xA;                songs: [],&#xA;                volume: 5,&#xA;                playing: true&#xA;            }&#xA;            queue.set(message.guild.id, queueConstruct)&#xA;&#xA;            queueConstruct.songs.push(song)&#xA;&#xA;            try{&#xA;                var connection = await voiceChannel.join();&#xA;                message.channel.send(`${song.title} lej&#xE1;tsz&#xE1;sa.`)&#xA;                queueConstruct.connection = connection&#xA;                play(message.guild, queueConstruct.songs[0])&#xA;            }catch(e){&#xA;                console.log(`Hiba csatlakoz&#xE1;s k&#xF6;zben itt: ${e}`);&#xA;                queue.delete(message.guild.id)&#xA;                return message.channel.send(`Hiba volt a csatlakoz&#xE1;s k&#xF6;zben itt: ${e}`)&#xA;            }&#xA;        } else{&#xA;            serverQueue.songs.push(song)&#xA;            return message.channel.send(`**${song.title}** hozz&#xE1;adva a lej&#xE1;tsz&#xE1;si list&#xE1;hoz.`)&#xA;        }&#xA;        return undefined&#xA;        &#xA;&#xA;        &#xA;    }else if (message.content.startsWith(`${mcPrefix}stop`)) {&#xA;        if(!message.member.voice.channel) return message.channel.send("Hang-szob&#xE1;ban kell lenned ahhoz, hogy le&#xE1;ll&#xED;tsd a zen&#xE9;t.")&#xA;        if(!serverQueue) return message.channel.send("There is nothing playing")&#xA;        serverQueue.songs= []&#xA;        serverQueue.connection.dispatcher.end()&#xA;        message.channel.send("Sikeresen meg&#xE1;lltottad a zen&#xE9;t.")&#xA;        return undefined&#xA;    }else if(message.content.startsWith(`${mcPrefix}skip`)){&#xA;        if(!message.member.voice.channel) return message.channel.send("Hang-szob&#xE1;ban kell lenned a skip parancshoz.")&#xA;        if(!serverQueue) return message.channel.send("There is nothing playing")&#xA;        serverQueue.connection.dispatcher.end()&#xA;        message.channel.send("Zene tov&#xE1;bbl&#xE9;ptetve.")&#xA;        message.channel.send(`${song.title} j&#xE1;tsz&#xE1;sa.`)&#xA;        &#xA;        return undefined&#xA;    }&#xA;&#xA;    function play(guild, song) {&#xA;        const serverQueue = queue.get(guild.id)&#xA;    &#xA;        if(!serverQueue.songs){&#xA;            serverQueue.voiceChannel.leave()&#xA;            queue.delete(guild.id)&#xA;            return&#xA;        }&#xA;    &#xA;        const dispatcher = serverQueue.connection.play(ytdl(song.url))&#xA;            .on(&#x27;finish&#x27;, () => {&#xA;                serverQueue.songs.shift()&#xA;                play(guild, serverQueue.songs[0])&#xA;            })&#xA;            .on(&#x27;error&#x27;, error => {&#xA;                console.log(error)&#xA;            })&#xA;            dispatcher.setVolumeLogarithmic(serverQueue.volume / 5)&#xA;    }&#xA;&#xA;})&#xA;//musicBOT&#xA;

    &#xA;

    and here is the full error :

    &#xA;

    const dispatcher = serverQueue.connection.play(ytdl(songInfo.url))&#xA;                                                                     ^&#xA;TypeError: Cannot read property &#x27;url&#x27; of undefined&#xA;    at play (C:\Users\Levi\Desktop\Discord BOT Javascript\bot.js:97:70)&#xA;    at StreamDispatcher.<anonymous> (C:\Users\Levi\Desktop\Discord BOT Javascript\bot.js:100:17)&#xA;    at StreamDispatcher.emit (node:events:388:22)&#xA;    at finish (node:internal/streams/writable:734:10)&#xA;    at processTicksAndRejections (node:internal/process/task_queues:80:21)&#xA;</anonymous>

    &#xA;

    I started searching on the internet but found nothing about it, I guess my basic javascript knowledge is just not enough.

    &#xA;