Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (55)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (8874)

  • Video created from JPEG images in Spring Boot using FFmpegBuilder is extremely resource demanding

    1er avril 2020, par Igor Avramovic

    I have created small JAVA app which transforms a set of input JPEG images into video

    



    For that purpose i use 
net.bramp.ffmpeg.builder.FFmpegBuilder

    



        FFmpegBuilder builder = new FFmpegBuilder()
                .addInput(imagesSourceFolder)

                .addOutput(videoOutputPath)             
                .setFormat("mp4")
                .setVideoCodec("libx264")
                .setVideoResolution(1280, 720)
                .disableSubtitle() 
                .disableAudio()
                .setVideoFrameRate(FFmpeg.FPS_24)

                .done();



    



    Everything works just fine

    



    But the problem is that video created like this is very resource demanding
For instance, when i play it in VLC it slows my whole system
When i try to stream that video and open it in Browser, 
everything becomes unresponsive,
except for video that keeps running

    



    Any idea why videos created in this way are so resource demanding ?

    


  • How to split the Video into Frames using FFMPEG in Spring-Boot ?

    8 octobre 2020, par Abhinay K

    To fetch Frames from Video with 5fps rate with specified Start and end Time in video with following FFMPEG command,

    


    ffmpeg -i input.mp4 -ss 00:00:54 -to 00:01:53 -r 5 -f image2 image-%13d.png,

    


    I want to implement the same in the Spring-boot application,

    


    I found the following code snippet to fetch frames from Video,

    


    public static void main(String[] args) {
    Java2DFrameConverter bimConverter = new Java2DFrameConverter();
    FFmpegFrameGrabber g = new FFmpegFrameGrabber("input.mp4");
    try {
        g.start();
        for (int i = 0; i < 50; i++) {
            ImageIO.write(bimConverter.convert(g.grab()), "png", new File(
                    "image-" + System.currentTimeMillis() + ".png"));
        }
        g.stop();
    } catch (IOException ie) {
        ie.printStackTrace();
    } catch (Exception e) {
        e.printStackTrace();
    }
}


    


    but I required logic to implement as output from following command,

    


    ffmpeg -i input.mp4 -ss 00:00:54 -to 00:01:53 -r 5 -f image2 image-%13d.png,

    


    Please help me out the logic need to implement,

    


  • Joining/Concatenating more than one video files in Java Spring Boot

    7 décembre 2020, par Rohan Shah

    I am trying to join/concate multiple files in Java, so far the procedure that I was following (https://github.com/bramp/ffmpeg-cli-wrapper) was going alright, but in this procedure, there were a couple of lines that I could not understand.

    


    Code I am following :

    


    FFmpeg ffmpeg = new FFmpeg("/path/to/ffmpeg");
FFprobe ffprobe = new FFprobe("/path/to/ffprobe");

FFmpegBuilder builder = new FFmpegBuilder()

  .setInput("input.mp4")     // Filename, or a FFmpegProbeResult
  .addInput("input2.mp4")    // <--------------------------------  Second file that I added
  .overrideOutputFiles(true) // Override the output if it exists

  .addOutput("output.mp4")   // Filename for the destination
    .setFormat("mp4")        // Format is inferred from filename, or can be set
    .setTargetSize(250_000)  // Aim for a 250KB file

    .disableSubtitle()       // No subtiles

    .setAudioChannels(1)         // Mono audio
    .setAudioCodec("aac")        // using the aac codec
    .setAudioSampleRate(48_000)  // at 48KHz
    .setAudioBitRate(32768)      // at 32 kbit/s

    .setVideoCodec("libx264")     // Video using x264
    .setVideoFrameRate(24, 1)     // at 24 frames per second
    .setVideoResolution(640, 480) // at 640x480 resolution

    .setStrict(FFmpegBuilder.Strict.EXPERIMENTAL) // Allow FFmpeg to use experimental specs
    .done();

FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);

// Run a one-pass encode
executor.createJob(builder).run();

// Or run a two-pass encode (which is better quality at the cost of being slower)
executor.createTwoPassJob(builder).run();


    


    These are the lines throwing error :

    


    FFmpeg ffmpeg = new FFmpeg("/path/to/ffmpeg");
FFprobe ffprobe = new FFprobe("/path/to/ffprobe");


    


    In these lines, I am providing a path like this,

    


    FFmpeg ffmpeg = new FFmpeg("D:/");
FFprobe ffprobe = new FFprobe("D:/");


    


    which leads to an error

    


    java.io.IOException: CreateProcess error=5


    


    I believe the ffmpeg in /path/to/ffmpeg and ffprobe in /path/to/ffprobe are files, not directories, which is why it threw an execution permission error, but as I looked into the repository (link given above) I was not able to find this particular file in the given link.

    


    There were a couple of Java files named ffmpeg.java and ffprobe.java, but when I tried using them in the code then I got the same error, so I want to know which files am I supposed to have in these paths