Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (42)

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

  • 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

Sur d’autres sites (6582)

  • Android Java — Using and building FFMPEG library in Android Studio(Cmake)

    12 septembre 2017, par y3k00000

    As title, I’m trying to use the ffmpeg source code as library in Android Studio on Ubuntu Linux, but meeting some trouble in compilation stage. I think I must be missing some compile option but having no idea what I miss, can somebody lend a hand ?

    My codes & settings are below :

    A simple auto-generated .cpp

    #include
    #include <string>
    #include "libavcodec/aacenc.h"

    extern "C"
    JNIEXPORT jstring JNICALL
    Java_y3k_testffmpegnative_MainActivity_stringFromJNI(
           JNIEnv *env,
           jobject /* this */) {
       std::string hello = "Hello from C++";
       return env->NewStringUTF(hello.c_str());
    }

    AACEncContext * aacEncContext; // Just trying by adding this.
    </string>

    I’ve tried these Gradle setting and it didn’t help :

    android {
       ....
       externalNativeBuild {
           cmake {
               arguments "-DANDROID_TOOLCHAIN=clang"
               cFlags "-std=c99"
               cppFlags "-frtti","-fexceptions"
           }
       }
    }
    ....

    CMakeLists.txt

    (Android Studio generated)
    ....
    include_directories( /home/y3k/ffmpeg )

    Error message while compiling :

    /home/y3k/ffmpeg/libavutil/float_dsp.h
    Error:(164, 50) error: expected ')'
    Information:(164, 30) to match this '('
    Error:(164, 50) error: expected ')'
    Information:(164, 30) note: to match this '('
    /home/y3k/ffmpeg/libavutil/fixed_dsp.h
    Error:(153, 44) error: expected ')'
    Information:(153, 30) to match this '('
    Error:(153, 44) error: expected ')'
    Information:(153, 30) note: to match this '('
    /home/y3k/ffmpeg/libavcodec/mpeg4audio.h
    Error:(44, 8) error: unknown type name 'av_export'
    Error:(44, 18) error: expected unqualified-id
    Error:(44, 8) error: unknown type name 'av_export'
    Error:(44, 18) error: expected unqualified-id
    /home/y3k/ffmpeg/libavcodec/aac.h
    Error:(294, 21) error: expected member name or ';' after declaration specifiers
    Error:(294, 21) error: expected member name or ';' after declaration specifiers

    FFMpeg config.h generated by this script :

    NDK=/home/y3k/Android/Sdk/ndk-bundle
    SYSROOT=$NDK/platforms/android-23/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
    function build_one
    {
    ./configure \
    --prefix=$PREFIX \
    --disable-shared \
    --enable-static \
    --disable-doc \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-avdevice \
    --disable-doc \
    --disable-symver \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
    --target-os=linux \
    --arch=arm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
    --extra-ldflags="$ADDI_LDFLAGS" \
    $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make
    make install
    }
    CPU=arm
    PREFIX=$(pwd)/android/$CPU
    ADDI_CFLAGS="-marm"
    build_one

    By tracing the errors I found these lines :

    in float_dsp.h, fixed_dsp.h :

    void (*butterflies_float)(float *av_restrict v1, float *av_restrict v2, int len);

    av_restrict defined in config.h

    #define av_restrict restrict

    in aac.h :

    ....
    struct AACContext {
       AVClass        *class;
    ....

    in mpeg4audio.h :

    extern av_export const int avpriv_mpeg4audio_sample_rates[16];

    So I’m guessing it’s because the compiler misrecognized the C code as C++, I tried adding these :

    arguments "-DANDROID_TOOLCHAIN=clang"
    cFlags "-std=c99"

    to my build.gradle but didn’t help. Having no idea where to move on. :(

    I’m using the latest stable version of Android Studio on Ubuntu desktop. Please don’t be hesitate to ask if any extra information is required.

    Also I’ve been tried edit my native-lib.cpp into .c (Surely with the code contents changed), but wasn’t working either.

    Appreciate for any help.

  • Using and building FFMPEG library in Android Studio(Cmake)

    8 septembre 2017, par y3k00000

    As title, I’m trying to use the ffmpeg source code as library in Android Studio on Ubuntu Linux, but meeting some trouble in compilation stage. I think I must be missing some compile option but having no idea what I miss, can somebody lend a hand ?

    My codes & settings are below :

    A simple auto-generated .cpp

    #include
    #include <string>
    #include "libavcodec/aacenc.h"

    extern "C"
    JNIEXPORT jstring JNICALL
    Java_y3k_testffmpegnative_MainActivity_stringFromJNI(
           JNIEnv *env,
           jobject /* this */) {
       std::string hello = "Hello from C++";
       return env->NewStringUTF(hello.c_str());
    }

    AACEncContext * aacEncContext; // Just trying by adding this.
    </string>

    I’ve tried these Gradle setting and it didn’t help :

    android {
       ....
       externalNativeBuild {
           cmake {
               arguments "-DANDROID_TOOLCHAIN=clang"
               cFlags "-std=c99"
               cppFlags "-frtti","-fexceptions"
           }
       }
    }
    ....

    CMakeLists.txt

    (Android Studio generated)
    ....
    include_directories( /home/y3k/ffmpeg )

    Error message while compiling :

    /home/y3k/ffmpeg/libavutil/float_dsp.h
    Error:(164, 50) error: expected ')'
    Information:(164, 30) to match this '('
    Error:(164, 50) error: expected ')'
    Information:(164, 30) note: to match this '('
    /home/y3k/ffmpeg/libavutil/fixed_dsp.h
    Error:(153, 44) error: expected ')'
    Information:(153, 30) to match this '('
    Error:(153, 44) error: expected ')'
    Information:(153, 30) note: to match this '('
    /home/y3k/ffmpeg/libavcodec/mpeg4audio.h
    Error:(44, 8) error: unknown type name 'av_export'
    Error:(44, 18) error: expected unqualified-id
    Error:(44, 8) error: unknown type name 'av_export'
    Error:(44, 18) error: expected unqualified-id
    /home/y3k/ffmpeg/libavcodec/aac.h
    Error:(294, 21) error: expected member name or ';' after declaration specifiers
    Error:(294, 21) error: expected member name or ';' after declaration specifiers

    FFMpeg config.h generated by this script :

    NDK=/home/y3k/Android/Sdk/ndk-bundle
    SYSROOT=$NDK/platforms/android-23/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
    function build_one
    {
    ./configure \
    --prefix=$PREFIX \
    --disable-shared \
    --enable-static \
    --disable-doc \
    --disable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-avdevice \
    --disable-doc \
    --disable-symver \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
    --target-os=linux \
    --arch=arm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -fpic $ADDI_CFLAGS" \
    --extra-ldflags="$ADDI_LDFLAGS" \
    $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make
    make install
    }
    CPU=arm
    PREFIX=$(pwd)/android/$CPU
    ADDI_CFLAGS="-marm"
    build_one

    By tracing the errors I found these lines :

    in float_dsp.h, fixed_dsp.h :

    void (*butterflies_float)(float *av_restrict v1, float *av_restrict v2, int len);

    av_restrict defined in config.h

    #define av_restrict restrict

    in aac.h :

    ....
    struct AACContext {
       AVClass        *class;
    ....

    in mpeg4audio.h :

    extern av_export const int avpriv_mpeg4audio_sample_rates[16];

    So I’m guessing it’s because the compiler misrecognized the C code as C++, I tried adding these :

    arguments "-DANDROID_TOOLCHAIN=clang"
    cFlags "-std=c99"

    to my build.gradle but didn’t help. Having no idea where to move on. :(

    I’m using the latest stable version of Android Studio on Ubuntu desktop. Please don’t be hesitate to ask if any extra information is required.

    Also I’ve been tried edit my native-lib.cpp into .c (Surely with the code contents changed), but wasn’t working either.

    Appreciate for any help.

  • MobileVlcKit compiling Failed

    25 février 2016, par Bittoo

    Hi i am trying to use MobileVLCKit.For that i am using cocoapads like below
    pod ’MobileVLCKit’

    pod 'MobileVLCKit'

    then i compile my project it is showing plenty of errors below is my error Log

     NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    "std::basic_string, std::allocator >::find(wchar_t const*, unsigned long, unsigned long) const", referenced from:
     TagLib::String::find(TagLib::String const&amp;, int) const in MobileVLCKit(tstring.cpp.o)
     TagLib::String::split(TagLib::String const&amp;) const in MobileVLCKit(tstring.cpp.o)

     dash::mpd::BasicCMParser::parseCommonAttributesElements(dash::xml::Node*, dash::mpd::CommonAttributesElements*, dash::mpd::CommonAttributesElements*) const in MobileVLCKit(libdash_plugin_la-BasicCMParser.o)

    I tried with architecture x86_64 but still showing lot of errors. I don’t know how to clear these errors.so can any body please help me