Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (89)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (7537)

  • I can find file in my computer , but it can't open

    12 septembre 2020, par Wendy Chen
     using FFMPEG
 FFMPEG.exe("-i", "rtsp://......@.....", "-t" , "00:00:10","output.mp4")


    


    but it showed

    


     [udp @ 00000265e8aa8c80] 'circular_buffer_size' option was set but it is not 
 supported on this build (pthread support is required)
 [udp @ 00000265e8ab8f80] 'circular_buffer_size' option was set but it is not 
 supported on this build (pthread support is required)
 [udp @ 00000265e8ac9800] 'circular_buffer_size' option was set but it is not 
 supported on this build (pthread support is required)
 [udp @ 00000265e8ad9ac0] 'circular_buffer_size' option was set but it is not 
 supported on this build (pthread support is required)
 [rtsp @ 00000265e8aa6200] UDP timeout, retrying with TCP
 [rtsp @ 00000265e8aa6200] method PAUSE failed: 401 Unauthorized
 [rtsp @ 00000265e8aa6200] Could not find codec parameters for stream 0 (Video: h264, 
 none): unspecified size


    


    I can find file in my computer , but it can't play.
What I need to add ?

    


  • 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(); :

    


    import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;

import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.core.MatOfByte;
import org.opencv.core.Size;
import org.opencv.imgcodecs.Imgcodecs;
import org.opencv.videoio.VideoCapture;
import org.opencv.imgproc.Imgproc;

public class JavaCVPrjt01 {
    static {
        //System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
        nu.pattern.OpenCV.loadShared();
    }
    public static void main(String[] args) {
        JFrame jframe = new JFrame("HUMAN MOTION DETECTOR FPS");
        jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JLabel vidpanel = new JLabel();
        jframe.setContentPane(vidpanel);
        jframe.setSize(1280,720) ;
        jframe.setVisible(true);

        Mat frame = new Mat();
        Mat outerBox = new Mat();
        Size sz = new Size(1280,720);
        VideoCapture camera = new VideoCapture("D:/Downloads/video4.mp4");

        while (true) {
            if (camera.read(frame)) {
                Imgproc.resize(frame,frame, sz );
                outerBox = new Mat(frame.size(), CvType.CV_8UC1);
                Imgproc.cvtColor(frame, outerBox, Imgproc.COLOR_BGR2GRAY);
                Imgproc.GaussianBlur(outerBox, outerBox, new Size(3, 3), 0);

                ImageIcon image = new ImageIcon(Mat2bufferedImage(outerBox));
                vidpanel.setIcon(image);
                vidpanel.repaint();

            }
        }
    }

    public static BufferedImage Mat2bufferedImage(Mat image) {
        MatOfByte bytemat = new MatOfByte();
        Imgcodecs.imencode(".jpg", image, bytemat);
        byte[] bytes = bytemat.toArray();
        InputStream in = new ByteArrayInputStream(bytes);
        BufferedImage img = null;
        try {
            img = ImageIO.read(in);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return img;
    }

}


    


    and of course, the needed dependencies were added :

    


        <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;

  • C++ - FFmpeg can't open hevc encoded *.mkv

    6 octobre 2020, par emdou

    I finally got the courage to tackle ffmpeg in C++ (and in general) for a stream extracting app but i'm stuck at loading the AVFormatContext using avformat_open_input, here is the actual code :

    &#xA;

    int main(int argc, char *argv[])&#xA;{&#xA;    QCoreApplication a(argc, argv);&#xA;&#xA;    AVFormatContext *formatContext = nullptr;&#xA;    AVDictionaryEntry *dictEntry = nullptr;&#xA;    int result = 0;&#xA;    char filePath[] = "C:/Users/username/Downloads/test.mkv";&#xA;&#xA;    if ((result = avformat_open_input(&amp;formatContext, filePath, NULL, NULL)) &lt; 0){&#xA;        av_log(NULL, AV_LOG_ERROR, "Cannot open file\n");&#xA;        result = AVERROR(result);&#xA;        goto cleanup;&#xA;    }&#xA;&#xA;    while ((dictEntry = av_dict_get(formatContext->metadata, "", dictEntry, AV_DICT_IGNORE_SUFFIX))){&#xA;        qDebug() &lt;&lt; dictEntry->key &lt;&lt; " : " &lt;&lt; dictEntry->value;&#xA;    }&#xA;&#xA;cleanup:&#xA;    if (result &lt; 0){&#xA;        char err[1024];&#xA;        av_strerror(result, err, 1024);&#xA;        qDebug() &lt;&lt; err;&#xA;    }&#xA;    avformat_close_input(&amp;formatContext);&#xA;&#xA;    return a.exec();&#xA;}&#xA;

    &#xA;

    I end up with an error -12 as in "Cannot allocate memory" and exit code -1073741510.&#xA;This same sample is tested on an .mp4 file wich works just fine. What am I doing wrong ?

    &#xA;