Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (11990)

  • How to save sequence of images in `000` pattern [on hold]

    17 mars 2014, par Maged E William

    i try to make video out of images, but i only know how to do that with one image like this :
    ffmpeg -f image2 -i C:\Secret\17_03_2014_11_31_34_AM\000.jpeg -r 12 -s 683x384 C:\Secret\17_03_2014_11_31_34_AM\foo.avi

    now here's my images looks like :

    enter image description here

    i tried this :

    ffmpeg -f image2 -i C:\Secret\17_03_2014_11_31_34_AM\-%03d.jpeg -r 12 -s 683x384 C:\Secret\17_03_2014_11_31_34_AM\foo.avi

    but it says :

    could find no file with path 'C:\Secret\17_03_2014_11_31_34_AM\-%03d.jpeg' and index in the range 0-4
    C:\Secret\17_03_2014_11_31_34_AM\-%03d.jpeg: no such file directory
    >

    any help with converting all of them ?

  • JavaCV FFmpegFrameRecorder save images to video

    2 décembre 2024, par Learning from masters

    I am a bit confused about the use of JavaCV FFmpegFrameRecorder. I have several byte[] or short[] arrays (depending if my images are 8 or 16 bit) were I have the data related for several images. Now, my idea is to use JavaCPP to send each image to ffmpeg so it creates me a mute video from this collection at the framerate I wish. Up to now I have :

    



    package ffmpeg;

import java.awt.EventQueue;
import java.io.File;
import java.nio.Buffer;
import java.nio.ByteBuffer;

import javax.swing.JFrame;

public class rwa {

    private JFrame frame;

    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                try {
                    rwa window = new rwa();
                    window.frame.setVisible(true);

                    Frame myframe = new Frame();
                    myframe .imageHeight = 100;
                    myframe .imageWidth = 200;
                    myframe .imageChannels = 1;
                    myframe .imageDepth = 8;

                    byte[] myimage = new byte[20000];

                    //all black
                    for (int j = 0; j/FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(dest);
                    record.setFrameRate(0.04);
                    record.setVideoCodec(13);
                    record.setFormat("mp4");
                    record.setPixelFormat(0);
                    record.setImageHeight(100);
                    record.setImageWidth(200);
                    record.setVideoBitrate(1000000);

                    record.start();
                    for (int i=0; i<100; i++){

                        if (myimage.length*(1+i)<20000) {
                         //this is just for debugging it. I'm creating a different image each frame to see if it works. In practice, I will read in each step the propper image
                        for (int j = myimage.length*i; j/record.record(myframe);
                    }
                    record.stop();
                    record.close();

                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }

    /**
     * Create the application.
     */
    public rwa() {
        initialize();
    }

    /**
     * Initialize the contents of the frame.
     */
    private void initialize() {
        frame = new JFrame();
        frame.setBounds(100, 100, 450, 300);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

}


    



    But I am getting errors like

    



    


    A fatal error has been detected by the Java Runtime Environment :

    
 


    EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefe4511d3, pid=6432, tid=0x000000000000027c

    


    



    what is wrong there ? And how should I select the bitrate ? My images, at maximum, will be 16bit 1 channel 2048*2048 pixels.

    



    Thanks !

    


  • Save live video stream .m3u8 to MP4. Video freezes for a few seconds

    11 octobre 2020, par Frodo Baggins

    I am trying to save in MP4 an .m3u8 live stream using FFMPEG.

    


    The version in use is the following : $ ffmpeg -v
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1 18.04)

    


    While the command used for saving the stream in MP4 is the the one below :

    


    ffmpeg -y -i https://stream.m3u8 —map 0 —vcodec copy -acodec copy / output.mp4

    


    The file can be successfully opened and played with VLC even though every 3-5 seconds I see that the video freezes every few seconds.

    


    I wonder if it's something that I am missing in the above command.

    


    I also verified whether the issue was related to the connection in use but it does not seem related.