Recherche avancée

Médias (91)

Autres articles (101)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (8110)

  • ffmpeg : Extract unknown data stream from video container

    23 juillet 2020, par Pikkostack

    I have a .MOV container which contains the following tracks :

    


    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 100619 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
  creation_time   : 2020-07-21T22:48:24.000000Z
  handler_name    : DJI.AVC
  encoder         : AVC encoder
Stream #0:1(eng): Data: none (priv / 0x76697270), 87 kb/s
Metadata:
  creation_time   : 2020-07-21T22:48:24.000000Z
  handler_name    : DJI.Meta
Stream #0:2(eng): Subtitle: mov_text (text / 0x74786574), 2 kb/s (default)
Metadata:
  creation_time   : 2020-07-21T22:48:24.000000Z
  handler_name    : DJI.Subtitle


    


    As you can see, stream #0:1, called DJI.meta, is of an unknown data format. I just want to extract the raw data of this stream to a file. So that is the ffmpeg command I tried :

    


    ffmpeg -i .\DJI_0001.MOV -map 0:1 metadata


    


    But using this command results in the following error :

    


    Unable to find a suitable output format for 'metadata'
metadata: Invalid argument


    


    How can I tell ffmpeg that the data should not be formated, so that only the raw data is extracted ?

    


  • Discord bot returning odd error message and not playing sound

    26 février 2020, par Ravenr_

    I am attempting to create a function of my discord bot that will join your voice channel then play something from youtube as specified in the command

    i.e. $play <youtube link="link"></youtube>

    The problem is that my bot joins the voice channel but doesn’t play any sound and outputs an error to the console that I dont know how to fix

    My Code :

    const ytdl = require("ytdl-core");
    module.exports = {
       name: 'play',
       description: 'initiates music methods of the bot',
       execute(msg, args){
           var servers = {};

           function play(connection, msg){
               var server = servers[msg.guild.id];

               server.dispatcher = connection.playStream(ytdl(server.queue[0], {filter: "audioonly"}));
               server.queue.shift();

               server.dispatcher.on("end", function(){
                   if(server.queue[0]){
                       play(connection, msg);
                   }else{
                       connection.disconnect();
                   }
               });


           }
           if(!args[1]){
               return msg.channel.send("you need to provide a link");
           }
           if(!msg.member.voiceChannel){
               return msg.channel.send("You must be in a voice channel to use this feature");
           }
           if(!servers[msg.guild.id]) servers[msg.guild.id] = {
               queue: []
           }
           var server = servers[msg.guild.id];
           server.queue.push(args[1]);
           if(!msg.guild.voiceConnection) msg.member.voiceChannel.join().then(function(connection){
               play(connection, msg);
           })
       }
    }

    The Error :

    2020-02-26T16:31:59.458215+00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received an instance of Object
    2020-02-26T16:31:59.458223+00:00 app[worker.1]:     at validateString (internal/validators.js:117:11)
    2020-02-26T16:31:59.458224+00:00 app[worker.1]:     at normalizeSpawnArguments (child_process.js:406:3)
    2020-02-26T16:31:59.458224+00:00 app[worker.1]:     at Object.spawn (child_process.js:542:16)
    2020-02-26T16:31:59.458225+00:00 app[worker.1]:     at new FfmpegProcess (/app/node_modules/prism-media/src/transcoders/ffmpeg/FfmpegProcess.js:14:33)
    2020-02-26T16:31:59.458225+00:00 app[worker.1]:     at FfmpegTranscoder.transcode (/app/node_modules/prism-media/src/transcoders/ffmpeg/Ffmpeg.js:34:18)
    2020-02-26T16:31:59.458226+00:00 app[worker.1]:     at MediaTranscoder.transcode (/app/node_modules/prism-media/src/transcoders/MediaTranscoder.js:27:31)
    2020-02-26T16:31:59.458226+00:00 app[worker.1]:     at Prism.transcode (/app/node_modules/prism-media/src/Prism.js:13:28)
    2020-02-26T16:31:59.458227+00:00 app[worker.1]:     at AudioPlayer.playUnknownStream (/app/node_modules/discord.js/src/client/voice/player/AudioPlayer.js:97:35)
    2020-02-26T16:31:59.458231+00:00 app[worker.1]:     at VoiceConnection.playStream (/app/node_modules/discord.js/src/client/voice/VoiceConnection.js:478:24)
    2020-02-26T16:31:59.458232+00:00 app[worker.1]:     at play (/app/commands/play.js:11:44)

    for reference these are the links I tested it with 1 & 2

    I’m not sure how to make queue[0] a string, which is what I assume the problem is.

    I was thinking of using a toString() i.e. server.queue[0].toString() but I think that will just return the memory address.

    If anyone can help me know what the issue is or how to fix it, that would be great.

  • Which directory should i put FFmpeg ? [duplicate]

    25 juillet 2020, par Panda Gaming23

    I am making a discord bot and I get the following error

    &#xA;

    node:4) UnhandledPromiseRejectionWarning: Error: FFmpeg/avconv not found!&#xA;&#xA;2020-07-25T01:00:13.991518&#x2B;00:00 app[worker.1]:     at Function.getInfo (/app/node_modules/prism-media/src/core/FFmpeg.js:130:11)&#xA;&#xA;2020-07-25T01:00:13.991519&#x2B;00:00 app[worker.1]:     at Function.create (/app/node_modules/prism-media/src/core/FFmpeg.js:143:38)&#xA;&#xA;2020-07-25T01:00:13.991519&#x2B;00:00 app[worker.1]:     at new FFmpeg (/app/node_modules/prism-media/src/core/FFmpeg.js:44:27)&#xA;&#xA;2020-07-25T01:00:13.991520&#x2B;00:00 app[worker.1]:     at AudioPlayer.playUnknown (/app/node_modules/discord.js/src/client/voice/player/BasePlayer.js:47:20)&#xA;&#xA;2020-07-25T01:00:13.991520&#x2B;00:00 app[worker.1]:     at VoiceConnection.play (/app/node_modules/discord.js/src/client/voice/util/PlayInterface.js:71:28)&#xA;&#xA;2020-07-25T01:00:13.991522&#x2B;00:00 app[worker.1]:     at play (/app/commands/play.js:14:34)&#xA;&#xA;2020-07-25T01:00:13.991522&#x2B;00:00 app[worker.1]:     at /app/commands/play.js:42:5&#xA;&#xA;2020-07-25T01:00:13.991522&#x2B;00:00 app[worker.1]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)&#xA;&#xA;2020-07-25T01:00:13.991629&#x2B;00:00 app[worker.1]: (node:4) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)&#xA;&#xA;

    &#xA;

    Here is the code

    &#xA;

    const ytdl = require("ytdl-core");&#xA;const Discord = require("discord.js");&#xA;&#xA;var servers = {};&#xA;&#xA;module.exports = {&#xA;  name: "play",&#xA;  description: "this is a music play command!",&#xA;  execute(message, args) {&#xA;  &#xA;  function play(connection, message) {&#xA;        var server = servers[message.guild.id];&#xA;        &#xA;        server.dispatcher = connection.play(ytdl(server.queue[0], {filter: "audioonly"}));&#xA;        &#xA;        server.queue.shift();&#xA;        &#xA;        server.dispatcher.on("end", function () {&#xA;            if(server.queue[0]){&#xA;                play(connection, message);&#xA;            }&#xA;            else {connection.disconnect();}&#xA;        })&#xA;    }&#xA;    if (!args[0]) {&#xA;      message.channel.send("you need to provide a link!");&#xA;      return;&#xA;    }&#xA;&#xA;    if (!message.member.voice.channel) {&#xA;      message.channel.send("you must be in ||a|| voice channel to play the bot!");&#xA;      return;&#xA;    }&#xA;&#xA;    if (!servers[message.guild.id]) servers[message.guild.id] = { queue: [] };&#xA;    &#xA;    var server = servers[message.guild.id];&#xA;    &#xA;    server.queue.push(args[0]);&#xA;     &#xA;    if (!message.member.voice.connection) message.member.voice.channel.join().then(function(connection) {&#xA;    play(connection, message);&#xA;    })&#xA;  },&#xA;};&#xA;

    &#xA;

    I would like to know which directory I should put FFmpeg.

    &#xA;

    I would also like to know if the FFmpeg executable has to be in a folder or compressed or if i can just place the executable in a certain directory

    &#xA;

    I am hosting my bot using Heroku on a Mac using Discord.js V12

    &#xA;

    Please help.

    &#xA;

    Thanks !

    &#xA;