Recherche avancée

Médias (91)

Autres articles (95)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

Sur d’autres sites (8892)

  • NodeJs watch file Chokidar and create Thumbnail with FFMPEG, Code is hanging. Memory jam ?

    30 juillet 2021, par Mert

    I'm trying watch file Chokidar. Mp4 files in Folder. And I'm trying watch folder with create thumnail. But My code is hanging. It's getting stuck. I'm waiting ten min but i didnt get error and my code worked more little. Again, I'm waiting more ten min. But no change anything.

    


    Code :

    


    let fs = require('fs');
var chokidar = require('chokidar');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path)

var counter = 0

var Mywatcher = chokidar.watch('Z:\\WatchFolder', {ignored: /^\./, persistent: true, usePolling: true});
Mywatcher
  .on('add', function(path) {
    worder = '.mp4'
    if(path.includes(worder)){
 
            counter = counter + 1 
            
            console.log('added' + counter)

            ffmpeg({ source: path })
            .on('filenames', (filenames) => {
                console.log('Created file names', filenames);
            })
            .on('end', () => {
                console.log('Job done');
            })
            .on('error', (err) => {
                console.log('Error', err);
            })
            .takeScreenshots({
                filename: counter +'.jpg',
                timemarks: [ 2 ],
             
            }, 'public/images/thumbnail/');
      
    }

    })

  .on('change', function(path) {console.log('File', path, 'has been changed');})



  .on('unlink', function(path) {

  })




  .on('error', function(error) {console.error('Error happened', error);})


    


    First Result : 1300 thumbnail completed. But not yet created. Thumbnail's folder is empty. My code is stuck.

    


    added13023
Created file names [ '13023.jpg' ]
added13024
Created file names [ '13024.jpg' ]
added13025
Created file names [ '13025.jpg' ]
added13026
Created file names [ '13026.jpg' ]
added13027
Created file names [ '13027.jpg' ]
added13028
Created file names [ '13028.jpg' ]
added13029
Created file names [ '13029.jpg' ]
added13030
Created file names [ '13030.jpg' ]
added13031
Created file names [ '13031.jpg' ]
added13032
Created file names [ '13032.jpg' ]
added13033
Created file names [ '13033.jpg' ]
added13034
Created file names [ '13034.jpg' ]
added13035
Created file names [ '13035.jpg' ]
added13036
Created file names [ '13036.jpg' ]


    


    Again I'm trying, i write 'nodemon start' and Result :

    


    Created file names [ '13026.jpg' ]
added13027
Created file names [ '13027.jpg' ]
added13028
Created file names [ '13028.jpg' ]
added13029
Created file names [ '13029.jpg' ]
added13030
Created file names [ '13030.jpg' ]
added13031
Created file names [ '13031.jpg' ]
added13032
Created file names [ '13032.jpg' ]
added13033
Created file names [ '13033.jpg' ]
added13034
Created file names [ '13034.jpg' ]
added13035
Created file names [ '13035.jpg' ]
added13036
Created file names [ '13036.jpg' ]
added13037
Created file names [ '13037.jpg' ]


    


    How can i fix it ? Thanks all. Regards.

    


  • Trouble installing ffmpegthumbnailer on Amazon Linux AMI

    30 août 2014, par jnbankston

    I am trying to install ffmpegthumbnailer on a Ec2 instance using Amazon linux. Ffmpeg has been compiled successfully and is working.

    This is my configuration when compiling from source
    ./configure —prefix=/tmp/ffmpegthumbnailer_dir/ —enable-shared —enable-png —enable-jpeg —enable-static —with-pic PKG_CONFIG_PATH=/root/ffmpeg_build/lib/pkgconfig/

    This is the error when I try to make the binary.

    /usr/bin/ld : /root/ffmpeg_build/lib/libavformat.a(allformats.o) : relocation R_X86_64_32 against

    ff_a64_muxer' can not be used when making a shared object; recompile with -fPIC
    /root/ffmpeg_build/lib/libavformat.a: could not read symbols: Bad value
    collect2: error: ld returned 1 exit status
    make[2]: *** [libffmpegthumbnailer.la] Error 1
    make[2]: Leaving directory

    /tmp/ffmpegthumbnailer_dir’
    make[1] : * [all-recursive] Error 1
    make[1] : Leaving directory `/tmp/ffmpegthumbnailer_dir’
    make : *
    [all] Error 2

  • How to run FFMPEG with —enable-libfontconfig on Amazon Linux 2

    22 avril 2024, par Adrien Kaczmarek

    Problem

    


    I want to run FFmpeg on AWS Lambda (Amazon Linux 2) with the configuration --enable-libfontconfig enable.

    


    Situation

    


    I already have FFmpeg running on AWS Lambda without the configuration --enable-libfontconfig.

    


    Here is the step I took to run FFmpeg on AWS Lambda (see official guide) :

    


      

    • Connect to Amazon EC2 running on AL2 (environment used by Lambda for Python 3.11)
    • 


    • Download and package FFmpeg from John Van Sickle
    • 


    • Create a Lambda Layer with FFmpeg
    • 


    


    Unfortunately, the version built by John Van Sickle doesn't have the configuration --enable-libfontconfig enabled.

    


    Unsuccessful Trials

    


    I tried to rebuilt it from scratch following the installation guide but without success (and the guide doesn't install font related dependencies)

    


    I tried to install it with brew but the command brew install ffmpeg didn't succeed on AL2.

    


    I tried to install ffmpeg from ffmpeg-master-latest-linux64-gpl.tar.xz. Unfortunately, this build of ffmpeg doesn't run on AL2 :

    


    ffmpeg: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ffmpeg)
ffmpeg: /lib64/libpthread.so.0: version `GLIBC_2.28' not found (required by ffmpeg)
ffmpeg: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by ffmpeg)
ffmpeg: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ffmpeg)


    


    Any help would be greatly appreciated,

    


    Please make sure your answer is up to date and tested. Too many answers out there are auto-generated, too generic, or simple redirect without context.

    


    Thank you