Recherche avancée

Médias (91)

Autres articles (14)

  • Emballe Médias : Mettre en ligne simplement des documents

    29 octobre 2010, par

    Le plugin emballe médias a été développé principalement pour la distribution mediaSPIP mais est également utilisé dans d’autres projets proches comme géodiversité par exemple. Plugins nécessaires et compatibles
    Pour fonctionner ce plugin nécessite que d’autres plugins soient installés : CFG Saisies SPIP Bonux Diogène swfupload jqueryui
    D’autres plugins peuvent être utilisés en complément afin d’améliorer ses capacités : Ancres douces Légendes photo_infos spipmotion (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (4274)

  • Android : How to make camera capture video only of preview size and not full screen ?

    13 décembre 2017, par Ashutosh Tiwari

    I am working on an app that needs to capture square videos just like Instagram. I used many libraries for the purpose but none helped to capture the video itself in square size. I can make the preview look like square but not the recorded video. For that I have to use FFMPEG library for cropping the video after it has been captured. But this process takes too long for 1 minute videos even with 480p video capture quality. Someone please guide me to achieve this task.

    Libraries that I have used are :
    https://github.com/natario1/CameraView for cameraView and http://writingminds.github.io/ffmpeg-android-java/ for using ffmpeg.

    Commands that I have tried for ffmpeg cropping operation are :

    command = new String[]{"-y",
                   "-f",
                   "concat",
                   "-safe",
                   "0",
                   "-i",
                   "" + sdCardPathFile,
                   "-c:v",
                   "libx264",
                   "-vf",
                   "crop=" + getVideoResolution(),
                   "-preset",
                   "ultrafast",
                   "-qscale",
                   "0",
                   "-crf",
                   "28",
                   "-c:a",
                   "copy",
                   "-flags",
                   "+global_header",
                   "" + joinedVideoFile.getAbsolutePath()
           };




    String[] joinCommand = new String[]{
                   "-y",
                   "-f",
                   "concat",
                   "-safe",
                   "0",
                   "-i",
                   "" + sdCardPathFile,
                   "-filter:v",
                   "crop=480:480",
                   "-preset",
                   "superfast",
                   "-c:a",
                   "copy",
                   "" + joinedVideoFile.getAbsolutePath()
           };
  • Generating movie from python without saving individual frames to files

    31 juillet 2022, par Paul

    I would like to create an h264 or divx movie from frames that I generate in a python script in matplotlib. There are about 100k frames in this movie.

    



    In examples on the web [eg. 1], I have only seen the method of saving each frame as a png and then running mencoder or ffmpeg on these files. In my case, saving each frame is impractical. Is there a way to take a plot generated from matplotlib and pipe it directly to ffmpeg, generating no intermediate files ?

    



    Programming with ffmpeg's C-api is too difficult for me [eg. 2]. Also, I need an encoding that has good compression such as x264 as the movie file will otherwise be too large for a subsequent step. So it would be great to stick with mencoder/ffmpeg/x264.

    



    Is there something that can be done with pipes [3] ?

    



    [1] http://matplotlib.sourceforge.net/examples/animation/movie_demo.html

    



    [2] How does one encode a series of images into H264 using the x264 C API ?

    



    [3] http://www.ffmpeg.org/ffmpeg-doc.html#SEC41

    


  • Generating movie from python without saving individual frames to files

    31 juillet 2022, par Paul

    I would like to create an h264 or divx movie from frames that I generate in a python script in matplotlib. There are about 100k frames in this movie.

    



    In examples on the web [eg. 1], I have only seen the method of saving each frame as a png and then running mencoder or ffmpeg on these files. In my case, saving each frame is impractical. Is there a way to take a plot generated from matplotlib and pipe it directly to ffmpeg, generating no intermediate files ?

    



    Programming with ffmpeg's C-api is too difficult for me [eg. 2]. Also, I need an encoding that has good compression such as x264 as the movie file will otherwise be too large for a subsequent step. So it would be great to stick with mencoder/ffmpeg/x264.

    



    Is there something that can be done with pipes [3] ?

    



    [1] http://matplotlib.sourceforge.net/examples/animation/movie_demo.html

    



    [2] How does one encode a series of images into H264 using the x264 C API ?

    



    [3] http://www.ffmpeg.org/ffmpeg-doc.html#SEC41