Recherche avancée

Médias (91)

Autres articles (104)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (10916)

  • How to use ffmpeg .so file in Android application

    17 décembre 2018, par Ravi

    I have compiled ffmpeg code and generated .so files,
    Then I put these .so files in jniLibs/armeabi/ folder.

    To use it below code :

    Controller.java
    public class Controller {

       static {
           System.loadLibrary("avutil");
           System.loadLibrary("swresample");
           System.loadLibrary("avcodec");
           System.loadLibrary("avformat");
           System.loadLibrary("swscale");
           System.loadLibrary("avfilter");
           System.loadLibrary("avdevice");
       }

       public static native void runffmpegCommand(String[] argv);

       public static void testFFMPEG(String[] strings) {
           runffmpegCommand(new String[]);
       }
    }

    ffmpeg_controller.c

    #include <android></android>log.h>
    #include "ffmpeg_Controller.h"
    #include
    #include
    int main(int argc, char **argv);
    JavaVM *sVm = NULL;
    jint JNI_OnLoad( JavaVM* vm, void* reserved )
    {
       sVm = vm;
       return JNI_VERSION_1_6;
    }
    JNIEXPORT void JNICALL Java_com_test_Controller_runffmpegCommand(JNIEnv *env, jobject obj, jobjectArray args)
    {
       int i = 0;
       int argc = 0;
       char **argv = NULL;
       jstring *strr = NULL;
       if (args != NULL) {
           argc = (*env)->GetArrayLength(env, args);
           argv = (char **) malloc(sizeof(char *) * argc);
           strr = (jstring *) malloc(sizeof(jstring) * argc);
           for(i=0;iGetObjectArrayElement(env, args, i);
               argv[i] = (char *)(*env)->GetStringUTFChars(env, strr[i], 0);
           }
       }
       main(argc, argv);
       for(i=0;iReleaseStringUTFChars(env, strr[i], argv[i]);
       }
       free(argv);
       free(strr);
    }

    ffmpeg_controller.h

    #include
    #ifndef _Included_com_test_Controller
    #define _Included_com_test_Controller
    #ifdef __cplusplus
    extern "C" {
    #endif

    JNIEXPORT void JNICALL Java_com_android_com_test_Controller_runffmpegCommand(JNIEnv *, jobject, jobjectArray);
    #ifdef __cplusplus
    }
    #endif
    #endif

    When I run this code it through error as below :

    Logs :

    2018-12-17 14:11:17.850 25598-25598/com.android.test E/AndroidRuntime : FATAL EXCEPTION : main
    Process : com.android.test, PID : 25598
    java.lang.UnsatisfiedLinkError : dlopen failed : "/data/app/com.android.test-1/lib/arm/libavutil.so" is 64-bit instead of 32-bit
    at java.lang.Runtime.loadLibrary0(Runtime.java:989)
    at java.lang.System.loadLibrary(System.java:1530)

  • JavaCV convertToIplImage return NULL

    20 juin 2015, par user2642182

    In JavaCV used in Android,while converting Frame to IplImage for applying color effect on video,we are NullPointerException.NPE is only encountered for some of the Frames in the Video.

    ...
    while (true) {
      Log.d("JAVA_CV", "Counting . . . " + count);
      Frame original_frame = ffg.grab();
       if (original_frame == null) {

                       Log.d("JAVA_CV", "original_frame is NULL at" + count);
                       break;
                   } else {
                       Log.d("JAVA_CV", "original_frame is NOT_NULL at" + count);
                       if (converter == null) {
                           Log.d("JAVA_CV", "converter is null at position" +count);
                           continue;

                       }
                       opencv_core.IplImage frame1 = null;
                       if (original_frame != null) {
                           frame1 = converter.convertToIplImage(original_frame);
                       } else {
                           continue;
                       }

                       if (frame1 == null) {
                           Log.d("JAVA_CV", "frame1 is NULL at" + count);
                       } else {

                           if (!frame1.isNull() &amp;&amp; original_frame.image != null) {


                               int width = frame1.width();
                               int height = frame1.height();
                               int channel = frame1.nChannels();
                               opencv_core.IplImage frame2 = opencv_core.IplImage.create(width, height, opencv_core.IPL_DEPTH_8U, channel);
                               if (frame2 == null)
                                   continue;
                               opencv_core.cvCopy(frame1, frame2);
                               opencv_core.IplImage frame3 = opencv_core.IplImage.create(width, height, opencv_core.IPL_DEPTH_8U, 1);
                               if (frame3 == null)
                                   continue;
                               opencv_imgproc.cvCvtColor(frame2, frame3, opencv_imgproc.CV_BGRA2GRAY);

                               Log.d("JAVA_CV", "frame1 is NOT_NULL at" + count + " Height " + frame1.height());
                               Frame resultFrame = converter.convert(frame3);
                               if (resultFrame == null)
                                   continue;
                               recorder.record(resultFrame);
                               frame1.release();
                               frame2.release();
                               frame3.release();
                               original_frame = null;
                           } else {
                               break;
                           }
                       }
                   }
                   count++;
               }
    ...

    The Exception stack is here :

    06-20 12:00:57.664  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ java.lang.NullPointerException: This pointer address is NULL.
    06-20 12:00:57.664  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at org.bytedeco.javacpp.opencv_core$IplImage.width(Native Method)
    06-20 12:00:57.664  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at org.bytedeco.javacv.OpenCVFrameConverter.isEqual(OpenCVFrameConverter.java:75)
    06-20 12:00:57.664  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at org.bytedeco.javacv.OpenCVFrameConverter.convertToIplImage(OpenCVFrameConverter.java:85)
    06-20 12:00:57.664  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at org.bytedeco.javacv.OpenCVFrameConverter$ToIplImage.convert(OpenCVFrameConverter.java:41)
    06-20 12:00:57.664  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at com.appxperts.opencvfirstapp.MainActivitySecond.kaamdg(MainActivitySecond.java:161)
    06-20 12:00:57.664  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at com.appxperts.opencvfirstapp.MainActivitySecond$1.onClick(MainActivitySecond.java:62)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at android.view.View.performClick(View.java:4463)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at android.view.View$PerformClick.run(View.java:18789)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at android.os.Handler.handleCallback(Handler.java:808)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at android.os.Handler.dispatchMessage(Handler.java:103)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at android.os.Looper.loop(Looper.java:193)`enter code here`
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5299)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at java.lang.reflect.Method.invokeNative(Native Method)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at java.lang.reflect.Method.invoke(Method.java:515)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
    06-20 12:00:57.665  30245-30245/com.appxperts.opencvfirstapp W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
  • Issue with Quick Sync Video (QSV) Hardware Acceleration in FFmpeg

    6 mars 2024, par Linganiveth S.G

    It appears that FFmpeg is unable to create the necessary QSV device for decoding the H.264 video stream.

    &#xA;

    I am writing to report an issue I encountered while attempting to use No device available for decoder error. hardware acceleration with FFmpeg on my system.

    &#xA;

    When I run the following command to test QSV hardware acceleration :

    &#xA;

    ./ffmpeg -hwaccel qsv -i input.mp4 output.ts

    &#xA;

    I encounter the following error :

    &#xA;

    [AVHWDeviceContext @ 0x558c6886a5c0] Error setting child device handle: -17&#xA;Device creation failed: -1313558101.&#xA;No device available for decoder: device type qsv needed for codec h264_qsv.&#xA;

    &#xA;

    It appears that FFmpeg is unable to create the necessary QSV device for decoding the H.264 video stream.

    &#xA;

    Here are some additional details about my system :

    &#xA;

    **- Operating System : Ubuntu 22.04.4 LTS

    &#xA;

      &#xA;
    • FFmpeg Version : 6.0
    • &#xA;

    • Processor : 12th Gen Intel(R) Core(TM) i5-12400
    • &#xA;

    • Graphics Card : Mesa Intel® UHD Graphics 730 (ADL-S GT1)**
    • &#xA;

    &#xA;

    I have ensured that my system meets the requirements for QSV hardware acceleration, but I am still encountering this issue.

    &#xA;

    Could anyone please assist me in resolving this issue ? Any guidance or suggestions provided would be greatly appreciated.

    &#xA;