Recherche avancée

Médias (91)

Autres articles (56)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

Sur d’autres sites (10948)

  • Set GOP length for HEVC-Encoding in ffmpeg

    18 juin 2018, par nm82

    I want to encode an xxx.y4m file to hevc and set the GOP-length to a particular value, open and closed gop.

    To encode I’m using :

    ...>ffmpeg -i xxx.y4m -c copy xxx.hevc

    this gives me the hevc-encoded file, now I want to set a particular gop-length

    ...>ffmpeg -i xxx.y4m -c:v libx265 -keyint=1 -open-gop=1 -c copy xxx.hevc

    is not working because "option not found"

    kind regards

  • ffmpeg : video from images - handling a zero length image file

    29 septembre 2021, par Buadhai

    I have a shell script which uses ffmpeg to crate a time-lapse video from webcam images. Normally, it works just fine :

    


    /usr/bin/ffmpeg -loglevel info  -framerate 4 \
     -pattern_type glob -i $ipath/'*.jpg' \
    -c:v libx264 -crf 30 -y -pix_fmt yuv420p $temp &>>$log


    


    But this chokes if the image is a zero-length file :

    


    -rw-r--r-- 1 pi pi  156636 Sep 29 04:35 image_022.jpg
-rw-r--r-- 1 pi pi  156533 Sep 29 04:35 image_023.jpg
-rw-r--r-- 1 pi pi  159302 Sep 29 04:35 image_024.jpg
-rw-r--r-- 1 pi pi       0 Sep 29 04:35 image_025.jpg
-rw-r--r-- 1 pi pi  157055 Sep 29 04:35 image_026.jpg
-rw-r--r-- 1 pi pi  156851 Sep 29 04:35 image_027.jpg
-rw-r--r-- 1 pi pi  155793 Sep 29 04:35 image_028.jpg
-rw-r--r-- 1 pi pi  160647 Sep 29 04:35 image_029.jpg


    


    In this case the video only included frames up to the zero length JPEG.

    


    I realize I can test the file length of every webcam image, but there must be an easier, more efficient way.

    


    Is there ?

    


  • NodeJS + FFMPEG -sending response when FFMPEG is completed

    2 février 2015, par eco_bach

    I have a working NodeJS+FFMPEG application. I am able to upload video files and have them converted on the server. I am using this NodeJS FFMPEG library
    https://github.com/fluent-ffmpeg/node-fluent-ffmpeg

    I get a message on the server when the job is complete, but how do I notify the client ?? In this case a simple AIR application. Right now I can only ’hear’ the initial response after a successful upload.

    The initial video file was uploaded via a http POST request.

    My primary node application without the dependencies is as follows

    var ffmpeg =  require('./lib/fluent-ffmpeg');

    var express = require('express'),
       multer  = require('multer');
    var app = express();

    //auto save file to uploads folder
    app.use(multer({ dest: './uploads/'}))

    var temp;

    app.post('/', function (req, res) {
       console.log(req.body); //contains the variables
       console.log("req.files ="+ req.files); //contains the file references

    console.log("req.files.Filedata.path ="+ req.files.Filedata.path );

    temp=req.files.Filedata.path;
    // make sure you set the correct path to your video file
    var proc = ffmpeg('./'+temp)
     // set video bitrate
     .videoBitrate(1024)
     // set audio codec
     .audioCodec('libmp3lame')    
     // set output format to force
     .format('avi')


     // setup event handlers
     .on('end', function() {
      console.log('file has been converted succesfully');    
     })
     .on('error', function(err) {
       console.log('an error happened: ' + err.message);
     })


     // save to file
     .save('./converted/converted.avi');
       res.send('Thank you for uploading!');

    });

    app.listen(8080);