Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (111)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

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

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

Sur d’autres sites (6895)

  • clang++ : error : linker command failed with exit code 1 (use -v to see invocation) [duplicate]

    1er avril 2020, par Pradeep Simba

    When I build ndk with ffmpeg it occurs error.

    



    enter image description here

    



    Android.mk file

    



    LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES += ./include
LOCAL_MODULE     := native-lib
LOCAL_CFLAGS := -DSTDC_HEADERS -std=c99
LOCAL_CFLAGS := -Wno-pointer-sign
LOCAL_ARM_MODE := arm
APP_OPTIM := release
LOCAL_SRC_FILES  := \
./native-lib.cpp
LOCAL_LDLIBS := -llog
include $(BUILD_SHARED_LIBRARY)


    



    native-lib.cpp file

    



    #include &#xA;#include <string>&#xA;&#xA;extern "C"&#xA;{&#xA;#include "libavcodec/avcodec.h"&#xA;#include "libavformat/avformat.h"&#xA;#include "libavutil/opt.h"&#xA;}&#xA;&#xA;extern "C" JNIEXPORT jstring JNICALL&#xA;Java_com_example_m_MainActivity_stringFromJNI(&#xA;    JNIEnv* env,&#xA;    jobject /* this */) {&#xA;std::string hello = "Hello from C&#x2B;&#x2B;";&#xA;av_register_all();&#xA;return env->NewStringUTF(hello.c_str());&#xA;}&#xA;</string>

    &#xA;&#xA;

    When I build ndk this error occurs.

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    D:\Github\n>ndk-build&#xA;Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.&#xA;[arm64-v8a] Compile&#x2B;&#x2B;      : native-lib &lt;= native-lib.cpp&#xA;[arm64-v8a] SharedLibrary  : libnative-lib.so&#xA;./obj/local/arm64-v8a/objs/native-lib/./libmp3lame/native-lib.o: In function `Java_com_example_m_MainActivity_stringFromJNI&#x27;:&#xA;D:\Github\n/jni/./libmp3lame/native-lib.cpp:16: undefined reference to `av_register_all&#x27;&#xA;clang&#x2B;&#x2B;: error: linker command failed with exit code 1 (use -v to see invocation)&#xA;make: *** [D:/install/sdk/ndk/21.0.6113669/build//../build/core/build-binary.mk:725: obj/local/arm64-v8a/libnative-lib.so] Error 1&#xA;&#xA;D:\Github\n>ndk-build -v&#xA;GNU Make 4.2.1&#xA;Built for x86_64-w64-mingw32&#xA;Copyright (C) 1988-2016 Free Software Foundation, Inc.&#xA;License GPLv3&#x2B;: GNU GPL version 3 or later /gnu.org/licenses/gpl.html>&#xA;This is free software: you are free to change and redistribute it.&#xA;There is NO WARRANTY, to the extent permitted by law.&#xA;&#xA;D:\Github\n>&#xA;

    &#xA;&#xA;

    why it comes like this native-lib.cpp:16: undefined reference av_register_all ?

    &#xA;&#xA;

    I added all the required libs in my jni folder . but, why this error and this native-lib.cpp:16 : undefined reference av_register_all comes ?

    &#xA;&#xA;

    How can I solve this ?

    &#xA;

  • Efficient and Perfect way to extract frames from a large size video using python or ffmpeg according the timecode given

    5 avril 2020, par Yong En

    let's say I have a video from youtube with at least 600 MB. The video is used for annotation where I have the annotated information in another text file. The annotation file has the timecode in millisecond (SSSS.ss). What I am trying to do is going into the timecode on the video and getting out the frames within the this period (TWO timecodes). There are TWO approaches that I used with different tools, one is using openCV in python and FFmpeg in bash script :

    &#xA;&#xA;

    I would stick with few variables here,

    &#xA;&#xA;

      &#xA;
    • fps = 25
    • &#xA;

    • timecode (after convert into second) = 333.44 to 334.00 take note that I am dealing with time period that might less than a second.
    • &#xA;

    &#xA;&#xA;

    openCV

    &#xA;&#xA;

      &#xA;
    1. Using openCV in python, I read the video into frame by frame. Ends up with a numpy array.
    2. &#xA;

    3. Using the fps from video, eg. fps = 25. I can estimate where does the frames that fall under this time period which give me what I want.
    4. &#xA;

    5. Problem here is I will missed out some frames here due to the video fps is not really 25 as given by the video misinformation, it could 24.xx. Any solutions ?
    6. &#xA;

    &#xA;&#xA;

    ffmpeg

    &#xA;&#xA;

      &#xA;
    1. What I did, every time I want to get the frames, I run the script.
    2. &#xA;

    3. Problem here is I need to read the video 100 times if I have 100 time periods. Any ways to overcome this ?
    4. &#xA;

    &#xA;&#xA;

    Thanks for reading it.

    &#xA;

  • clang++ : error : linker command failed with exit code 1 (use -v to see invocation) in cpp with ffmpeg

    6 avril 2020, par Pradeep Simba
    clang&#x2B;&#x2B;: error: linker command failed with exit code 1 (use -v to see invocation)&#xA;

    &#xA;&#xA;

    I saw this link and link2. But, it not done.

    &#xA;&#xA;

    My jni folder :

    &#xA;&#xA;

    enter image description here

    &#xA;&#xA;

    Android.mk file

    &#xA;&#xA;

    LOCAL_PATH := $(call my-dir)&#xA;include $(CLEAR_VARS)&#xA;LOCAL_C_INCLUDES &#x2B;= ./include&#xA;LOCAL_MODULE     := native-lib&#xA;LOCAL_CFLAGS := -DSTDC_HEADERS -std=c99&#xA;LOCAL_CFLAGS := -Wno-pointer-sign&#xA;LOCAL_ARM_MODE := arm&#xA;APP_OPTIM := release&#xA;LOCAL_SRC_FILES  := \&#xA;./native-lib.cpp&#xA;LOCAL_LDLIBS := -llog&#xA;include $(BUILD_SHARED_LIBRARY)&#xA;

    &#xA;&#xA;

    native-lib.cpp file

    &#xA;&#xA;

    #include &#xA;#include <string>&#xA;&#xA;extern "C"&#xA;{&#xA;#include "libavcodec/avcodec.h"&#xA;#include "libavformat/avformat.h"&#xA;#include "libavutil/opt.h"&#xA;}&#xA;&#xA;extern "C" JNIEXPORT jstring JNICALL&#xA;Java_com_example_m_MainActivity_stringFromJNI(&#xA;JNIEnv* env,&#xA;jobject /* this */) {&#xA;std::string hello = "Hello from C&#x2B;&#x2B;";&#xA;av_register_all();&#xA;return env->NewStringUTF(hello.c_str());&#xA;}&#xA;</string>

    &#xA;&#xA;

    When I build ndk this error occurs.

    &#xA;&#xA;

    D:\Github\n>ndk-build&#xA;Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.&#xA;[arm64-v8a] Compile&#x2B;&#x2B;      : native-lib &lt;= native-lib.cpp&#xA;[arm64-v8a] SharedLibrary  : libnative-lib.so&#xA;./obj/local/arm64-v8a/objs/native-lib/./libmp3lame/native-lib.o: In function `Java_com_example_m_MainActivity_stringFromJNI&#x27;:&#xA;D:\Github\n/jni/./libmp3lame/native-lib.cpp:16: undefined reference to `av_register_all&#x27;&#xA;clang&#x2B;&#x2B;: error: linker command failed with exit code 1 (use -v to see invocation)&#xA;make: *** [D:/install/sdk/ndk/21.0.6113669/build//../build/core/build-binary.mk:725: obj/local/arm64-v8a/libnative-lib.so] Error 1&#xA;&#xA;D:\Github\n>ndk-build -v&#xA;GNU Make 4.2.1&#xA;Built for x86_64-w64-mingw32&#xA;Copyright (C) 1988-2016 Free Software Foundation, Inc.&#xA;License GPLv3&#x2B;: GNU GPL version 3 or later /gnu.org/licenses/gpl.html>&#xA;This is free software: you are free to change and redistribute it.&#xA;There is NO WARRANTY, to the extent permitted by law.&#xA;&#xA;D:\Github\n>&#xA;

    &#xA;&#xA;

    why it comes like this native-lib.cpp:16: undefined reference av_register_all ?

    &#xA;&#xA;

    I added all the required libs in my jni folder but, why this error and this native-lib.cpp:16: undefined reference av_register_all comes ?&#xA;How can I solve this ?

    &#xA;