Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (111)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • 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 (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (3851)

  • avfilter/vf_paletteuse : Fix leaks of AVFilterFormats on error

    7 août 2020, par Andreas Rheinhardt
    avfilter/vf_paletteuse : Fix leaks of AVFilterFormats on error
    

    The paletteuse's query_formats function allocated three AVFilterFormats
    before storing them permanently. If allocating one of them failed, the
    three AVFilterFormats structures would be freed with av_freep() which
    does not free separately allocated subelements (namely the formats
    array) which leak.

    Furthermore, if storing one of the first two fails, the function simply
    returns and the ones not yet stored leak.

    These leaks have been fixed by only creating a new AVFilterFormats after
    the last one has already been permanently stored. Furthermore, it is
    enough to check whether the elements have been properly stored as
    ff_formats_ref() by design returns AVERROR(ENOMEM) if it is provided a
    NULL AVFilterFormats *.

    Fixes Coverity issues #1270818 and #1270819.

    Reviewed-by : Nicolas George <george@nsup.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavfilter/vf_paletteuse.c
  • Firebase Functions : FFMPEG Images to Video [closed]

    28 août 2020, par Vinayak Vanarse

    I am testing Firebase cloud functions ability to process FFmpeg commands.

    &#xA;

    I have a set of images in .jpeg format (around 92). They have been named in sequenced e.g. Imgx_1.jpeg, Imgx_2.jpeg … Imgx_92.jpeg.

    &#xA;

    Each image is on an average 125kb to 200kb in size.

    &#xA;

    Approach : Pretty straightforward one ...

    &#xA;

      &#xA;
    1. Download the images in cloud functions into /tmp folder (got from os.tmpdir()). For now I am doing it sequentially (I know not a good design but let’s go by it. Later can convert to promise.all for async processing).
    2. &#xA;

    3. Spawn the FFMPEG command with input from /tmp for images and output to /tmp as video
    4. &#xA;

    5. Push the /tmp video into bucket.
    6. &#xA;

    &#xA;

    On my mac ... it works perfectly fine with the same command and files.

    &#xA;

    Issue :

    &#xA;

      &#xA;
    1. FFMPEG command exit with code 1 in firebase/google cloud function.

      &#xA;

      Spawn error : "name" :"ChildProcessError","code":1,"childProcess" :

      &#xA;

    2. &#xA;

    &#xA;

    Firebase functions (3.11.0) :

    &#xA;

    "engines": {&#xA;  "node": "10"&#xA; },&#xA;

    &#xA;

    Dependencies :

    &#xA;

    "child-process-promise": "^2.2.1",&#xA;"@ffmpeg-installer/ffmpeg": "^1.0.20",&#xA;

    &#xA;

    Code Snippet to reproduce :

    &#xA;

    const spawn = require(&#x27;child-process-promise&#x27;).spawn;&#xA;const { Storage } = require(&#x27;@google-cloud/storage&#x27;);&#xA;var configStorage = {&#xA;  projectId: &#x27;<your project="project">&#x27;,&#xA;  keyFilename: &#x27;<service>.json&#x27;&#xA;};&#xA;const gcs = new Storage(configStorage);&#xA;const path = require(&#x27;path&#x27;);&#xA;const os = require(&#x27;os&#x27;);&#xA;const fs = require(&#x27;fs&#x27;);&#xA;const mkdirp = require(&#x27;mkdirp-promise&#x27;);&#xA;&#xA;const ffmpegPath = require(&#x27;@ffmpeg-installer/ffmpeg&#x27;).path;&#xA;&#xA;&#xA;Var idx = 1;&#xA;var ext = &#x27;.jpeg&#x27;;&#xA;const bucket = gcs.bucket(&#x27;Your_bucket&#x27;);&#xA;const files = [<urls of="of" files="files">];&#xA;Promise.all(files.map(async (file) => {&#xA;  var finalName = &#x27;Imgx&#x27; &#x2B; &#x27;_&#x27; &#x2B; idxs &#x2B; ext;&#xA;  await file.download({ destination: tempDir &#x2B; &#x27;/&#x27; &#x2B; finalName });&#xA;  idx&#x2B;&#x2B;;&#xA;})&#xA;).then(async (result) => {&#xA;  console.log(`cmd -> ffmpegPath [&#x27;-start_number 1&#x27; &#x27;-i&#x27;&#xA;    ${tempDir}/Imgx_%d${ext}&#xA;    ${tempDir}/video/videoFile.mp4&#x27;]`);&#xA;&#xA;  await spawn(ffmpegPath,&#xA;   [&#x27;-start_number 1&#x27;, &#x27;-i&#x27;, tempDir &#x2B; &#x27;/Imgx_%d&#x27; &#x2B; ext,&#xA;    tempDir &#x2B; &#x27;/video/videoFile.mp4&#x27;]);&#xA;&#xA;  await bucket.upload(tempDir &#x2B; &#x27;/video/videoFile.mp4&#x27;, {&#xA;    destination: ‘video/output.mp4&#x27;&#xA;  });&#xA;&#xA;});&#xA;</urls></service></your>

    &#xA;

  • Java open CV hangs on VideoCapture for file if openCV is loaded with nu.pattern.OpenCV.loadShared() ;

    30 septembre 2020, par Ilya Yevlampiev

    I have a sample code from https://ratiler.wordpress.com/2014/09/08/detection-de-mouvement-avec-javacv/ with small difference in loading the open cv library in the static block using nu.pattern.OpenCV.loadShared(); :

    &#xA;

    import java.awt.image.BufferedImage;&#xA;import java.io.ByteArrayInputStream;&#xA;import java.io.IOException;&#xA;import java.io.InputStream;&#xA;&#xA;import javax.imageio.ImageIO;&#xA;import javax.swing.ImageIcon;&#xA;import javax.swing.JFrame;&#xA;import javax.swing.JLabel;&#xA;&#xA;import org.opencv.core.CvType;&#xA;import org.opencv.core.Mat;&#xA;import org.opencv.core.MatOfByte;&#xA;import org.opencv.core.Size;&#xA;import org.opencv.imgcodecs.Imgcodecs;&#xA;import org.opencv.videoio.VideoCapture;&#xA;import org.opencv.imgproc.Imgproc;&#xA;&#xA;public class JavaCVPrjt01 {&#xA;    static {&#xA;        //System.loadLibrary(Core.NATIVE_LIBRARY_NAME);&#xA;        nu.pattern.OpenCV.loadShared();&#xA;    }&#xA;    public static void main(String[] args) {&#xA;        JFrame jframe = new JFrame("HUMAN MOTION DETECTOR FPS");&#xA;        jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&#xA;        JLabel vidpanel = new JLabel();&#xA;        jframe.setContentPane(vidpanel);&#xA;        jframe.setSize(1280,720) ;&#xA;        jframe.setVisible(true);&#xA;&#xA;        Mat frame = new Mat();&#xA;        Mat outerBox = new Mat();&#xA;        Size sz = new Size(1280,720);&#xA;        VideoCapture camera = new VideoCapture("D:/Downloads/video4.mp4");&#xA;&#xA;        while (true) {&#xA;            if (camera.read(frame)) {&#xA;                Imgproc.resize(frame,frame, sz );&#xA;                outerBox = new Mat(frame.size(), CvType.CV_8UC1);&#xA;                Imgproc.cvtColor(frame, outerBox, Imgproc.COLOR_BGR2GRAY);&#xA;                Imgproc.GaussianBlur(outerBox, outerBox, new Size(3, 3), 0);&#xA;&#xA;                ImageIcon image = new ImageIcon(Mat2bufferedImage(outerBox));&#xA;                vidpanel.setIcon(image);&#xA;                vidpanel.repaint();&#xA;&#xA;            }&#xA;        }&#xA;    }&#xA;&#xA;    public static BufferedImage Mat2bufferedImage(Mat image) {&#xA;        MatOfByte bytemat = new MatOfByte();&#xA;        Imgcodecs.imencode(".jpg", image, bytemat);&#xA;        byte[] bytes = bytemat.toArray();&#xA;        InputStream in = new ByteArrayInputStream(bytes);&#xA;        BufferedImage img = null;&#xA;        try {&#xA;            img = ImageIO.read(in);&#xA;        } catch (IOException e) {&#xA;            // TODO Auto-generated catch block&#xA;            e.printStackTrace();&#xA;        }&#xA;        return img;&#xA;    }&#xA;&#xA;}&#xA;

    &#xA;

    and of course, the needed dependencies were added :

    &#xA;

        <dependency>&#xA;        <groupid>org.bytedeco.javacpp-presets</groupid>&#xA;        <artifactid>opencv</artifactid>&#xA;        <version>3.2.0-1.3</version>&#xA;    </dependency>&#xA;&#xA;    <dependency>&#xA;        <groupid>org.openpnp</groupid>&#xA;        <artifactid>opencv</artifactid>&#xA;        <version>3.2.0-1</version>&#xA;    </dependency>&#xA;

    &#xA;

    so, code is executed right before

    &#xA;

    VideoCapture camera = new VideoCapture("D:/Downloads/video4.mp4");&#xA;

    &#xA;

    where it hangs and I have no clues to check what is wrong on the JNI level there.

    &#xA;