Recherche avancée

Médias (91)

Autres articles (71)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (7079)

  • Revision 4220 : La gestion des champs extras fonctionne (au moins pour les articles ... à ...

    25 octobre 2010, par kent1 — Log

    La gestion des champs extras fonctionne (au moins pour les articles ... à tester pour le reste)

  • When I try to play my Music Discord Bot it doesn't play music

    1er juin 2020, par EthanDevelops

    When I try to play my Music Discord Bot it doesn't play music. It uses ytdl-core and ffmpeg&#xA;My code is :

    &#xA;&#xA;

    const Discord = require(&#x27;discord.js&#x27;);&#xA;const bot = new Discord.Client&#xA;&#xA;const ytdl = require("ytdl-core")&#xA;&#xA;&#xA;const token = &#x27;API TOKEN&#x27;&#xA;&#xA;const PREFIX = &#x27;?&#x27;;&#xA;&#xA;var version = &#x27;1.2&#x27;;&#xA;&#xA;var servers = {};&#xA;&#xA;bot.on(&#x27;ready&#x27;, () =>{&#xA;    console.log(&#x27;This bot is online!&#x27; &#x2B; version);&#xA;})&#xA;&#xA;bot.on(&#x27;message&#x27;, message => {&#xA;&#xA;    let args = message.content.substring(PREFIX.length).split(" ");&#xA;&#xA;    switch(args[0]){&#xA;        case &#x27;play&#x27;:&#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;                    }else {&#xA;                        connection.disconnect();&#xA;                    }&#xA;                });&#xA;&#xA;&#xA;&#xA;            }&#xA;&#xA;&#xA;&#xA;            if(!args[1]){&#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] = {&#xA;                queue: []&#xA;            }&#xA;&#xA;            var server = servers[message.guild.id];&#xA;&#xA;            server.queue.push(args[1]);&#xA;&#xA;            if(!message.guild.voice) message.member.voice.channel.join().then(function(connection){&#xA;                play(connection, message);&#xA;            })&#xA;&#xA;        break;&#xA;    }&#xA;&#xA;&#xA;&#xA;    });&#xA;&#xA;&#xA;    bot.login(token);&#xA;

    &#xA;&#xA;

    Whenever I try to play a song this error happens :

    &#xA;&#xA;

    &#xA;

    (node:5180) UnhandledPromiseRejectionWarning : Error : FFmpeg/avconv not&#xA; found !&#xA; at Function.getInfo (C :\Users\picar\Desktop\DiscordMusicBot\node_modules\prism-media\src\core\FFmpeg.js:130:11)&#xA; at Function.create (C :\Users\picar\Desktop\DiscordMusicBot\node_modules\prism-media\src\core\FFmpeg.js:143:38)&#xA; at new FFmpeg (C :\Users\picar\Desktop\DiscordMusicBot\node_modules\prism-media\src\core\FFmpeg.js:44:27)&#xA; at AudioPlayer.playUnknown (C :\Users\picar\Desktop\DiscordMusicBot\node_modules\discord.js\src\client\voice\player\BasePlayer.js:47:20)&#xA; at VoiceConnection.play (C :\Users\picar\Desktop\DiscordMusicBot\node_modules\discord.js\src\client\voice\util\PlayInterface.js:71:28)&#xA; at play (C :\Users\picar\Desktop\DiscordMusicBot\index.js:29:48)&#xA; at C :\Users\picar\Desktop\DiscordMusicBot\index.js:66:17&#xA; at processTicksAndRejections (internal/process/task_queues.js:97:5)&#xA; (node:5180) UnhandledPromiseRejectionWarning : Unhandled promise rejection. This error originated either by throwing inside of an async&#xA; function without a catch block, or by rejecting a promise which was&#xA; not handled with .catch(). To terminate the node process on unhandled&#xA; promise rejection, use the CLI flag --unhandled-rejections=strict&#xA; (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode).&#xA; (rejection id : 1)&#xA; (node:5180) [DEP0018] DeprecationWarning : Unhandled promise rejections are deprecated. In the future, promise rejections that are&#xA; not handled will terminate the Node.js process with a non-zero exit&#xA; code

    &#xA;

    &#xA;&#xA;

    I'm getting very frustrated as the tutorial I'm watching is using a different version of everything !!! Please help.

    &#xA;

  • How do I fade out the edge of a video with ffmpeg ?

    11 décembre 2020, par Jared

    I have a transparent .mov and I want to "fade out" only one edge of the video into transparency using ffmpeg.

    &#xA;

    My video is transparent 1000x1000 (black is transparent) :

    &#xA;&#xA;

    I am trying this command :

    &#xA;

     ffmpeg -i movie.mov -b:v 700K -filter_complex "[0]split[v0][v1];[v0]format=yuva420p,geq=r=0:g=0:b=0:a=255*(Y/H),scale=w=1*iw:h=200[fg];[v1][fg]overlay=0:800:shortest=1" converted.mov&#xA;

    &#xA;

    This half works as the image has the gradient fade out but loses all transparency :

    &#xA;&#xA;

    What am I doing wrong ?

    &#xA;

    Full output log of command :

    &#xA;

    ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200523&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;movie_014.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 0&#xA;    compatible_brands: qt&#xA;    creation_time   : 2020-12-10T04:36:09.000000Z&#xA;  Duration: 00:00:10.03, start: 0.000000, bitrate: 142307 kb/s&#xA;    Stream #0:0(und): Video: prores (XQ) (ap4x / 0x78347061), yuva444p12le(tv, bt709, progressive), 1000x1000, 142222 kb/s, SAR 1:1 DAR 1:1, 30 fps, 30 tbr, 30k tbn, 30k tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2020-12-10T04:36:09.000000Z&#xA;      handler_name    : Core Media Video&#xA;      encoder         : Apple ProRes 4444 XQ&#xA;File &#x27;converted.mov&#x27; already exists. Overwrite ? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 (prores) -> split&#xA;  overlay -> Stream #0:0 (libx264)&#xA;Press [q] to stop, [?] for help&#xA;[swscaler @ 0000019691457fc0] No accelerated colorspace conversion found from yuva420p to gbrap.&#xA;[libx264 @ 000001968c30f5c0] using SAR=1/1&#xA;[libx264 @ 000001968c30f5c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2&#xA;[libx264 @ 000001968c30f5c0] profile High, level 3.2, 4:2:0, 8-bit&#xA;[libx264 @ 000001968c30f5c0] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=700 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, mov, to &#x27;converted.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt&#xA;    minor_version   : 0&#xA;    compatible_brands: qt&#xA;    encoder         : Lavf58.29.100&#xA;    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1000x1000 [SAR 1:1 DAR 1:1], q=-1--1, 700 kb/s, 30 fps, 15360 tbn, 30 tbc (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.54.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/700000 buffer size: 0 vbv_delay: -1&#xA;frame=  301 fps= 22 q=-1.0 Lsize=     843kB time=00:00:09.93 bitrate= 695.3kbits/s speed=0.716x&#xA;video:839kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.515537%&#xA;[libx264 @ 000001968c30f5c0] frame I:2     Avg QP:24.02  size: 22224&#xA;[libx264 @ 000001968c30f5c0] frame P:76    Avg QP:24.00  size:  6595&#xA;[libx264 @ 000001968c30f5c0] frame B:223   Avg QP:27.38  size:  1402&#xA;[libx264 @ 000001968c30f5c0] consecutive B-frames:  1.0%  0.7%  0.0% 98.3%&#xA;[libx264 @ 000001968c30f5c0] mb I  I16..4: 36.6% 56.1%  7.4%&#xA;[libx264 @ 000001968c30f5c0] mb P  I16..4:  0.5%  1.4%  0.2%  P16..4: 16.0%  7.4%  3.6%  0.0%  0.0%    skip:70.9%&#xA;[libx264 @ 000001968c30f5c0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 18.7%  1.3%  0.1%  direct: 0.1%  skip:79.7%  L0:39.1% L1:58.3% BI: 2.6%&#xA;[libx264 @ 000001968c30f5c0] final ratefactor: 24.27&#xA;[libx264 @ 000001968c30f5c0] 8x8 transform intra:60.1% inter:78.0%&#xA;[libx264 @ 000001968c30f5c0] coded y,uvDC,uvAC intra: 30.9% 22.8% 8.2% inter: 3.7% 1.7% 0.0%&#xA;[libx264 @ 000001968c30f5c0] i16 v,h,dc,p: 65% 24%  4%  7%&#xA;[libx264 @ 000001968c30f5c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 16% 36%  4%  6%  7%  4%  5%  4%&#xA;[libx264 @ 000001968c30f5c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 12% 23%  7%  9%  8%  6%  8%  5%&#xA;[libx264 @ 000001968c30f5c0] i8c dc,h,v,p: 79% 10%  9%  2%&#xA;[libx264 @ 000001968c30f5c0] Weighted P-Frames: Y:0.0% UV:0.0%&#xA;[libx264 @ 000001968c30f5c0] ref P L0: 66.4% 21.6%  9.5%  2.6%&#xA;[libx264 @ 000001968c30f5c0] ref B L0: 92.1%  6.8%  1.1%&#xA;[libx264 @ 000001968c30f5c0] ref B L1: 97.6%  2.4%&#xA;[libx264 @ 000001968c30f5c0] kb/s:684.29&#xA;

    &#xA;