
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (29)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Gestion de la ferme
2 mars 2010, parLa ferme est gérée dans son ensemble par des "super admins".
Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
Dans un premier temps il utilise le plugin "Gestion de mutualisation" -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP 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 (...)
Sur d’autres sites (4594)
-
Build FFMPEG with x264 for Android
26 mai 2023, par KageI am trying to build FFMPEG with libx264 for Android.



I can successfully build and use FFMPEG for Android but I realized that I need the ability to encode, therefore I am trying to build FFMPEG with x264.



I am using this tutorial to build FFmpeg for Android http://www.roman10.net/how-to-build-ffmpeg-for-android/



When trying to build FFMPEG I get an error :





"ERROR : libx264 not found"





And in my log it says :





"/usr/local/lib/libx264.a : could not read symbols : Archive has no
 index ; run ranlib to add one..."





I have the latest versions of both FFMPEG and x264.
I understand that FFMPEG looks for the header and libraries in usr/lib and usr/include, so in order to make it find x264 I use the cflags and ldflags :



- 

- —extra-cflags = " -I/usr/local/include "
- —extra-ldflags = " -L/usr/local/lib "







I have tried building x264 with many different options that other people on the internet have said that i need. eg. —enable-shared, —enable-static, —disable-pthreads etc.
Some forums say enable this, others say no disable that.



Any help would be much appreciated,
Thanks



EDIT :



If I build FFmpeg with the simplest commands to include libx264 then it works.
ie.



./configure --enable-gpl --enable-libx264 --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib" --enable-static --enable-shared




However I need it to work for Android. The script I am using is :



NDK=~/Desktop/android-ndk-r7
PLATFORM=$NDK/platforms/android-8/arch-arm/
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86
function build_one
{
./configure --target-os=linux \
 --prefix=$PREFIX \
 --enable-cross-compile \
 --enable-shared \
 --enable-static \
 --extra-libs="-lgcc" \
 --arch=arm \
 --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
 --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
 --nm=$PREBUILT/bin/arm-linux-androideabi-nm \
 --sysroot=$PLATFORM \
 --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS -I/usr/local/include" \
 --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L $PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog -L/usr/local/lib " \
 --enable-gpl \
 --enable-libx264 \
 --disable-everything \
 --enable-demuxer=mov \
 --enable-demuxer=h264 \
 --disable-ffplay \
 --enable-protocol=file \
 --enable-avformat \
 --enable-avcodec \
 --enable-decoder=rawvideo \
 --enable-decoder=mjpeg \
 --enable-decoder=h263 \
 --enable-decoder=mpeg4 \
 --enable-decoder=h264 \
 --enable-encoder=mjpeg \
 --enable-encoder=h263 \
 --enable-encoder=mpeg4 \
 --enable-encoder=h264 \
 --enable-parser=h264 \
 --disable-network \
 --enable-zlib \
 --disable-avfilter \
 --disable-avdevice \
 $ADDITIONAL_CONFIGURE_FLAG

make clean
make -j4 install
$PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o
$PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -soname libffmpeg.so -shared -nostdlib -z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog --warn-once --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a
}

CPU=armv7-a
OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
PREFIX=./android/$CPU
ADDITIONAL_CONFIGURE_FLAG=
build_one




I am guessing that some option in my configure command is conflicting with enabling libx264



NOTE : If I remove —enable-libx264 then it works


-
Build FFMPEG with x264 for Android
26 mai 2023, par KageI am trying to build FFMPEG with libx264 for Android.



I can successfully build and use FFMPEG for Android but I realized that I need the ability to encode, therefore I am trying to build FFMPEG with x264.



I am using this tutorial to build FFmpeg for Android http://www.roman10.net/how-to-build-ffmpeg-for-android/



When trying to build FFMPEG I get an error :





"ERROR : libx264 not found"





And in my log it says :





"/usr/local/lib/libx264.a : could not read symbols : Archive has no
 index ; run ranlib to add one..."





