Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (32)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

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

Sur d’autres sites (5969)

  • avcodec/aacenc : Avoid 0 lambda

    28 mai 2021, par Michael Niedermayer
    avcodec/aacenc : Avoid 0 lambda
    

    Fixes : Ticket8003
    Fixes : CVE-2020-20453

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/aacenc.c
  • How to fix grainy recoding with ffmpeg mp4 x264 ?

    21 mars 2020, par teenserie

    I recorded the audio and video stream from a streaming with ffmpeg. when I go to re-encode the file using libx264, the video in the movements looks bad and grainy as in the image.
    Where did I go wrong ?

    Sample

    this is the code I used

    ffmpeg -i input.mp4 -c:v libx264 -c:a aac output.mp4

    and these are mediainfo of original file

       Metadata:
       major_brand     : isom
       minor_version   : 1
       compatible_brands: isom
       creation_time   : 2020-03-19T22:43:32.000000Z
     Duration: 00:39:51.99, start: 0.000000, bitrate: 1300 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x1080 [SAR 3:2 DAR 16:9], Closed Captions, 1268 kb/s, 59.94 fps, 59.94 tbr, 90k tbn, 59.94 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(spa): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 22 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    mediainfo of the file recoded

    Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.29.100
     Duration: 00:39:51.99, start: 0.000000, bitrate: 7924 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 7892 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(spa): Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 22 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    How can I recode the file without loss of quality ? (sorry for my poor english)

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