Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (76)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • 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.

Sur d’autres sites (8821)

  • "Pixel format 'yuvj420p' is not supported" when converting image to video using CUDA hardware acceleration

    11 février 2020, par laurent

    I’m trying to convert an image to a video using CUDA hardware acceleration but I can’t get it to work.

    The basic command I have is this one :

    ffmpeg -y -hwaccel cuvid -i tests/MediaSamples/portrait_0.jpg -t 10 out.mp4

    And I’m getting this error :

    [AVHWFramesContext @ 0x32d3f00] Pixel format 'yuvj420p' is not supported
    [mjpeg @ 0x2d18480] Error initializing a CUDA frame pool
    cuvid hwaccel requested for input stream #0:0, but cannot be initialized.
    Error while decoding stream #0:0: Invalid argument

    I’ve tried setting the pixel format like so, but that didn’t help :

    ffmpeg -y -hwaccel cuvid -pix_fmt yuv420p -i tests/MediaSamples/portrait_0.jpg -t 10 out.mp4

    I’ve also tried many other flags but can’t get anything to work. Any idea what the issue might be ?

    For information this is the full log :

    ffmpeg version N-96615-gc35382a Copyright (c) 2000-2020 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609
     configuration: --enable-nonfree --disable-shared --enable-gpl --enable-openssl --enable-libx264 --enable-cuda-sdk --enable-nvenc --enable-cuda --enable-cuvid --enable-libnpp --extra-cflags='-I/usr/local/ssl/include -I/usr/local/cuda/include -I/usr/local/include -L/usr/local/ssl/lib -Wl,-rpath=/usr/local/ssl/lib' --extra-ldflags=-L/usr/local/cuda/lib64
     libavutil      56. 38.100 / 56. 38.100
     libavcodec     58. 67.101 / 58. 67.101
     libavformat    58. 37.100 / 58. 37.100
     libavdevice    58.  9.103 / 58.  9.103
     libavfilter     7. 73.100 /  7. 73.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, image2, from 'tests/MediaSamples/portrait_0.jpg':
     Duration: 00:00:00.04, start: 0.000000, bitrate: 40237 kb/s
       Stream #0:0: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 1600x900 [SAR 72:72 DAR 16:9], 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [AVHWFramesContext @ 0x32d3f00] Pixel format 'yuvj420p' is not supported
    [mjpeg @ 0x2d18480] Error initializing a CUDA frame pool
    cuvid hwaccel requested for input stream #0:0, but cannot be initialized.
    Error while decoding stream #0:0: Invalid argument
    [libx264 @ 0x2d1e840] using SAR=1/1
    [libx264 @ 0x2d1e840] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0x2d1e840] profile High, level 4.0
    [libx264 @ 0x2d1e840] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=24 lookahead_threads=4 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=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'out.mp4':
     Metadata:
       encoder         : Lavf58.37.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 1600x900 [SAR 72:72 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc58.67.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Conversion failed!
  • FFMPEG not found because FFMPEG-binaries is no longer supported

    17 novembre 2019, par brenan patrick

    I have been attempting to create a Discord bot, but it cannot connect to a voice channel because it gives the errorError: FFMPEG not found. Is there a way to get around using FFMPEG-binaries or an older version that I can install manually ?

    const Discord = require('discord.js');
    const {
            prefix,
            token,
    } = require('./config.json');
    const ytdl = require('ytdl-core');

    const client = new Discord.Client();

    const queue = new Map();

    client.once('ready', () => {
            console.log('Ready!');
    });

    client.once('reconnecting', () => {
            console.log('Reconnecting!');
    });

    client.once('disconnect', () => {
            console.log('Disconnect!');
    });

    client.on('message', async message => {
            if (message.author.bot) return;
            if (!message.content.startsWith(prefix)) return;

            const serverQueue = queue.get(message.guild.id);

            if (message.content.startsWith(`${prefix}play`)) {
                    execute(message, serverQueue);
                    return;
            } else if (message.content.startsWith(`${prefix}skip`)) {
                    skip(message, serverQueue);
                    return;
            } else if (message.content.startsWith(`${prefix}stop`)) {
                    stop(message, serverQueue);
                    return;
            } else {
                    message.channel.send('You need to enter a valid command!')
            }
    });

    async function execute(message, serverQueue) {
            const args = message.content.split(' ');

            const voiceChannel = message.member.voiceChannel;
            if (!voiceChannel) return message.channel.send('You need to be in a voice channel to play music!');
            const permissions = voiceChannel.permissionsFor(message.client.user);
            if (!permissions.has('CONNECT') || !permissions.has('SPEAK')) {
                    return message.channel.send('I need the permissions to join and speak in your voice channel!');
            }

            const songInfo = await ytdl.getInfo(args[1]);
            const song = {
                    title: songInfo.title,
                    url: songInfo.video_url,
            };

            if (!serverQueue) {
                    const queueContruct = {
                            textChannel: message.channel,
                            voiceChannel: voiceChannel,
                            connection: null,
                            songs: [],
                            volume: 5,
                            playing: true,
                    };

                    queue.set(message.guild.id, queueContruct);

                    queueContruct.songs.push(song);

                    try {
                            var connection = await voiceChannel.join();
                            queueContruct.connection = connection;
                            play(message.guild, queueContruct.songs[0]);
                    } catch (err) {
                            console.log(err);
                            queue.delete(message.guild.id);
                            return message.channel.send(err);
                    }
            } else {
                    serverQueue.songs.push(song);
                    console.log(serverQueue.songs);
                    return message.channel.send(`${song.title} has been added to the queue!`);
            }

    }

    function skip(message, serverQueue) {
            if (!message.member.voiceChannel) return message.channel.send('You have to be in a voice channel to stop the music!');
            if (!serverQueue) return message.channel.send('There is no song that I could skip!');
            serverQueue.connection.dispatcher.end();
    }

    function stop(message, serverQueue) {
            if (!message.member.voiceChannel) return message.channel.send('You have to be in a voice channel to stop the music!');
            serverQueue.songs = [];
            serverQueue.connection.dispatcher.end();
    }

    function play(guild, song) {
            const serverQueue = queue.get(guild.id);

            if (!song) {
                    serverQueue.voiceChannel.leave();
                    queue.delete(guild.id);
                    return;
            }

            const dispatcher = serverQueue.connection.playStream(ytdl(song.url))
                    .on('end', () => {
                            console.log('Music ended!');
                            serverQueue.songs.shift();
                            play(guild, serverQueue.songs[0]);
                    })
                    .on('error', error => {
                            console.error(error);
                    });
            dispatcher.setVolumeLogarithmic(serverQueue.volume / 5);
    }

    client.login(token);

    This is the error that appears after I attempt to ’ !play ’.

    D:\Bot-Files-Test>node index.js
    Ready!
    Error: FFMPEG not found
       at Function.selectFfmpegCommand (D:\Bot-Files-Test\node_modules\prism-media\src\transcoders\ffmpeg\Ffmpeg.js:46:13)
       at new FfmpegTranscoder (D:\Bot-Files-Test\node_modules\prism-media\src\transcoders\ffmpeg\Ffmpeg.js:7:37)
       at new MediaTranscoder (D:\Bot-Files-Test\node_modules\prism-media\src\transcoders\MediaTranscoder.js:10:19)
       at new Prism (D:\Bot-Files-Test\node_modules\prism-media\src\Prism.js:5:23)
       at new VoiceConnection (D:\Bot-Files-Test\node_modules\discord.js\src\client\voice\VoiceConnection.js:46:18)
       at D:\Bot-Files-Test\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:63:22
       at new Promise (<anonymous>)
       at ClientVoiceManager.joinChannel (D:\Bot-Files-Test\node_modules\discord.js\src\client\voice\ClientVoiceManager.js:45:12)
       at VoiceChannel.join (D:\Bot-Files-Test\node_modules\discord.js\src\structures\VoiceChannel.js:130:30)
       at execute (D:\Bot-Files-Test\index.js:75:40)
    (node:9108) UnhandledPromiseRejectionWarning: DiscordAPIError: Cannot send an empty message
       at D:\Bot-Files-Test\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:85:15
       at D:\Bot-Files-Test\node_modules\snekfetch\src\index.js:215:21
       at runMicrotasks (<anonymous>)
       at processTicksAndRejections (internal/process/task_queues.js:93:5)
    (node:9108) 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(). (rejection id: 3)
    (node:9108) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.</anonymous></anonymous>
  • qsvenc : AVBR is not supported on non-windows OS

    30 janvier 2018, par Zhong Li
    qsvenc : AVBR is not supported on non-windows OS
    

    AVBR is supported from API 1.3 but only available for Windows

    Signed-off-by : Zhong Li <zhong.li@intel.com>
    Signed-off-by : Maxym Dmytrychenko <maxim.d33@gmail.com>

    • [DBH] libavcodec/qsvenc.c
    • [DBH] libavcodec/qsvenc.h