Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (83)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

Sur d’autres sites (10469)

  • How to compile ffmpeg to support hw codec ?

    23 juillet 2015, par Kame Li

    I modified the build_libstagefright.sh to compile ffmpeg-2.7.1, and I got following libraries. But I can not load them successfully.
    ./ffmpeg-2.7.1/libswresample/libswresample.so
    ./ffmpeg-2.7.1/libavfilter/libavfilter.so
    ./ffmpeg-2.7.1/libavcodec/libavcodec.so
    ./ffmpeg-2.7.1/libswscale/libswscale.so
    ./ffmpeg-2.7.1/libavformat/libavformat.so
    ./ffmpeg-2.7.1/libavutil/libavutil.so`

    Detail of build_libstagefright.sh is as bellow. Can anyone help to take a look what happen ? If you already compiled the libs to support hw codec, can you share them for me ? Thanks so much.
    -------------------------------------------------------------------------------
    # !/bin/bash

    #NDK=/home/ming/Tools/android-ndk-r9d
    NDK=/home/ming/Tools/android-ndk-r10e
    SYSROOT=$NDK/platforms/android-19/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64

    if [ "$NDK" = "" ]; then
       echo NDK variable not set, assuming ${HOME}/android-ndk
       export NDK=${HOME}/android-ndk
    fi

    echo "Fetching Android system headers"
    git clone --depth=1 --branch gingerbread-release                             git://github.com/CyanogenMod/android_frameworks_base.git ../android-    source/frameworks/base
    git clone --depth=1 --branch gingerbread-release     git://github.com/CyanogenMod/android_system_core.git ../android-   source/system/core

    echo "Fetching Android libraries for linking"
    # Libraries from any froyo/gingerbread device/emulator should work
    # fine, since the symbols used should be available on most of them.
    if [ ! -d "../android-libs" ]; then
       if [ ! -f "../update-cm-7.0.3-N1-signed.zip" ]; then
           wget http://download.cyanogenmod.com/get/update-cm-7.0.3-N1-signed.zip -P../
       fi
       unzip ../update-cm-7.0.3-N1-signed.zip system/lib/* -d../
       mv ../system/lib ../android-libs
       rmdir ../system
    fi

    SYSROOT=$NDK/platforms/android-19/arch-arm
    # Expand the prebuilt/* path into the correct one
    #TOOLCHAIN=`echo $NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86`
    export PATH=$TOOLCHAIN/bin:$PATH
    ANDROID_SOURCE=../android-source
    ANDROID_LIBS=../android-libs
    ABI="armeabi-v7a"
    ADDI_CFLAGS="-marm"

    rm -rf ../build/stagefright
    mkdir -p ../build/stagefright

    DEST=../build/stagefright
    # --cpu=armv7-a
    FLAGS="--target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --                        enable-shared --disable-static --disable-doc --disable-ffserver --enable-cross-    compile --cpu=armv7-a"
    FLAGS="$FLAGS --sysroot=$SYSROOT"
    FLAGS="$FLAGS --disable-avdevice --disable-decoder=h264 --disable-    decoder=h264_vdpau --enable-libstagefright-h264"

    EXTRA_CFLAGS="-I$ANDROID_SOURCE/frameworks/base/include -    I$ANDROID_SOURCE/system/core/include"
    EXTRA_CFLAGS="$EXTRA_CFLAGS -    I$ANDROID_SOURCE/frameworks/base/media/libstagefright"
    EXTRA_CFLAGS="$EXTRA_CFLAGS -    I$ANDROID_SOURCE/frameworks/base/include/media/stagefright/openmax"
    #EXTRA_CFLAGS="$EXTRA_CFLAGS -I$NDK/sources/cxx-stl/gnu-libstdc++/include -    I$NDK/sources/cxx-stl/gnu-libstdc++/libs/$ABI/include"
    EXTRA_CFLAGS="$EXTRA_CFLAGS -I$NDK/sources/cxx-stl/gnu-libstdc++/4.8/include -I$NDK/sources/cxx-stl/gnu-libstdc++/4.8/libs/$ABI/include"

    #-march=armv7-a -mfloat-abi=softfp -mfpu=neon

    EXTRA_CFLAGS="$EXTRA_CFLAGS -march=armv7-a -mfloat-abi=softfp -mfpu=neon"

    EXTRA_CFLAGS="$EXTRA_CFLAGS -Os -fpic $ADDI_CFLAGS"

    #EXTRA_LDFLAGS="-Wl,--fix-cortex-a8 -L$ANDROID_LIBS -Wl,-rpath-    link,$ANDROID_LIBS -L$NDK/sources/cxx-stl/gnu-libstdc++/libs/$ABI"
    EXTRA_LDFLAGS="-Wl,--fix-cortex-a8 -L$ANDROID_LIBS -Wl,-rpath-    link,$ANDROID_LIBS -L$NDK/sources/cxx-stl/gnu-libstdc++/4.8/libs/$ABI  -    lstagefright -lstdc++ -lutils -lbinder -lgnustl_static -lgnustl_shared     $ADDI_LDFLAGS"

    EXTRA_CXXFLAGS="-Wno-multichar -fno-exceptions -fno-rtti"
    DEST="$DEST/$ABI"
    FLAGS="$FLAGS --prefix=$DEST"

    mkdir -p $DEST

    echo $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-ldflags="$EXTRA_LDFLAGS" --extra-cxxflags="$EXTRA_CXXFLAGS" > $DEST/info.txt
    ./configure $FLAGS --extra-cflags="$EXTRA_CFLAGS" --extra-    ldflags="$EXTRA_LDFLAGS" --extra-cxxflags="$EXTRA_CXXFLAGS"         $ADDITIONAL_CONFIGURE_FLAG | tee $DEST/configuration.txt
    [ $PIPESTATUS == 0 ] || exit 1
    make clean
    echo "make -j4"
    make -j4 || exit 1`
    -------------------------------------------------------------------------------
  • how does one loop a video using ffmpeg on android ?

    15 juillet 2015, par Magicomiralles

    I’m using hiteshsondhi88’s "FFmpeg Android Java" library and it works fine for scaling, trans-coding, and overlaying. However, when I try to loop a video I just get the same un-looped video on my output.

    My code :

    String internalPath = getFilesDir().getPath(); //get internal directory
    String command = "-y -f concat -i "+internalPath+"/myList.txt -c copy "+internalPath+"/final.mp4";
    ffmpeg.execute(command, ffmpegResponseHandler);

    The text in "myList.txt" is generated programmatically but it looks like this :

    file 'final_unlooped.mp4' file 'final_unlooped.mp4' file 'final_unlooped.mp4' file 'final_unlooped.mp4' file 'final_unlooped.mp4'

    Finally, the log :

    ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
    built on Oct  7 2014 15:11:41 with gcc 4.8 (GCC)
    configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/x86 --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    libavutil      54.  7.100 / 54.  7.100
    libavcodec     56.  1.100 / 56.  1.100
    libavformat    56.  4.101 / 56.  4.101
    libavdevice    56.  0.100 / 56.  0.100
    libavfilter     5.  1.100 /  5.  1.100
    libswscale      3.  0.100 /  3.  0.100
    libswresample   1.  1.100 /  1.  1.100
    libpostproc    53.  0.100 / 53.  0.100
    Input #0, concat, from '/data/data/com.testApp/files/myList.txt':
    Duration: N/A, start: 0.000000, bitrate: 744 kb/s
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x640, 744 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
    Output #0, mp4, to '/data/data/com.testApp/files/final.mp4':
    Metadata:
    encoder         : Lavf56.4.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x640, q=2-31, 744 kb/s, 25 fps, 12800 tbn, 12800 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    frame=  115 fps=0.0 q=-1.0 Lsize=     420kB time=00:00:04.48 bitrate= 768.1kbits/s
    video:418kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.509634%

    The OnSuccess() method in the response handler launches indicating that the execution was successful but the output is still unlooped.

    This command works fine on Windows but for some reason it wont work on Android. any ideas of what it could be, or what am I doing wrong ?

  • Compiling ffmpeg for Android using Linux

    1er juillet 2015, par VEP10

    I’d like to test the ijkplayer for android project according to this :
    https://github.com/bbcallen/ijkplayer/blob/master/README.md
    When I am compiling the ffmpeg (./compile-ffmpeg.sh) at the "configurate ffmpeg" phase I get the following message : arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed.
    This part of the compile-ffmpeg.sh file :

    echo "\n--------------------"
    echo "[*] configurate ffmpeg"
    echo "--------------------"
    cd $FF_SOURCE
    if [ -f "./config.h" ]; then
       echo 'reuse configure'
    else
       ./configure $FF_CFG_FLAGS \
           --extra-cflags="$FF_CFLAGS $FF_EXTRA_CFLAGS" \
           --extra-ldflags="$FF_DEP_LIBS $FF_EXTRA_LDFLAGS"
       make clean
    fi

    At the end of the config.log file I found the problem :

    zoompan_filter_deps='swscale'
    WARNING: arm-linux-androideabi-pkg-config not found, library detection may fail.
    mktemp -u XXXXXX
    tHt73A
    check_ld cc
    check_cc
    BEGIN /tmp/ffconf.mvjZdW0f.c
       1   int main(void){ return 0; }
    END /tmp/ffconf.mvjZdW0f.c
    arm-linux-androideabi-gcc -O3 -Wall -pipe -std=c99 -ffast-math -fstrict aliasing -Werror=strict-aliasing -Wno-psabi -Wa,--noexecstack -DANDROID -DNDEBUG -march=armv7-a -mcpu=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -mcpu=cortex-a8 -c -o /tmp/ffconf.ZKAEl7Bh.o /tmp/ffconf.mvjZdW0f.c
    as: unrecognized option '-mcpu=cortex-a8'
    C compiler test failed.

    I am sure that the assembler knows the cortex-a8 cpu option. The problem is anywhere else.

    Environment :

    Ubuntu 14.04

    NDK : r10e

    arm-linux-androideabi-4.8

    gcc-4.6

    Please help !