Recherche avancée

Médias (91)

Autres articles (92)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (6236)

  • Fix motion blur in still frames from mpeg2video

    14 mars 2017, par Bird

    I’m extracting still frames from a video using the basic code :

    ffmpeg -i video.MXF -vf fps=1 output_%04d.png  

    In some videos, this yields images that, when the camera was moving, look much blurrier than when watching the video (see example below). The still frames from when the camera was not moving look sharper (closer to how it looks in video playback).

    The video specs are : mpeg2video, yuv422p, 1280x720 (according to FFprobe).

    Is this inherent within the video coding or structure ? The video looks so nice when in motion, but even when I pause in VLC the frame goes from sharp to blurred.

    Are there any additions to my FFmpeg code that could result in sharper images ? I tried adding a yadif filter, but it made no difference (the video isn’t interlaced anyways).

    Unfortunately I can’t post a video sample online, but below is an example of a sharper image and a blurry image ; both look in focus during video playback and are about a second apart in the video (that’s the same orange sea star on the left side).

    Sharper image
    Blurrier image

  • I can't get any error messages on node.js spawn, using ffmpeg

    21 mars 2021, par rickster26ter1

    I am trying to get the errors from a spawn process on nodejs, trying to run FFMPEG. I have not run a child process before explicitly, so I'm not sure this is right, but what I have gathered from code examples online :

    


        const {spawn} = require('child_process');
    async function(req,res){
           
    console.log(res.req.files.data[0].path);
    var tst_loc = res.req.files.data[0].path;
    try {
            var the_arr = tst_loc.split('/');
            the_arr.pop();
            tst_loc1 = the_arr.join('/') +"/test.avi";
            console.log("HERE");
            var cmd = 'ffmpeg';
                var tstspawn = spawn(cmd, [
                '-i', tst_loc,
                '-s', '800x400',
                '-b:v', '64k',
                '-c:v', 'avi',
                '-c:a', tst_loc1,
                '-o', outputfilename
            ], (error, stdout, stderr) => {
                  if (error) {
                      console.error('Error!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:', stderr);
                      throw error;
                  }
                  console.log('Success!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!', stdout);
            })
            
            tstspawn.stderr.on('data', function(data) {
            //Here is where the error output goes

               console.log('stderr: ' + data);

               data=data.toString();
               scriptOutput+=data;
            });
       

 
            tstspawn.stderr.on('error',function(error){
              console.log(error);
            });

  } catch (e) {
    console.log(e.code);
    console.log(e.msg);
  }


    


    Returns only my console logs of the path data, the console log of the "HERE", and nothing else at all. I know it didn't run properly because I do not get the expected video file that FFMPEG should have output. But I can't get any sort of error message on my console. No crashing of the application or anything...

    


    Thanks for any help,

    


  • In ffmpeg command-line, how to show all filter settings and their parameters before encoding ?

    7 décembre 2023, par F.X.

    Is there a way to force the ffmpeg command-line to display a comprehensive list of all filters and their parameters, even those that are applied automatically like -vf scale ?

    


    (EDIT : To clarify, I do not mean filter documentation, but rather displaying filters that are instantiated at runtime for a particular command-line, just before transcoding starts. The goal of this is mostly checking that ffmpeg is indeed doing the right thing and not inserting/changing filters when I do not intend it to.)

    


    There are a few options available, but none are comprehensive enough. For example :

    


      

    • The lavfi module has a dumpgraph option (here) but only if you're using lavfi.
    • 


    • The -sws_flags print_info option (here) can be used to determine if -vf scale is applied automatically and shows a subset of its parameters, but not all of them.
    • 


    


    Additionally, this question appears related the answer doesn't answer what I'm looking for.

    


    Are there better ways to achieve that ?