Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (71)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

Sur d’autres sites (9764)

  • Video compression ffmpeg node js in multiple user ?

    12 octobre 2022, par jatin.rathod

    i have one query i am using ffmpeg packaege in node js to compress video in server side. but my question is when multiple user like 100k upload video in same time so it will work compression then upload part. currently have check 2 or 3 user it is working fine. Thanks Advance

    


    

    

    const ffmpeg = require('fluent-ffmpeg');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
const fs = require('fs');
// var filename = 'videos/big_buck_bunny_480p_10mb.mp4';

(function () {
    
    var ffmpeg = require('fluent-ffmpeg');
    function baseName(str) {
        var base = new String(str).substring(str.lastIndexOf('/') + 1); 
        if(base.lastIndexOf(".") != -1) {
            base = base.substring(0, base.lastIndexOf("."));
        }     
        return base;
    }

    var args = process.argv.slice(2);
    args.forEach(function (val, index, array) {
        var filename = val;
        var basename = baseName(filename);
        console.log(index + ': Input File ... ' + filename);
        
        ffmpeg(filename)
            // .output(basename + '-720x720_8.mp4')
            // .videoCodec('libx264')
            // //.noAudio()
            // // .aspect("1:1")
            // //.size('720x720')
            // .videoFilters('crop=540:960:540:960')
            // .videoFilters('crop=540:960')
            //.noAudio()
            //.aspect("1:1")
            //.aspectRatio("16:9")
            //.size('720x720')
            //.videoFilters('crop=720:720:580:1000')
            //.addOption('-vf scale=-2:720')
            //.videoFilters('crop=720:720:0:0.21')
            //.addOption('-vf setdar=1')
           //.videoFilters('crop=720:720:-540:960')
            //.preset('divx')

            .output(basename + '-720x720_22.mp4')
            .videoCodec('libx264')
            .addOption('-vf scale=720:-2') // landscap
            //.addOption('-vf scale=-2:720') // portrait

            //.addOption('-vf scale=480:480') // rectangle

           

            .on('error', function(err) {
                console.log('An error occurred: ' + err.message);
                
            })  
            .on('progress', function(progress) { 
                console.log('... frames: ' + progress.frames);
                
            })
            .on('end', function() { 
                console.log('Finished processing'); 
                
            })
            .run();
        
    }); 
    
})();

    


    


    



  • Issue with video compression using HLS from laravel protonemedia/laravel-ffmpeg package

    29 mars 2023, par Mateo Kantoci

    I'm using laravel-ffmpeg package in order to compress videos and save it as .m3u8.
In another words, I have a job that is gathering all uncompressed files and compress them 1by1 and save them to google cloud storage. Furthermore, compression is using exportForHLS from package and throws an error :

    


    ProtoneMedia\LaravelFFMpeg\Exporters\HLSPlaylistGenerator::getStreamInfoLine(): Return value must be of type string, null returned in /var/www/html/ipaparazzo/vendor/pbmedia/laravel-ffmpeg/src/Exporters/HLSPlaylistGenerator.php:32


    


    In some cases compression works but my job is failing for most of the time.

    


    Anyone experienced similar issue ?

    


    P.S. It is working as expected when using public storage.

    


    This is my code exactly as per laravel-ffmpeg documentation :

    


    ->exportForHLS()
->setSegmentLength(10) // optional
->setKeyFrameInterval(48) // optional
->addFormat($lowBitrate, function($media) {
    $media->scale(426, 240);
})
->addFormat($midBitrate, function($media) {
    $media->scale(640, 360);
})
->addFormat($highBitrate, function($media) {
    $media->scale(640, 480);
})
->onProgress(function ($percentage) {
   echo "{$percentage}% transcoded\n";
})
->toDisk('gcs2')
->save($videoPath)
->cleanupTemporaryFiles();


    


  • As part of my program that I am writing I am using ffmpeg. I am debugging. Why would ffmpeg run slower on a GPU than a CPU when doing mp4 compression ? [closed]

    6 mai 2023, par user875234

    I'm running it on modern equipment with latest drivers. I use it to compress video files, like so :

    


    ffmpeg -i 20230502_200913.mp4 -vcodec libx265 -crf 28 -vf "scale=trunc(iw/10)*2:trunc(ih/10)*2" output.mp4


    


    that command runs in 160 seconds on the CPU. but if I use the GPU, like so :

    


    ffmpeg -hwaccel cuda -i 20230502_200913.mp4 -vcodec libx265 -crf 28 -vf "scale=trunc(iw/10)*2:trunc(ih/10)*2" output.mp4


    


    it actually takes 280 seconds. And again, these are same era CPU and GPU. I can see it uses 100% of the GPU when running on the GPU but only 50% of the CPU when running on the CPU. I expected it to run much faster on the GPU than the CPU.

    


    Am I missing something ?