
Recherche avancée
Autres articles (35)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs
Sur d’autres sites (5419)
-
Android cross compiling FFmpeg 2.8.2 with NDK r10e on a mac
24 novembre 2015, par LostPuppyI am trying to compile the latest FFmpeg version 2.8.2 on a mac with NDK r10e and I keep getting the following error.
./libavutil/arm/bswap.h:42:13: error: instruction requires: armv6
__asm__("rev16 %0, %0" : "+r"(x));I link to the config file is : config.log and the following is my build file. Any help is much appreciated
#!/bin/bash
NDK=/Users/Test/Documents/FFmpeg/android-ndk-r10e
TOOL_DIR_ARM=$NDK/sources/ffmpeg-2.8.2/my-android-toolchain
#TOOL_DIR_ARM=$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
SYSROOT=$NDK/platforms/android-21/arch-arm
if [ -d $TOOL_DIR_ARM ]; then
echo "removing tool chain directory"
rm -r $TOOL_DIR_ARM
fi
$NDK/build/tools/make-standalone-toolchain.sh \
--platform=android-21 \
--arch=arm \
--install-dir=$TOOL_DIR_ARM \
--toolchain=arm-linux-androideabi-clang3.6\
--llvm-version=3.6 \
--system=darwin-x86_64
if [ -d $SYSROOT ]; then
echo "$SYSROOT is a valid directory"
fi
function build_x264
{
cd x264
# another build for phone
./configure \
--cross-prefix=$NDK/sources/ffmpeg-2.8.2/my-android-toolchain/bin/arm-linux-androideabi- \
--sysroot=$SYSROOT \
--host=arm-linux \
--enable-static \
--enable-pic \
--disable-cli
make clean
make -j4
make install
cd ../
}
function build_one
{
cd android-ndk-r10e/sources/ffmpeg-2.8.2/
# another build for phone
./configure \
--sysroot=$SYSROOT \
--target-os=linux \
--arch=arm \
--cross-prefix=$TOOL_DIR_ARM/bin/arm-linux-androideabi- \
--cc=$TOOL_DIR_ARM/bin/clang \
--enable-cross-compile \
--enable-encoder=mpeg4 \
--enable-pthreads \
--enable-gpl \
--enable-libx264 \
--enable-pic \
--extra-cflags='-I/usr/local/include' \
--extra-ldflags='-L/usr/local/lib'
make clean
make -j4
make install
}
echo "Building x_264 library"
build_x264
echo "Building FFmpeg"
build_oneone additional compile warning that I see is
WARNING: /Users/Test/Documents/FFmpeg/android-ndk-r10e/sources/ffmpeg-2.8.2/my-andr`enter code here`oid-toolchain/bin/arm-linux-androideabi-pkg-config not found, library detection may fail.
WARNING: using libx264 without pkg-config -
Building x264 on a Mac for android “No working C compiler found”
20 novembre 2015, par LostPuppyI am trying to build x264 and eventually use it to build ffmpeg the following is my script :
#!/bin/bash
NDK="/Users/account/Documents/FFmpeg/android-ndk-r10e"
TOOL_DIR_ARM="/Users/account/Documents/FFmpeg/android-ndk-r10e/sources/ffmpeg-2.8.2/my-android-toolchain"
SYSROOT=$NDK/platforms/platforms/android-21/arch-arm
echo "removing tool chain directory if it exists"
rm -r $TOOL_DIR_ARM
$NDK/build/tools/make-standalone-toolchain.sh \
--platform=android-21 \
--arch=arm \
--install-dir=$TOOL_DIR_ARM \
--toolchain=arm-linux-androideabi-clang3.6\
--llvm-version=3.6 \
--system=darwin-x86_64
if [ -d $SYSROOT ]; then
echo "$SYSROOT is a valid directory"
fi
function build_x264
{
cd x264
# another build for phone
./configure \
--cross-prefix=arm-linux-androideabi- \
--sysroot=$SYSROOT \
--host=arm-linux \
--enable-static \
--enable-pic \
--disable-cli
make -j4
make install
cd ../
}
function build_one
{
cd
# another build for phone
./configure \
--sysroot=$SYSROOT \
--target-os=linux \
--arch=arm \
--cross-prefix=$TOOL_DIR_ARM/bin/arm-linux-androideabi- \
--cc=$TOOL_DIR_ARM/bin/clang \
--enable-cross-compile \
--enable-encoder=mpeg4 \
--enable-pthreads \
--enable-gpl \
--enable-libx264 \
--enable-pic \
--extra-cflags='-I/usr/local/include' \
--extra-ldflags='-L/usr/local/lib'
make clean
make -j4
make install
}
echo "Building x_264 library"
build_x264
echo "Building FFmpeg"
build_oneI get an error saying
No working C compiler found.
Makefile:3: config.mak: No such file or directoryThe following is the output from the config.log file
checking for -mdynamic-no-pic... yes
checking for -arch x86_64... yes
x264 configure script
checking whether gcc works... yes
checking whether gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99... yes
checking for -mpreferred-stack-boundary=5... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c -m64 -Qunused-arguments -Wall -I. -I$(SRCPATH) -mdynamic-no-pic -arch x86_64 -std=gnu99 -mpreferred-stack-boundary=5 -m64 -lm -arch x86_64$
clang: error: unknown argument: '-mpreferred-stack-boundary=5'
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) { return 0; }
--------------------------------------------------
checking whether yasm supports vpmovzxwd ymm0, xmm0... yesSolutions that I tried :
I made sure I have a working GCC
I have the update to date version of clang
I have the update to date version of LLVM
-
Building x264 on a Mac for android “No working C compiler found”
20 novembre 2015, par LostPuppyI am trying to build x264 and eventually use it to build ffmpeg the following is my script :
#!/bin/bash
NDK="/Users/account/Documents/FFmpeg/android-ndk-r10e"
TOOL_DIR_ARM="/Users/account/Documents/FFmpeg/android-ndk-r10e/sources/ffmpeg-2.8.2/my-android-toolchain"
SYSROOT=$NDK/platforms/platforms/android-21/arch-arm
echo "removing tool chain directory if it exists"
rm -r $TOOL_DIR_ARM
$NDK/build/tools/make-standalone-toolchain.sh \
--platform=android-21 \
--arch=arm \
--install-dir=$TOOL_DIR_ARM \
--toolchain=arm-linux-androideabi-clang3.6\
--llvm-version=3.6 \
--system=darwin-x86_64
if [ -d $SYSROOT ]; then
echo "$SYSROOT is a valid directory"
fi
function build_x264
{
cd x264
# another build for phone
./configure \
--cross-prefix=arm-linux-androideabi- \
--sysroot=$SYSROOT \
--host=arm-linux \
--enable-static \
--enable-pic \
--disable-cli
make -j4
make install
cd ../
}
function build_one
{
cd
# another build for phone
./configure \
--sysroot=$SYSROOT \
--target-os=linux \
--arch=arm \
--cross-prefix=$TOOL_DIR_ARM/bin/arm-linux-androideabi- \
--cc=$TOOL_DIR_ARM/bin/clang \
--enable-cross-compile \
--enable-encoder=mpeg4 \
--enable-pthreads \
--enable-gpl \
--enable-libx264 \
--enable-pic \
--extra-cflags='-I/usr/local/include' \
--extra-ldflags='-L/usr/local/lib'
make clean
make -j4
make install
}
echo "Building x_264 library"
build_x264
echo "Building FFmpeg"
build_oneI get an error saying
No working C compiler found.
Makefile:3: config.mak: No such file or directoryThe following is the output from the config.log file
checking for -mdynamic-no-pic... yes
checking for -arch x86_64... yes
x264 configure script
checking whether gcc works... yes
checking whether gcc supports for( int i = 0; i < 9; i++ ); with -std=gnu99... yes
checking for -mpreferred-stack-boundary=5... no
Failed commandline was:
--------------------------------------------------
gcc conftest.c -m64 -Qunused-arguments -Wall -I. -I$(SRCPATH) -mdynamic-no-pic -arch x86_64 -std=gnu99 -mpreferred-stack-boundary=5 -m64 -lm -arch x86_64$
clang: error: unknown argument: '-mpreferred-stack-boundary=5'
--------------------------------------------------
Failed program was:
--------------------------------------------------
int main (void) { return 0; }
--------------------------------------------------
checking whether yasm supports vpmovzxwd ymm0, xmm0... yesSolutions that I tried :
I made sure I have a working GCC
I have the update to date version of clang
I have the update to date version of LLVM