Recherche avancée

Médias (0)

Mot : - Tags -/images

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (81)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (4092)

  • Android javacv FFMpeg overlay animated gif over video

    5 avril 2019, par Diego Perez

    I’m developing an Android app that creates a video (from an image plus an mp3 file) with javacv and FFMpeg and the video generation part is working fine, but my problem comes now that I would like to overlap a transparent background animated gif over the video, and I’m really stuck with it and I have no success on every attempt so far.

    To be honest it is being my first experience with javacv and FFMpeg, so I have little knowledge on how to work with filters.

    I’ll paste my complete video creation method below and let’s see if anyone can help me. Again, my problem is overlapping the animated gif, the video (removing the filter part) is being created just fine. The most I was able to achieve is overlapping a static (one frame) small gif (with no transparency) on the top left corner of video, but what I’d like to achieve is a transparent gif with the same dimensions of video over it.

    Maybe you will see nonsense code, but remember this is due to my lack of knowledge with javacv and FFMpeg filters.

    I hope anyone can help me.

    Thanks.

    PS. I have read this post : javaCV Android, Strange colors on overlay while streaming to rtmp server

    of @schw4ndi but I wasn’t able to do anything with it.

    static String recordVideo(JSONObject objJSON) {

       try {
           fileName = objJSON.has("file_name") ? String.valueOf(objJSON.getString("file_name")) : "";
           videoPath = objJSON.has("video_path") ? String.valueOf(objJSON.getString("video_path")) : "";
       } catch (JSONException e) {
           ExceptionHandler.logException(e);
       }

       String strReturn = Enum.Result.OK;

       if (!fileName.equals("") && !videoPath.equals("")) {
           try {
               String outputFilename = videoPath + "/" + fileName;
               //video grabber
               FrameGrabber grabber1 = new FFmpegFrameGrabber(outputFilename + ".jpg");
               //audio grabber
               FrameGrabber grabber2 = new FFmpegFrameGrabber(outputFilename + ".mp3");

               grabber1.start();
               grabber2.start();

               FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(outputFilename + ".mp4", 1080, 1920,2);

               //video
               recorder.setVideoCodec(avcodec.AV_CODEC_ID_H264);
               recorder.setVideoOption("tune", "zerolatency");
               recorder.setFrameRate(30);
               recorder.setVideoBitrate(128000);
               recorder.setVideoOption("crf", "28");
               recorder.setVideoQuality(0); //highest quality
               recorder.setVideoOption("preset", "fast");
               recorder.setFormat("mp4");

               //audio
               recorder.setAudioCodec(avcodec.AV_CODEC_ID_AAC);
               recorder.setSampleRate(44100);
               recorder.setAudioBitrate(128000);
               recorder.setAudioOption("crf", "0"); //no variable bitrate audio (constant rate factor)
               recorder.setAudioQuality(0); //highest quality

               FFmpegFrameFilter filter = null;
               try{
                   filter = new FFmpegFrameFilter("movie=" + videoPath + "/anim01.gif [logo];[in][logo]overlay=0:0:format=yuv420 [out]",1080, 1920);
                   filter.start();
               }catch (FrameFilter.Exception e){
                   e.printStackTrace();
               }

               recorder.start();

               Frame frame1, frame2 = null, frame3 = null;

               while ((frame1 = grabber1.grabFrame()) != null ||
                       (frame2 = grabber2.grabFrame()) != null) {
                   if (frame1 != null) filter.push(frame1);
                   frame3 = filter.pull();
                   //recorder.record(frame1);
                   recorder.record(frame3, avutil.AV_PIX_FMT_YUV420P);
                   recorder.record(frame2, avutil.AV_PIX_FMT_YUV420P);
               }

               recorder.stop();
               grabber1.stop();
               grabber2.stop();
               filter.stop();

           } catch (Exception e) {
               strReturn = Enum.Result.KO;
               ExceptionHandler.logException(e);
           }
       }

       return strReturn;
    }
  • How to use ffmpeg to make a video from one still image with height from 0 to 100% animation,

    30 août 2021, par Xiang Chen

    I want use a still image to make a transparent webm video, this video needs to have the following style :

    


      

    1. The image height auto increase from 0 to 100% in specific time.
    2. 


    3. I don't want scroll effect , what i want is just like the image spread from top to bottom
    4. 


    


    Below is my demo image :

    


    below is my demo image

    


    This is the effect I want :

    


    this is the effect i want

    


    Black color part represent transparency.

    


  • How to use ffmpeg make a video from one still image with height from 0 to 100% animation

    28 août 2021, par Xiang Chen

    I want use a still image to make a transparent webm video, this video needs to have the following style :

    


      

    1. the image height auto increase from 0 to 100% in specific time.
    2. 


    3. I don't want scroll effect , what i want is just like the image spread from top to bottom
    4. 


    


    below is my demo image

    


    Please help me , thanks a lot