Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (106)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (10241)

  • Adding prebuild static library to android studio

    24 mars 2017, par David Barishev

    I have build ffmpeg libraries statically for x86 android using a custom configuration.Now i wanted to add them in my android project.

    Im using ffmpeg 3.2.git, android studio 2.3.

    I created a folder named distribution which had my binaries, located the root of my project.
    Here is a file tree :

    |__distribution
    | |__avcodec
    | | |__include
    | | | |__avcodec.h
    | | |__lib
    | | | |__x86
    | | | | |__libavcodec.a
    | |__avfilter
    | | |__include
    | | | |__avfilter.h
    | | |__lib
    | | | |__x86
    | | | | |__libavfilter.a
    | |__avformat
    | | |__include
    | | | |__avformat.h
    | | |__lib
    | | | |__x86
    | | | | |__libavformat.a
    | |__avutil
    | | |__include
    | | | |__avutil.h
    | | |__lib
    | | | |__x86
    | | | | |__libavutil.a
    | |__swresample
    | | |__include
    | | | |__swresample.h
    | | |__lib
    | | | |__x86
    | | | | |__libswresample.a

    I edited my cmake to include the libraries :

    add_library(
            native-lib
            SHARED
            src/main/cpp/native-lib.cpp )

    set(distribution_DIR ${CMAKE_SOURCE_DIR}/../distribution)

    add_library(lib_avcodec STATIC IMPORTED)
    set_target_properties(lib_avcodec PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/avcodec/lib/${ANDROID_ABI}/libavcodec.a)

    add_library(lib_avfilter STATIC IMPORTED)
    set_target_properties(lib_avfilter PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/avfilter/lib/${ANDROID_ABI}/libavfilter.a)

    add_library(lib_avformat STATIC IMPORTED)
    set_target_properties(lib_avformat PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/avformat/lib/${ANDROID_ABI}/libavformat.a)

    add_library(lib_avutil STATIC IMPORTED)
    set_target_properties(lib_avutil PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/avutil/lib/${ANDROID_ABI}/libavutil.a)

    add_library(lib_swresample STATIC IMPORTED)
    set_target_properties(lib_swresample PROPERTIES IMPORTED_LOCATION
       ${distribution_DIR}/swresample/lib/${ANDROID_ABI}/libswresample.a)



    include_directories(
                              ${distribution_DIR}/avcodec/include
                              ${distribution_DIR}/avfilter/include
                              ${distribution_DIR}/avformat/include
                              ${distribution_DIR}/avutil/include
                              ${distribution_DIR}/swresample/include)


    target_link_libraries(
                          native-lib

                          lib_avcodec
                          lib_avfilter
                          lib_avformat
                          lib_avutil
                          lib_swresample
                           )

    I also restricted the build to only x86, in my app build.gradle :

    ndk {
               // Specifies the ABI configurations of your native
               // libraries Gradle should build and package with your APK.
               abiFilters 'x86'
       }

    The project gradle sync worked successfully.
    I edited my cpp file to try to use the libraries, and i noticed something weird,i couldn’t reference the headers with the library beforehand, only the header name itself (eg. #include "libavformat/avformat.h" doesn’t work, #include "avformat.h" works).
    I suspect this is because of the headers reference, that they are not tied to a library.
    How can i fix it ?

    Also this makes the project build fail, since in the static libraries headers, there is a reference to other part of the library (eg avformat includes avcodec),but they reference it with the library name beforehand, and as i have said earlier, it doesn’t work.

    Here is the relevant build log part :

    ../../../../../distribution/avformat/include\avformat.h:319:10: fatal error: 'libavcodec/avcodec.h' file not found
     #include "libavcodec/avcodec.h"
              ^
  • How to link and call function of prebuild static native library from android studio

    23 janvier 2017, par Janaki

    I need to change pitch and time stretching of an audio. For this I am using prebuild static library. Currently I am having libZtxAndroid.a static library and corresponding header file which contains function declaration. But I don’t know how to load this library in my android studio app and call native function from java code. I explored many links and tried to load this library. But all attempts are failed. This is the one link which I have tried last time https://tariqzubairy.wordpress.com/2012/03/12/use-of-prebuild-static-library-compiled-with-android-toolchain/

    Also I am using FFMPEG shared library and MP4Parser (https://github.com/sannies/mp4parser) library in this app for adding water mark to video and merging audio respectively. Can any one help from basics.

    1. How to load static library ?
    2. Where I need to place that static library ?
    3. Where I need to create jni folder (folder structure) ?
    4. How to call function available in that static library with the help of header file from java code ?
  • cannot load library : reloc_library[1306] : 249 cannot locate 'atof'... when loading avformat.so in Android

    4 novembre 2016, par mdang

    I am using Android Studio 2.2 and try to link ffmpeg libraries to run on Android 4.1.2 device. When loading the avformat library, I get the error

    "cannot load library: reloc_library[1306]: 249 cannot locate 'atof'..."

    Below is a link that points out that if an app is built with SDK version 21 and above will have this issue when running on devices with older Android version (SDK version < 19).

    Cannot load library : reloc_library[1285] : cannot locate ’rand’

    I changed the targetSdkVersion to 19 in my build.gradle and built ffmpeg libraries with "android-16" target, and still get the error.

    I wonder if anyone has similar issue and found a way to make it work. Thanks.