Recherche avancée

Médias (91)

Autres articles (101)

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

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9155)

  • How to enable X264 with thread for Android on Mac OS X ?

    3 janvier 2016, par Jerikc XIONG

    I use the following script to compile x264 :

    #!/bin/bash
    # Based on https://github.com/yixia/x264/blob/master/build_android.sh

    if [ -z "$ANDROID_NDK" ]; then
       echo "You must define ANDROID_NDK before starting."
       echo "They must point to your NDK directories.\n"
       exit 1
    fi

    # Detect OS
    OS=`uname`
    HOST_ARCH=`uname -m`
    export CCACHE=; type ccache >/dev/null 2>&1 && export CCACHE=ccache
    if [ $OS == 'Linux' ]; then
       export HOST_SYSTEM=linux-$HOST_ARCH
    elif [ $OS == 'Darwin' ]; then
       export HOST_SYSTEM=darwin-$HOST_ARCH
    fi


    SOURCE=`pwd`
    PREFIX=$SOURCE/build/android

    SYSROOT=$ANDROID_NDK/platforms/android-12/arch-arm
    CROSS_PREFIX=$ANDROID_NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/$HOST_SYSTEM/bin/arm-linux-androideabi-
    EXTRA_CFLAGS="-march=armv7-a -mfloat-abi=softfp -mfpu=neon -D__ARM_ARCH_7__ -D__ARM_ARCH_7A__"
    EXTRA_LDFLAGS="-nostdlib"

    ./configure  --prefix=$PREFIX \
       --cross-prefix=$CROSS_PREFIX \
       --extra-cflags="$EXTRA_CFLAGS" \
       --extra-ldflags="$EXTRA_LDFLAGS" \
       --enable-pic \
       --enable-static \
       --enable-strip \
       --disable-cli \
       --host=arm-linux \
       --sysroot=$SYSROOT

    make clean
    make STRIP= -j4 install || exit 1

    After i add ’-lpthread’ , i got the following compile error :

    $ sh build_android.sh
    No working C compiler found.
    Makefile:3: config.mak: No such file or directory
    ./configure
    platform:      X86_64
    byte order:    little-endian
    system:        MACOSX
    cli:           yes
    libx264:       internal
    shared:        no
    static:        no
    asm:           yes
    interlaced:    yes
    avs:           avxsynth
    lavf:          no
    ffms:          no
    mp4:           no
    gpl:           yes
    thread:        posix
    opencl:        yes
    filters:       crop select_every
    debug:         no
    gprof:         no
    strip:         no
    PIC:           no
    bit depth:     8
    chroma format: all

    You can run 'make' or 'make fprofiled' now.
    dependency file generation...
    clang: error: no such file or directory: '/common/mc.c'
    clang: error: no such file or directory: '/common/predict.c'
    clang: error: no such file or directory: '/common/pixel.c'
    clang: error: no such file or directory: '/common/macroblock.c'
    clang: error: no such file or directory: '/common/frame.c'
    clang: error: no such file or directory: '/common/dct.c'
    clang: error: no such file or directory: '/common/cpu.c'
    clang: error: no such file or directory: '/common/cabac.c'
    clang: error: no such file or directory: '/common/common.c'
    clang: error: no such file or directory: '/common/osdep.c'
    clang: error: no such file or directory: '/common/rectangle.c'
    clang: error: no such file or directory: '/common/set.c'
    clang: error: no such file or directory: '/common/quant.c'
    clang: error: no such file or directory: '/common/deblock.c'
    clang: error: no such file or directory: '/common/vlc.c'
    clang: error: no such file or directory: '/common/mvpred.c'
    clang: error: no such file or directory: '/common/bitstream.c'
    clang: error: no such file or directory: '/encoder/analyse.c'
    clang: error: no such file or directory: '/encoder/me.c'
    clang: error: no such file or directory: '/encoder/ratecontrol.c'
    clang: error: no such file or directory: '/encoder/set.c'
    clang: error: no such file or directory: '/encoder/macroblock.c'
    clang: error: no such file or directory: '/encoder/cabac.c'
    clang: error: no such file or directory: '/encoder/cavlc.c'
    clang: error: no such file or directory: '/encoder/encoder.c'
    clang: error: no such file or directory: '/encoder/lookahead.c'
    clang: error: no such file or directory: '/x264.c'
    clang: error: no such file or directory: 'x264.o'
    clang: error: no input files
    clang: error: no such file or directory: '/input/input.c'
    clang: error: no such file or directory: 'input/input.o'
    clang: error: no input files
    clang: error: no such file or directory: '/input/timecode.c'
    clang: error: no such file or directory: 'input/timecode.o'
    clang: error: no input files
    clang: error: no such file or directory: '/input/raw.c'
    clang: error: no such file or directory: 'input/raw.o'
    clang: error: no input files
    clang: error: no such file or directory: '/input/y4m.c'
    clang: error: no such file or directory: 'input/y4m.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/raw.c'
    clang: error: no such file or directory: 'output/raw.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/matroska.c'
    clang: error: no such file or directory: 'output/matroska.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/matroska_ebml.c'
    clang: error: no such file or directory: 'output/matroska_ebml.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/flv.c'
    clang: error: no such file or directory: 'output/flv.o'
    clang: error: no input files
    clang: error: no such file or directory: '/output/flv_bytestream.c'
    clang: error: no such file or directory: 'output/flv_bytestream.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/filters.c'
    clang: error: no such file or directory: 'filters/filters.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/video.c'
    clang: error: no such file or directory: 'filters/video/video.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/source.c'
    clang: error: no such file or directory: 'filters/video/source.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/internal.c'
    clang: error: no such file or directory: 'filters/video/internal.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/resize.c'
    clang: error: no such file or directory: 'filters/video/resize.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/cache.c'
    clang: error: no such file or directory: 'filters/video/cache.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/fix_vfr_pts.c'
    clang: error: no such file or directory: 'filters/video/fix_vfr_pts.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/select_every.c'
    clang: error: no such file or directory: 'filters/video/select_every.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/crop.c'
    clang: error: no such file or directory: 'filters/video/crop.o'
    clang: error: no input files
    clang: error: no such file or directory: '/filters/video/depth.c'
    clang: error: no such file or directory: 'filters/video/depth.o'
    clang: error: no input files
    clang: error: no such file or directory: '/extras/getopt.c'
    clang: error: no such file or directory: 'extras/getopt.o'
    clang: error: no input files
    make: *** [.depend] Error 1

    How to enable pthread support ?

  • C flags which gives priority to quality for decoded images in ffmpeg

    18 janvier 2016, par Tank2005

    I’m trying to decode h.264 streaming with ffmpeg(latest version) on Android NDK.

    I succeeded to get a decoded frame. But, an aquired image is very dirty even if low latency flag is disabled.

    If I want to give priority to quality over decoding speed, which flags should I specify ?

    bool initCodec(bool low_latency)
    {
       av_register_all();

       codec = avcodec_find_decoder(AV_CODEC_ID_H264);
       if(!codec) return false;

       context = avcodec_alloc_context3(codec);
       if(!context) return false;

       if(codec->capabilities & CODEC_CAP_TRUNCATED) context->flags |= CODEC_FLAG_TRUNCATED;
       if(low_latency == true) context->flags |= CODEC_FLAG_LOW_DELAY;

       frame = av_frame_alloc();

       int res = avcodec_open2(context, codec, NULL);
       if (res < 0) {
           qDebug() << "Coundn't open codec :" << res;
           return false;
       }

       av_init_packet(&avpkt);
       return true;
    }

    void sendBytes(unsigned char *buf, int buflen)
    {
       avpkt.size = buflen;
       avpkt.data = buf;

       int got_frame, len;
       while (avpkt.size > 0) {
           len = avcodec_decode_video2(context, frame, &got_frame, &avpkt);
           if (len < 0) {
               qDebug() << "Error while decoding : " << len;
               break;
           }
           if (got_frame) {
               onGotFrame(frame);
           }
           avpkt.size -= len;
           avpkt.data += len;
       }
    }

    Decoded image sample

    Ex : I heard that it made a problem while compiling the library. So I write a compile option here(I built it on OpenSUSE Linux).

    #!/bin/bash
    NDK=/home/ndk
    SYSROOT=$NDK/platforms/android-9/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
    function build_one
    {
    ./configure \
    --prefix=$PREFIX \
    --enable-shared \
    --disable-static \
    --disable-avdevice \
    --disable-doc \
    --disable-symver \
    --disable-encoders \
    --disable-decoders \
    --enable-decoder=h264 \
    --enable-decoder=aac \
    --disable-protocols \
    --disable-demuxers \
    --disable-muxers \
    --disable-filters \
    --disable-network \
    --disable-parsers \
    --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
    --target-os=linux \
    --arch=arm \
    --enable-asm --enable-yasm \
    --enable-cross-compile \
    --sysroot=$SYSROOT \
    --extra-cflags="-Os -marm -march=armv7-a -mfloat-abi=softfp -mfpu=neon" \
    --extra-ldflags="-Wl,--fix-cortex-a8" \
    $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make
    make install
    }
    CPU=armv7-a
    PREFIX=$(pwd)/android/$CPU
    build_on
  • How to config ffmpeg with android on eclipse using windows 7 64 bit ?

    25 janvier 2016, par Mahmoud Alnouno

    I’m using ffmpeg version 2.8.5 (last version)
    and ndk version r10e (last version)
    to compile ffmpeg for a android
    I’m using this script bulid_android.sh

    #!/usr/bin/env bash
    NDK=D:/AndroidNDK/android-ndk-r10e
    SYSROOT=$NDK/platforms/android-18/arch-arm/
    TOOLCHAIN=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/windows-x86_64
    function build_one
    {
    ./configure \
       --arch=arm \
       --target-os=android \
       --enable-runtime-cpudetect \
       --enable-pic \
       --disable-shared \
       --enable-static \
       --extra-cflags='-march=armv6' \
       --extra-ldflags="$ADDI_LDFLAGS" \
       --enable-ffmpeg \
       --disable-ffplay \
       --disable-ffprobe \
       --disable-ffserver\
       --disable-network \
       --enable-cross-compile \
       --cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \
       --sysroot=$SYSROOT \
       $ADDITIONAL_CONFIGURE_FLAG
    make clean
    make -j4
    make install
    }

    CPU=arm
    PREFIX=$(pwd)/android/$CPU
    ADDI_CFLAGS="-marm"
    build_one

    I enter this cmd using msys

    chmod +x build_android.sh

    and this

    ./build_android.sh

    I get this error :

    -gcc is unable to create an executable file.
    C compiler test failed.

    help me how to resolve this problem ?