Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (66)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • 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

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (12488)

  • Timelapse (1/6 fps) from slo-mo (240 fps) with ffmpeg

    4 avril 2022, par baskak

    I recorded slo-mo video on an iPhone SE (2) by mistake instead of timelapse.

    


    I know there's a lot of answers to this question here, but I'm trying again and again and always something's wrong (like a video that has a correct total no. of frames, but lasts 3 hours and is basically a freeze :D )
My recent command was

    


    


    ffmpeg -i IMG_2174.MOV -vf framestep=1440,setpts=N/120/TB -c:v libx264
-preset slow -crf 22 -an -r 30 IMG_2174.timelapse.MOV

    


    


    but it resulted in a one-second-long video, so way over-timelapsed. Should be several seconds IINM. The source video is 30 minutes long @240fps, 17GB.
Thx.

    


  • FFMPEGmediametadataretriever not getting all frames from video

    25 décembre 2019, par Zain Aftab

    I am developing an application that takes a local video file and extracts its frames and write on disk. I am using ffmpegmediametadataretriever to extract frames from videos. I have done the following code

      retriever.setDataSource(activity, uri);
      Log.e("duration -> ", retriever.extractMetadata(FFmpegMediaMetadataRetriever.METADATA_KEY_DURATION));
      long duration = Long.parseLong(retriever.extractMetadata(FFmpegMediaMetadataRetriever.METADATA_KEY_DURATION));
      int everyNFrame = 1;
      double frameRate = Double.parseDouble(retriever.extractMetadata(FFmpegMediaMetadataRetriever.METADATA_KEY_FRAMERATE));
      Log.e("all metadata", retriever.getMetadata().getAll().toString());
      long sec = Math.round(1000 * 1000 / (frameRate));
      Bitmap bitmap;
    // Bitmap bitmap2;
    // Log.e(" timeskip ", sec + "   -----------   " + (frameRate * 1000));
      for (long i = 1000; i < duration * 1000; i += sec)
    // for (long i = sec; i < duration * 1000 && !stopWorking; i += sec)//30*sec)
    // for(int i=1000000;iimg_" + (i) + ".jpg");
                     Log.e("filename->", path + "/img_" + i + ".jpg");
                     bitmap.compress(Bitmap.CompressFormat.JPEG, 100, out);
                     bitmap.recycle();
                     Thread.sleep(75);
                 } catch (Exception e) {
                     e.printStackTrace();
                 }
             }
          }
       }

    It is not extracting all the frames from the video. for some videos frames extracted are repeated. Random number of frames are extracted for different videos. for some videos, 70-80% frames are extracted and for some only 15-20 frames are extracted.

    I have gone through all the answers I could find on StackOverflow and other websites to find a solution but the issue is there.

  • How to create an animated GIF using FFMPEG with an interval ?

    26 octobre 2014, par Jeff Wilbert

    Hello fellow overflowers,

    A brief overview of what I’m trying to accomplish ; I have a site that will accept video uploads, uploads get converted into the mp4 format to be uniformed and playable on the web using one of the many available players. That part is all fine and dandy.

    The problem now is I want to show the user a short scaled preview (animated gif) of the video before they click to play it. The code I’m working with now is

    ffmpeg -i test.mp4 -vf scale=150:-1 -t 10 -r 1 test.gif

    Which works for creating a scaled animated gif with a fixed width of 150px at a rate of 1 frame per second but its only an animation of the first 10 seconds of the video. I’m trying to do something that spreads out the frame gap to cover the whole video length but create an animated gift that’s no more then 10 seconds long.

    For example say I have a video that’s 30 seconds I want the gif to be 10 seconds long but cover frames of the entire 30 seconds so it might start at frame 3 or 3 seconds in and create a frame in the gif, then at 6 seconds in the video create another frame, then 9 seconds in another, and so forth where the final outcome is

       example video 30 seconds long          example video 1 minute 45 second long

    video position - gif frame/per second      video position - gif frame/per second
         00:03:00   1                               00:10:50   1
         00:06:00   2                               00:21:00   2
         00:09:00   3                               00:31:50   3
         00:12:00   4                               00:42:00   4
         00:15:00   5                               00:52:50   5
         00:18:00   6                               01:03:00   6
         00:21:00   7                               01:13:50   7
         00:24:00   8                               01:24:00   8
         00:27:00   9                               01:34:50   9
         00:30:00   10                              01:45:00   10

     3 second interval between frames         10.5 second interval between frames

    Where you end up with an animated gif that’s 10 seconds long showing a preview of the entire video no matter the length of it. Which basically just boils down to
    video length / 10 (length of desired animated gif) = interval to use between frames but I don’t know how I can use that data to accomplish my problem...

    So does anyone have an idea or suggestion on how this can be accomplished with relative ease ? I can probably do it by calculating the length through code and running a command to extract each individual frame from the video that’s needed then generate a gif from the images but I’d like to be able to do it all with just one command. Thanks.