Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (82)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (9967)

  • Why i can't use libx264 with FFMPEG on windows ?

    29 octobre 2020, par Reboot_My_Computer

    Hello there

    


    I'm trying to build game launcher that will start streaming when game starts, for this i am using FFMPEG.
It all works fine until i try to use libx264 as encoder.I have FFMPEG with libx264 compiled from https://github.com/BtbN/FFmpeg-Builds/releases. This is the command i am using for it :

    


    ffmpeg -f gdigrab -c:v libx264 -framerate 30 -i title="FiveM" -f flv rtmp://MYSITE.COM/stream/MYSECRETKEY


    


    Unfortunately i get this output :
FFMPEG OUTPUT

    


    You can clearly see in output picture that FFMPEG is compiled with libx264, please note that i'm doing this on Windows 10.

    


  • Send response only after the file has been converted

    19 octobre 2020, par Andrew Junior Howard

    I have the following code but I'm getting confused as to send the api response only after the file has been converted, not just when it uploads (which is what it currently does) :

    


    router.post('/uploadAudio/', function (req, res) {

    uploadAudio(req, res, function (err) {
        if (err) {
            // An error occurred when uploading
            throw err;
        }

        res.json({
            sucess: true,
            message: req.file.filename,
        });
            
        var proc = new ffmpeg({ source: '../game/src/assets/sounds/' + req.file.filename, nolog: true })
        
            proc.setFfmpegPath(ffmpegInstaller.path)
            proc

                // set output format to force
                .toFormat('ogg')

                // setup event handlers
                .on('end', function () {
                    console.log('file has been converted successfully');
                })
                .on('error', function (err) {
                    console.log('an error happened: ' + err.message);
                })
                // save to file <-- the new file I want -->
                .saveToFile('../game/src/assets/sounds/' + req.file.filename.replace(/\.[^/.]+$/, "") + '.ogg');
    });
});


    


  • How can I simply replace the colors using the color masks on this image and then save it ? With RGBA channels as example

    31 août 2020, par karl-police

    So I got this GIF here :

    


    


    As you can see, it has Red, Green and Blue in it. And it also has a full transparency in it. This was composed together with FFMPEG out of images that looked exactly like that.

    


     

    


    Then, with FFMPEG I "decomposed" the RGB and Alpha channels using the filter "extractplanes".

    


    The gallery of that, in correct order starting from up to down, can be found here :

    


    https://imgur.com/a/WN0aGuW

    


    I am not sure if this actually helps me or if I'm supposed to decompose them. Because apperantly now, after decomposing them, I'm supposed to modify them, but I'm not really sure how. It's like how do I modify the red channel that only has black and white, so all at the end, will match to the specified HEX color that I want it to be to.

    


     

    


    Now, my question is. How do I exactly make the color changing happen ? Can I do this simply with JavaScript ? Is it possible to do with FFMPEG, if possible without ImageMagicks ? Maybe a programming language where not much installation is needed to do that ?

    


    What I understood is that. These channels basically contain values from 0 to 255 with black and white. I think the "brightness" is that what 0 and 255. So something inbetween, would be like grey.

    


    So basically, like we do (255,0,0) for red. In these channels, if I want red somewhere I need to put one fully white pixel on the red channel and on all the other channels, there has to be a fully black pixel.

    


    That's the concept. Now is the question, how can I do this ?

    


     

    


    At the end I want to make it look like the colors this one has, as example :

    


    


    This is from a game. So basically that's how it looks like in the game. And the game files only use these RGBA template sprites.

    


     

    


    I asked a similar question here : How to change colors of an image using RGBA and more channels independently of their color

    


    But somehow, I might didn't seem to explain it that well.

    


     

    


    I made a thing here to test around with things. I guess that's nearly close, but the lines are kinda weird. jsfiddle.net/qsgazubk