Recherche avancée

Médias (91)

Autres articles (112)

  • 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 ;

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (10155)

  • Build FFmpeg with Freetype2 for ARM ( Android ) - SOLVED

    15 juillet 2014, par Pawel Cala

    I’m trying to build FFmpeg binary file with freetype library included ( I need it for drawtext filter ). Unfortunately I cannot configure ffmpeg properly and every try ends with "freetype not found" error.

    PS I’ve tried to build guardian-ffmpeg project but i’m getting errors during configure process.

    PS2 Building plain ffmpeg works perfectly well

    Configuration script :

    make distclean &./configure --target-os=linux \
    --cross-prefix=arm-linux-androideabi- \
    --arch=arm \
    --cpu=armv7-a \
    --enable-libfreetype --enable-filter=drawtext \ #!Freetype params
    --disable-network \
    --disable-ffplay \
    --disable-ffprobe \
    --disable-ffserver \
    --enable-protocol=file \
    --sysroot=${ANDROID_NDK_ROOT_PATH}/platforms/${ANDROID_API_VERSION}/arch-arm \
    --prefix=build/armeabi-v7a \
    --disable-asm \
    --extra-cflags='-DANDROID -Ifreetype2/ -I${ANDROID_NDK_ROOT_PATH}/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp' \
    --extra-ldflags='-Wl,--fix-cortex-a8 -Lfreetype2/ -L../android-libs -Wl,-rpath-link,../android-libs' \
    --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
    make -j6 && make install || exit 0

    Directories sctructure :

    ffmpeg/
      -ffmpeg dirs/
      -freetype2/
      -rest of ffmpeg files ( including configure, make, etc )

    I’ve checked patch sources in guardian-project and I’ve found that ffmpeg configure file might need some changes in require_libfreetype method ?!

    Thanks in advance ( and sorry for my bad english )

    EDIT :
    Building on OSX Mavericks,
    Last 3 lines of config.log ; OSX hasn’t got pkg-config therefore false in 2nd line :

    require_libfreetype
    false --exists --print-errors freetype
    ERROR: freetype not found

    EDIT :
    SOLUTION !!!

    I’ve manadged to solve my issue. I’ve used Xubuntu 14.04 64bit + Freetype 2.5.3 + newest FFmpeg repo + install linux package "pkg_config" and small modifications in ffmpeg configure script ( find pkg_config and check initialization variable )

    config file for freetype :

    NDK_BASE=/home/dpc/Documents/android-ndk-r9d/
    NDK_PROCESSOR=x86_64
    NDK_PLATFORM_LEVEL=9
    NDK_ABI=arm
    NDK_COMPILER_VERSION=4.6

    # Android NDK setup
    NDK_PLATFORM_LEVEL=9
    NDK_ABI=arm
    NDK_COMPILER_VERSION=4.6
    NDK_SYSROOT=$NDK_BASE/platforms/android-$NDK_PLATFORM_LEVEL/arch-$NDK_ABI
    NDK_UNAME=`uname -s | tr '[A-Z]' '[a-z]'`
    if [ $NDK_ABI = "x86" ]; then
       HOST=i686-linux-android
       NDK_TOOLCHAIN=$NDK_ABI-$NDK_COMPILER_VERSION
    else
       HOST=$NDK_ABI-linux-androideabi
       NDK_TOOLCHAIN=$HOST-$NDK_COMPILER_VERSION
    fi
    NDK_TOOLCHAIN_BASE=$NDK_BASE/toolchains/$NDK_TOOLCHAIN/prebuilt/$NDK_UNAME-$NDK_PROCESSOR
    echo "dpc:" $NDK_TOOLCHAIN_BASE

    CC="$NDK_TOOLCHAIN_BASE/bin/$HOST-gcc --sysroot=$NDK_SYSROOT"
    LD=$NDK_TOOLCHAIN_BASE/bin/$HOST-ld
    STRIP=$NDK_TOOLCHAIN_BASE/bin/$HOST-strip
    PREFIX=$(pwd)/build

    simple_config(){
    make clean
    ./configure --host=arm-linux-androideabi --without-zlib --without-png --prefix=
    make -j4
    make install DESTDIR=$(pwd)
    }

    complex_config(){

       ./configure \
       CC="$CC" \
       LD="$LD" \
       CFLAGS="-std=gnu99 -mcpu=cortex-a8 -marm -mfloat-abi=softfp -mfpu=neon" \
       --host=$HOST \
       --with-sysroot="$NDK_SYSROOT" \
       --enable-static \
       --disable-shared \
       --prefix=$PREFIX
       --without-bzip2

       make -j4
       make install
    }


    make clean
    complex_config

    ffmpeg config file :

    #!/bin/sh

    ANDROID_NDK_ROOT_PATH=/home/dpc/Documents/android-ndk-r9d
    ANDROID_API_VERSION=android-9
    #export PATH=${ANDROID_NDK_ROOT_PATH}:${ANDROID_NDK_ROOT_PATH}/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/:$PATH
    export PATH=${ANDROID_NDK_ROOT_PATH}:${ANDROID_NDK_ROOT_PATH}/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/:$PATH
    echo $PATH
    #export PKG_CONFIG_PATH=/home/dpc/Documents/freetype-2.5.3/build/lib/pkgconfig/
    #echo $PKG_CONFIG_PATH

    #armv7-a neon
    #export ARCH=armeabi-v7a-neon
    #./configure --target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --cpu=armv7-a --sysroot=${ANDROID_NDK_ROOT_PATH}/platforms/${ANDROID_API_VERSION}/arch-arm --disable-avdevice --disable-decoder=h264_vdpau  --prefix=build/armeabi-v7a-neon --extra-cflags='-DANDROID -I${ANDROID_NDK_ROOT_PATH}/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp -mfpu=neon' --extra-ldflags='-Wl,--fix-cortex-a8 -L../android-libs -Wl,-rpath-link,../android-libs' --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
    #make -j6 && make install && make distclean|| exit 0

    #armv7-a
    export ARCH=armeabi-v7a
    ./configure --target-os=linux \
    --cross-prefix=arm-linux-androideabi- \
    --arch=arm \
    --enable-libfreetype \
    --cpu=armv7-a \
    --sysroot=${ANDROID_NDK_ROOT_PATH}/platforms/${ANDROID_API_VERSION}/arch-arm \
    --disable-avdevice \
    --disable-decoder=h264_vdpau  \
    --prefix=build/armeabi-v7a \
    --extra-cflags='-DANDROID -I${ANDROID_NDK_ROOT_PATH}/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp' \
    --extra-ldflags='-Wl,--fix-cortex-a8 -L../android-libs -Wl,-rpath-link,../android-libs' \
    --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti'
    make -j6 && make install && make distclean|| exit 0

    Hope it helps someone (cc : @SinhHo )

  • ffmpeg configure ERROR : libx264 not found

    12 avril 2019, par Dion

    I want to configure ffmpeg on Ubuntu 64 bit, but I get an error : "ERROR : libx264 not found".
    ffmpeg doesn’t see libx264 ! Before that, I successfully configure it in QNX and Windows.
    I prevented a known bug with --disable-opencl , but it did not help.
    In my project the libx264 should be static.

    libx264 configure :

    ../configure --prefix=x264 --disable-cli --enable-static --disable-opencl

    platform:      X86_64
    byte order:    little-endian
    system:        LINUX
    cli:           no
    libx264:       internal
    shared:        no
    static:        yes
    asm:           yes
    interlaced:    yes
    avs:           no
    lavf:          no
    ffms:          no
    mp4:           no
    gpl:           yes
    thread:        posix
    opencl:        no
    filters:       crop select_every
    lto:           no
    debug:         no
    gprof:         no
    strip:         no
    PIC:           no
    bit depth:     all
    chroma format: all

    it’s OK ! Confused only platform : X86_64

    FFmpeg configure :

    ../configure --target-os=linux --prefix=ffmpeg --disable-programs \
    --disable-ffplay --disable-ffprobe --disable-doc \
    --disable-htmlpages --disable-manpages --disable-podpages \
    --disable-txtpages --disable-avdevice --disable-postproc \
    --disable-network --disable-encoders --enable-encoder=libx264 \
    --disable-decoders --enable-decoder=h264 --disable-hwaccels \
    --disable-muxers --enable-muxer=matroska --disable-demuxers \
    --disable-parsers --enable-parser=h264 --enable-gpl \
    --enable-libx264 \
    --extra-ldflags=-L../x264/lib \
    --extra-cflags=-I../x264/include

       ERROR: libx264 not found

    Paths exactly correct !

    if delete --enable-libx264 :

    install prefix            ffmpeg
    source path               /home/osuser/develop/libs/source/ffmpeg-3.4.2
    C compiler                gcc
    C library                 glibc
    ARCH                      x86 (generic)
    big-endian                no
    runtime cpu detection     yes
    standalone assembly       yes
    x86 assembler             nasm
    ...

    This is what worries me... Why x86 ?

    ARCH x86 (generic)

    x86 assembler nasm

    Maybe this is the problem ? How to configure ffmpeg in x86_64 ?
    --arch=x86_64 not help !

    UPDATE :
    The problem is fixed, when configure libx264, need to add --enable-pic

  • ffmpeg configure ERROR : libx264 not found

    1er décembre 2021, par Dion

    I want to configure ffmpeg on Ubuntu 64 bit, but I get an error : "ERROR : libx264 not found".