I have the latest versions of both FFMPEG and x264.
I understand that FFMPEG looks for the header and libraries in usr/lib and usr/include, so in order to make it find x264 I use the cflags and ldflags :



- 

- —extra-cflags = " -I/usr/local/include "
- —extra-ldflags = " -L/usr/local/lib "







I have tried building x264 with many different options that other people on the internet have said that i need. eg. —enable-shared, —enable-static, —disable-pthreads etc.
Some forums say enable this, others say no disable that.



Any help would be much appreciated,
Thanks



EDIT :



If I build FFmpeg with the simplest commands to include libx264 then it works.
ie.



./configure --enable-gpl --enable-libx264 --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib" --enable-static --enable-shared




However I need it to work for Android. The script I am using is :



NDK=~/Desktop/android-ndk-r7
PLATFORM=$NDK/platforms/android-8/arch-arm/
PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86
function build_one
{
./configure --target-os=linux \
 --prefix=$PREFIX \
 --enable-cross-compile \
 --enable-shared \
 --enable-static \
 --extra-libs="-lgcc" \
 --arch=arm \
 --cc=$PREBUILT/bin/arm-linux-androideabi-gcc \
 --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
 --nm=$PREBUILT/bin/arm-linux-androideabi-nm \
 --sysroot=$PLATFORM \
 --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS -I/usr/local/include" \
 --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L $PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog -L/usr/local/lib " \
 --enable-gpl \
 --enable-libx264 \
 --disable-everything \
 --enable-demuxer=mov \
 --enable-demuxer=h264 \
 --disable-ffplay \
 --enable-protocol=file \
 --enable-avformat \
 --enable-avcodec \
 --enable-decoder=rawvideo \
 --enable-decoder=mjpeg \
 --enable-decoder=h263 \
 --enable-decoder=mpeg4 \
 --enable-decoder=h264 \
 --enable-encoder=mjpeg \
 --enable-encoder=h263 \
 --enable-encoder=mpeg4 \
 --enable-encoder=h264 \
 --enable-parser=h264 \
 --disable-network \
 --enable-zlib \
 --disable-avfilter \
 --disable-avdevice \
 $ADDITIONAL_CONFIGURE_FLAG

make clean
make -j4 install
$PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o
$PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -soname libffmpeg.so -shared -nostdlib -z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog --warn-once --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a
}

CPU=armv7-a
OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU "
PREFIX=./android/$CPU
ADDITIONAL_CONFIGURE_FLAG=
build_one




I am guessing that some option in my configure command is conflicting with enabling libx264



NOTE : If I remove —enable-libx264 then it works


-
ffmpeg binary for android not working
29 juillet 2014, par Abdul QadirI’ve copied the ffmpeg binary provided here in the
res/raw
folder into my project’s assets folder. Whenever I need to run ffmpeg commands, I copy the binary intodata/data/my-package-name/
and run the following command to check if everything works.Process process = Runtime.getRuntime().exec(ffmpegBinaryFilePath + " -version");
I get the output by logging the stream by
process.getInputStream()
. Everything works as expected. But the binary provided in the project is old (version 0.11.1) and I also need to enable lame library to work with mp3 extension. So I decided to build my own binary. I’ve build using this script and also another script showed here. When I place the build binary into my project’s assets folder. I get no output when I run the code above i.e. the log is empty. I’ve also tried building with this script but it doesn’t create any binary i.e. there is nobin
folder when compilation is finished.I’ve made ndk related changes to these scripts i.e. changed NDK, PLATFORM and PREBUILT variables (I have ndk10 64bit) and changed
--enable-shared --disable-static
to--disable-shared --enable-static
. Also cleared any references to other libraries in the--extra-cflags
and--extra-ldflags
. Do I need to make any more changes ? Any help would be appreciated !!EDIT :
here’s the log file of my latest build
http://justpaste.it/gfeb