Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (108)

Sur d’autres sites (15584)

  • FFMPEG API : How to connect to RTSP stream using av_open_input_file ?

    10 novembre 2011, par Alex

    I'm trying to connect to some RTSP stream using av_open_input_file() like this :

    AVFormatContext* ic;
    avcodec_register_all();
    av_register_all();
    av_open_input_file(&ic, "rtsp://login:password@xxx.xxx.xxx.xxx/videoinput_1/mjpeg/media.stm", NULL, 4096, NULL);

    It always returns 'file not found'. The same url, though, I can see in, say, VLC player. Do I do something wrong in my code ?

    I'm using FFMPEG 0.6, shall I use the latest instead ?

  • AndroidBitmap_lockPixels always failing

    20 septembre 2017, par Hadj Ali Oussama

    In my jni module I copy images to bitmaps, which were previously
    passed from my java application.

    I do this using AndroidBitmap_lockPixels/AndroidBitmap_unlockPixels.
    Basically, it renders the image correctly, but there’re strange
    effects : sometimes the application gets stuck, or after some time
    AndroidBitmap_lockPixels always returns -3

    (ANDROID_BITMAP_RESULT_ALLOCATION_FAILED). I guess this is because I
    update these bitmaps not from the GUI thread, isn’t it ?

    If so, what would be correct way to "post" this operation to the GUI

    thread ? Is it possible in jni ?

    Thanks.

  • AndroidBitmap_lockPixels always failing

    25 avril 2013, par user1568549

    In my jni module I copy images to bitmaps, which were previously
    passed from my java application.

    I do this using AndroidBitmap_lockPixels/AndroidBitmap_unlockPixels.
    Basically, it renders the image correctly, but there're strange
    effects : sometimes the application gets stuck, or after some time
    AndroidBitmap_lockPixels always returns -3

    (ANDROID_BITMAP_RESULT_ALLOCATION_FAILED). I guess this is because I
    update these bitmaps not from the GUI thread, isn't it ?

    If so, what would be correct way to "post" this operation to the GUI

    thread ? Is it possible in jni ?

    Thanks.