ffmpeg doesn’t see libx264 ! Before that, I successfully configure it in QNX and Windows.
I prevented a known bug with --disable-opencl , but it did not help.
In my project the libx264 should be static.

    



    libx264 configure :

    



    ../configure --prefix=x264 --disable-cli --enable-static --disable-opencl

platform:      X86_64
byte order:    little-endian
system:        LINUX
cli:           no
libx264:       internal
shared:        no
static:        yes
asm:           yes
interlaced:    yes
avs:           no
lavf:          no
ffms:          no
mp4:           no
gpl:           yes
thread:        posix
opencl:        no
filters:       crop select_every
lto:           no
debug:         no
gprof:         no
strip:         no
PIC:           no
bit depth:     all
chroma format: all


    



    it's OK ! Confused only platform : X86_64

    



    FFmpeg configure :

    



    ../configure --target-os=linux --prefix=ffmpeg --disable-programs \
--disable-ffplay --disable-ffprobe --disable-doc \ 
--disable-htmlpages --disable-manpages --disable-podpages \ 
--disable-txtpages --disable-avdevice --disable-postproc \
--disable-network --disable-encoders --enable-encoder=libx264 \
--disable-decoders --enable-decoder=h264 --disable-hwaccels \
--disable-muxers --enable-muxer=matroska --disable-demuxers \
--disable-parsers --enable-parser=h264 --enable-gpl \
--enable-libx264 \
--extra-ldflags=-L../x264/lib \
--extra-cflags=-I../x264/include

    ERROR: libx264 not found


    



    Paths exactly correct !

    



    if delete --enable-libx264 :

    



    install prefix            ffmpeg
source path               /home/osuser/develop/libs/source/ffmpeg-3.4.2
C compiler                gcc
C library                 glibc
ARCH                      x86 (generic)
big-endian                no
runtime cpu detection     yes
standalone assembly       yes
x86 assembler             nasm
...


    



    This is what worries me... Why x86 ?

    



    ARCH x86 (generic)

    



    x86 assembler nasm

    



    Maybe this is the problem ? How to configure ffmpeg in x86_64 ?
--arch=x86_64 not help !

    



    UPDATE :
The problem is fixed, when configure libx264, need to add --enable-pic