Recherche avancée

Médias (91)

Autres articles (39)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

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

  • Problems in building ffmpeg for android using android NDK in ubuntu

    3 septembre 2014, par Alin

    An ffmpeg android for android 2.3+ which allows me to decompress/add watermark/recompress a video file. I need to have it working on all current CPUs.

    What I did so far

    I looked in a lot of sources for guidance. Most of the articles are obsolete or simply not work. Not to mention the whole struggle I went to from installing ubuntu on virtualBox, an OS which I never seen before. The whole java/sdk/ndk install was pretty easy but I had hard times in setting the PATH variables and most importantly WHERE to set them.

    So, here is my structure :
    The default folder path is /home/alin in which I have
    enter image description here

    The PATH is set in etc/profile and I can confirm that it works. I know that it works because running java -version or ndk-build run just fine

    > ANDROID_SDK=/home/alin/android/sdk ANDROID_NDK=/home/alin/android/ndk
    > JAVA_HOME=/usr/local/java/jdk1.8.0_20
    > PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools:$ANDROID_NDK
    > export JAVA_HOME export ANDROID_SDK export ANDROID_NDK export PATH

    I have downloaded the latest sources from ffmpeg.org and saved it in ndk/sources folder, in sources I have created an android_build.sh file as from (http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/)

    enter image description here

    #!/bin/bash

    NDK=/home/alin/android/ndk
    SYSROOT=$NDK/platforms/android-9/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64

    function build_one

    {

    ./configure \
       --prefix=$PREFIX \
       --enable-shared \
       --disable-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

    When running the .sh file I get this :
    enter image description here

    Trying different build.sh sometimes I got different errors... so I have no idea what to do next.

    Please guide me to :

    • be able to build ffmpeg
    • make it compatible with as many devices as possible.

    Thank you.

  • Problems in building ffmpeg 2.3.3 for android using android NDK

    2 septembre 2014, par Alin

    An ffmpeg android for android 2.3+ which allows me to decompress/add watermark/recompress a video file. I need to have it working on all current CPUs.

    What I did so far

    I looked in a lot of sources for guidance. Most of the articles are obsolete or simply not work. Not to mention the whole struggle I went to from installing ubuntu on virtualBox, an OS which I never seen before. The whole java/sdk/ndk install was pretty easy but I had hard times in setting the PATH variables and most importantly WHERE to set them.

    So, here is my structure :
    The default folder path is /home/alin in which I have
    enter image description here

    The PATH is set in etc/profile and I can confirm that it works. I know that it works because running java -version or ndk-build run just fine

    > ANDROID_SDK=/home/alin/android/sdk ANDROID_NDK=/home/alin/android/ndk
    > JAVA_HOME=/usr/local/java/jdk1.8.0_20
    > PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools:$ANDROID_NDK
    > export JAVA_HOME export ANDROID_SDK export ANDROID_NDK export PATH

    I have downloaded the latest sources from ffmpeg.org and saved it in ndk/sources folder, in sources I have created an android_build.sh file as from (http://www.roman10.net/how-to-build-ffmpeg-with-ndk-r9/)

    enter image description here

    #!/bin/bash

    NDK=/home/alin/android/ndk
    SYSROOT=$NDK/platforms/android-9/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64

    function build_one

    {

    ./configure \
       --prefix=$PREFIX \
       --enable-shared \
       --disable-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

    When running the .sh file I get this :
    enter image description here

    Trying different build.sh sometimes I got different errors... so I have no idea what to do next.

    Please guide me to :

    • be able to build ffmpeg
    • make it compatible with as many devices as possible.

    Thank you.

  • Compile FFMPEG for command line usage

    3 septembre 2014, par Lior Iluz

    I’ve been trying to compile FFMPEG so I can use it with my Android application with commands. The result should be 1 static file, "ffmpeg", that is not package dependent. No .so files.

    I managed to compile it with guardianProject and everything is working but the source was too old and lacks options I need.
    I’m using the latest Ubuntu on VirtualBox, all essentials are installed and updated (gawk, yasm, aptitude, etc...).

    There are multiple examples around the web. Here are the issues I’ve experienced with each of the options I tried. I’d appreciate help with either one of the following errors :

    1. Guardian project - I managed to compile it and get the ffmpeg file but it uses an old version of ffmpeg that doesn’t include the "-movFlags faststart" option. I tried throwing the new ffmpeg (2.3.3) in there but it just throws error. (I ran git submodule init and update)

    2. JayH5 - A more generic build file that basically should work with every ffmpeg. I updated the build script to work with the latest NDK and it seems to be working but than it fails on /home/dor/Desktop/ndk/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin/arm-linux-androideabi-pkg-config not found, library detection may fail.
      I read about this and it seems to require a hack, which I don’t understand how to implement.

    3. Trovao - this is a very nice project and the build script even downloads the latest ffmpeg and x264 sources, and I even succeeded in compiling it to FFMPEG and X264 files but when I use it, I get this error : could not load library "libx264.so.142 which is weird, as x264 is there and the whole idea of this project is to cancel the need of .so files.

    I’d appreciate help with figuring out how to solve any of the issues. I prefer using the JayH5 build script as it seems the most straight forward out there...

    JayH5 build file :

    #!/bin/bash

    # set the base path to your Android NDK (or export NDK to environment)

    if [[ "x$NDK_BASE" == "x" ]]; then
       NDK_BASE=/opt/android-ndk
       echo "No NDK_BASE set, using $NDK_BASE"
    fi

    NDK_PLATFORM_VERSION=14
    NDK_ABI=arm
    NDK_COMPILER_VERSION=4.8
    NDK_SYSROOT=$NDK_BASE/platforms/android-$NDK_PLATFORM_VERSION/arch-$NDK_ABI
    NDK_UNAME=`uname -s | tr '[A-Z]' '[a-z]'` # Convert Linux -> linux
    HOST=$NDK_ABI-linux-androideabi
    NDK_TOOLCHAIN_BASE=$NDK_BASE/toolchains/$HOST-$NDK_COMPILER_VERSION/prebuilt/$NDK_UNAME-x86
    CC="$NDK_TOOLCHAIN_BASE/bin/$HOST-gcc --sysroot=$NDK_SYSROOT"
    LD=$NDK_TOOLCHAIN_BASE/bin/$HOST-ld

    BUILD_PATH=build/ffmpeg

    ./configure \
    $DEBUG_FLAG \
    --arch=arm \
    --target-os=linux \
    --enable-runtime-cpudetect \
    --enable-pic \
    --disable-shared \
    --enable-static \
    --cross-prefix=$NDK_TOOLCHAIN_BASE/bin/$NDK_ABI-linux-androideabi- \
    --sysroot="$NDK_SYSROOT" \
    --extra-cflags="-march=armv7-a -mfloat-abi=softfp -fPIC -DANDROID" \
    --extra-ldflags="" \
    --enable-ffmpeg \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --disable-network \