Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (53)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

Sur d’autres sites (7442)

  • JavaCV generate video from images Crashes

    2 décembre 2014, par Mohammad Khatri

    I am doing javacv with android since yesterday and getting error while generating video from image (IplImage) using FFmpegFrameRecorder or FrameRecorder while getting succes in imagefiltering using cvCvtColor and cvCvtColor.

    grayscale

    As shown in picture , Grayscale and flip filter is done by clicking second Button (Apply Effect).

    But when clicking (Make Video) it crashes.

    Here is my code for making video from image.

    String path = Environment.getExternalStorageDirectory().getPath() + "/test.mp4";
    Log.i("path", path);
    FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(path, 256, 256);
    try {

       recorder.setVideoCodec(avcodec.AV_CODEC_ID_MPEG4);
       // recorder.setCodecID(avcodec.AV_CODEC_ID_H263);
       recorder.setFormat("mp4");
       recorder.setPixelFormat(avutil.AV_PIX_FMT_YUV420P);
       recorder.start();
       for (int i = 0; i < 10; i++) {

           recorder.record(image);
       }
       recorder.stop();
    } catch (Exception e) {

       e.printStackTrace();
    }

    image is of type IplImage

    getting error on recorder object creation.

    I am using 2 devices

    1)Asus zenfone 5

    Stacktrace

    Caused by: java.lang.NoClassDefFoundError: java.lang.ClassNotFoundException: org.bytedeco.javacpp.avcodec
               at org.bytedeco.javacpp.Loader.load(Loader.java:387)
               at org.bytedeco.javacpp.Loader.load(Loader.java:353)
               at org.bytedeco.javacpp.avformat.<clinit>(avformat.java:13)
               at org.bytedeco.javacv.FFmpegFrameRecorder.<clinit>(FFmpegFrameRecorder.java:106)
               at com.example.javacvex1.MainActivity$asyncImageProcVideo.makeVideo(MainActivity.java:191)
               at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:180)
               at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:152)
               at android.os.AsyncTask$2.call(AsyncTask.java:288)
               at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                at java.lang.Thread.run(Thread.java:841)
        Caused by: java.lang.ClassNotFoundException: org.bytedeco.javacpp.avcodec
               at java.lang.Class.classForName(Native Method)
               at java.lang.Class.forName(Class.java:251)
               at org.bytedeco.javacpp.Loader.load(Loader.java:385)
                at org.bytedeco.javacpp.Loader.load(Loader.java:353)
                at org.bytedeco.javacpp.avformat.<clinit>(avformat.java:13)
                at org.bytedeco.javacv.FFmpegFrameRecorder.<clinit>(FFmpegFrameRecorder.java:106)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.makeVideo(MainActivity.java:191)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:180)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:152)
                at android.os.AsyncTask$2.call(AsyncTask.java:288)
                at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                at java.lang.Thread.run(Thread.java:841)
        Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app-lib/com.example.javacvex1-1/libjniavcodec.so" has unexpected e_machine: 40
               at java.lang.Runtime.loadLibrary(Runtime.java:364)
               at java.lang.System.loadLibrary(System.java:526)
               at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
               at org.bytedeco.javacpp.Loader.load(Loader.java:410)
               at org.bytedeco.javacpp.Loader.load(Loader.java:353)
               at org.bytedeco.javacpp.avcodec.<clinit>(avcodec.java:12)
                at java.lang.Class.classForName(Native Method)
                at java.lang.Class.forName(Class.java:251)
                at org.bytedeco.javacpp.Loader.load(Loader.java:385)
                at org.bytedeco.javacpp.Loader.load(Loader.java:353)
                at org.bytedeco.javacpp.avformat.<clinit>(avformat.java:13)
                at org.bytedeco.javacv.FFmpegFrameRecorder.<clinit>(FFmpegFrameRecorder.java:106)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.makeVideo(MainActivity.java:191)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:180)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:152)
                at android.os.AsyncTask$2.call(AsyncTask.java:288)
                at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                at java.lang.Thread.run(Thread.java:841)
        Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app-lib/com.example.javacvex1-1/libavcodec.so" has unexpected e_machine: 40
    </clinit></clinit></clinit></clinit></clinit></clinit></clinit>

    2) Htc me tablet

    (Stacktrace)

    Caused by: java.lang.ExceptionInInitializerError
               at com.example.javacvex1.MainActivity$asyncImageProcVideo.makeVideo(MainActivity.java:191)
               at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:180)
               at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:152)
               at android.os.AsyncTask$2.call(AsyncTask.java:264)
               at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
                at java.util.concurrent.FutureTask.run(FutureTask.java:137)
                at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
                at java.lang.Thread.run(Thread.java:856)
        Caused by: java.lang.ExceptionInInitializerError
               at org.bytedeco.javacv.FFmpegFrameRecorder.<clinit>(FFmpegFrameRecorder.java:106)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.makeVideo(MainActivity.java:191)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:180)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:152)
                at android.os.AsyncTask$2.call(AsyncTask.java:264)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
                at java.util.concurrent.FutureTask.run(FutureTask.java:137)
                at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
                at java.lang.Thread.run(Thread.java:856)
        Caused by: java.lang.ExceptionInInitializerError
               at java.lang.Class.classForName(Native Method)
               at java.lang.Class.forName(Class.java:217)
               at org.bytedeco.javacpp.Loader.load(Loader.java:385)
               at org.bytedeco.javacpp.Loader.load(Loader.java:353)
               at org.bytedeco.javacpp.avformat.<clinit>(avformat.java:13)
                at org.bytedeco.javacv.FFmpegFrameRecorder.<clinit>(FFmpegFrameRecorder.java:106)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.makeVideo(MainActivity.java:191)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:180)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:152)
                at android.os.AsyncTask$2.call(AsyncTask.java:264)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
                at java.util.concurrent.FutureTask.run(FutureTask.java:137)
                at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
                at java.lang.Thread.run(Thread.java:856)
        Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1936]:    76 could not load needed library 'libavcodec.so' for 'libjniavcodec.so' (find_library[1199]:    76 'libavcodec.so' failed to load previously)
               at java.lang.Runtime.loadLibrary(Runtime.java:370)
               at java.lang.System.loadLibrary(System.java:535)
               at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
               at org.bytedeco.javacpp.Loader.load(Loader.java:410)
               at org.bytedeco.javacpp.Loader.load(Loader.java:353)
               at org.bytedeco.javacpp.avcodec.<clinit>(avcodec.java:12)
                at java.lang.Class.classForName(Native Method)
                at java.lang.Class.forName(Class.java:217)
                at org.bytedeco.javacpp.Loader.load(Loader.java:385)
                at org.bytedeco.javacpp.Loader.load(Loader.java:353)
                at org.bytedeco.javacpp.avformat.<clinit>(avformat.java:13)
                at org.bytedeco.javacv.FFmpegFrameRecorder.<clinit>(FFmpegFrameRecorder.java:106)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.makeVideo(MainActivity.java:191)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:180)
                at com.example.javacvex1.MainActivity$asyncImageProcVideo.doInBackground(MainActivity.java:152)
                at android.os.AsyncTask$2.call(AsyncTask.java:264)
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
                at java.util.concurrent.FutureTask.run(FutureTask.java:137)
                at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
                at java.lang.Thread.run(Thread.java:856)
        Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1936]:    76 could not load needed library 'libswresample.so' for 'libavcodec.so' (load_library[1091]: Library 'libswresample.so' not found)
    </clinit></clinit></clinit></clinit></clinit></clinit>

    At last I am putting my build.gradle with jniLibs on left side.

    enter image description here

    No luck with answers from other questions. Stuck since last 24 hours. :(

    Any help will be great.

  • sdp : Add an option for sending RTCP packets to the source of the last packets

    13 août 2013, par Martin Storsjö
    sdp : Add an option for sending RTCP packets to the source of the last packets
    

    An SDP description normally only contains the target IP address
    and port for the packets. This means that we don’t really have
    any clue where to send the RTCP RR packets - previously they’re
    sent to the destination IP written in the SDP (at the same port),
    which rarely is the actual peer. And if the source for the packets
    is on a different port than the destination, it’s never correct.

    With a new option, we can choose to send the packets to the
    address that the latest packet on each socket arrived from.
    — -
    Some may even argue that this should be the default - perhaps,
    but I’d rather keep it optional at first. Additionally, I’m not
    sure if sending RTCP RR directly back to the source is
    desireable for e.g. multicast.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavformat/rtsp.c
    • [DH] libavformat/rtsp.h
  • sdp : Add an option for sending RTCP packets to the source of the last packets

    13 août 2013, par Martin Storsjö
    sdp : Add an option for sending RTCP packets to the source of the last packets
    

    An SDP description normally only contains the target IP address
    and port for the packets. This means that we don’t really have
    any clue where to send the RTCP RR packets - previously they’re
    sent to the destination IP written in the SDP (at the same port),
    which rarely is the actual peer. And if the source for the packets
    is on a different port than the destination, it’s never correct.

    With a new option, we can choose to send the packets to the
    address that the latest packet on each socket arrived from.
    — -
    Some may even argue that this should be the default - perhaps,
    but I’d rather keep it optional at first. Additionally, I’m not
    sure if sending RTCP RR directly back to the source is
    desireable for e.g. multicast.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavformat/rtsp.c
    • [DBH] libavformat/rtsp.h