
Recherche avancée
Autres articles (31)
-
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
L’utiliser, en parler, le critiquer
10 avril 2011La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
Une liste de discussion est disponible pour tout échange entre utilisateurs.
Sur d’autres sites (5904)
-
How to record video across screens using FFmpeg on MacOS ?
2 novembre 2018, par 郭德纲I’m developing a MacOS application for recording screens, and in some cases, it needs to do cross-screen recording.
It records the screen by calling FFmpeg.
Let’s say I have four screens, each 1920x1080, with a total resolution of 3840x2160.Is it possible to record the screen by passing a coordinate and size to FFmpeg ? Same effect as the picture below.
-
‘ffbuild/library.mak : No such file or directory’ on building ffmpeg for android
20 octobre 2022, par JustinGongI use
ffmpeg-5.1
andandroid-ndk-r22b
inbuntu 20.04.4 LTS
system for building ffmpeg for android.

Firstly, under
ffmpeg-5.1
dir, I run./configure --disable-x86asm
.

Second, I run
sh build_android_clang.sh
, it shows error :

Makefile:113: ffbuild/library.mak: No such file or directory
make: *** No rule to make target 'ffbuild/library.mak'. Stop.
Makefile:113: ffbuild/library.mak: No such file or directory
make: *** No rule to make target 'ffbuild/library.mak'. Stop.
Makefile:113: ffbuild/library.mak: No such file or directory
make: *** No rule to make target 'ffbuild/library.mak'. Stop.



How to fix it ? Can anyone give some advises ?


The content of
build_android_clang.sh
is as follows :

#!/bin/bash
 
export NDK=/home/shicheng/gongzhenting/tools/android-tools/android-ndk-r22b
TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64

ARCH=arm 
CPU=armv7-a 
OS=android
PLATFORM=armv7a-linux-androideabi
PREFIX=$(pwd)/android/$CPU 
OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU "

PREFIX=$(pwd)/android/arm
SYSROOT=$TOOLCHAIN/sysroot
CROSS_PREFIX=$TOOLCHAIN/bin/llvm-
ANDROID_CROSS_PREFIX=$TOOLCHAIN/bin/${PLATFORM}21-

./configure \
--prefix=$PREFIX \
--enable-shared \
--enable-gpl \
--enable-neon \
--enable-hwaccels \
--enable-postproc \
--enable-jni \
--enable-small \
--enable-mediacodec \
--enable-decoder=h264_mediacodec \
--enable-ffmpeg \
--disable-ffplay \
--disable-ffprobe \
--disable-ffplay \
--disable-avdevice \
--disable-debug \
--disable-static \
--disable-doc \
--disable-symver \
--cross-prefix=$CROSS_PREFIX \
--target-os=$OS \
--arch=$ARCH \
--cpu=$CPU \
--cc=${ANDROID_CROSS_PREFIX}clang \
--cxx=${ANDROID_CROSS_PREFIX}clang++ \
--enable-cross-compile \
--sysroot=$SYSROOT \
--extra-cflags="-Os -fPIC $OPTIMIZE_CFLAGS" \
--extra-ldflags="$ADDI_LDFLAGS" \

make clean
make
make install



-
Building C library (FFmpeg) with Android NDK r17 : undefined reference to '__mulodi4'
14 mai 2018, par fpsulli3My problem happens to be with FFmpeg but I suspect that this would happen with almost any C library.
Problem Description
My app uses FFmpeg that is compiled with NDK r10e. I am trying to update everything to NDK r17, while also switching to clang, since Google prefers us to use that over gcc.
My first step is to just build FFmpeg.
To that end, I have used the
make_standalone_toolchain.py
script to create a stand-alone toolchain for the x86 architecture, like so :make_standalone_toolchain.py --arch x86 --api 21 --install-dir ~/Development/ndk-toolchains/x86
Then I configure the FFmpeg build as follows :
TOOLCHAIN_DIR=~/Development/ndk-toolchains/x86
./configure \
--prefix=$(pwd)/android/x86 \
--cross-prefix=$TOOLCHAIN_DIR/bin/i686-linux-android- \
--target-os=android \
--arch=x86 \
--enable-cross-compile \
--disable-asm \
--toolchain=clang-usan \
--disable-stripping \
--extra-cflags="-m32" \
--sysroot=$TOOLCHAIN_DIR/sysroot/And then I build it as follows :
make clean
make -j4
make installEverything seems to compile fine, but I get several linker errors that all say the same thing :
undefined reference to ’__mulodi4’
Solutions I’ve tried
1. Linking against libclang_rt.builtins*
I found a few places around the Web which suggested that this is caused by the fact that libgcc doesn’t provide
__mulodi4
. A github user named sitsofe was nice enough to post a work-around here. However, I am sure where to find thislibclang_rt.builtins-i686.a
library. Here is what I was able to find in my standalone toolchain directory :./lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-x86_64.a
./lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-i386.a
./lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-aarch64-android.a
./lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-mips64-android.a
./lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-x86_64-android.a
./lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-i686-android.a
./lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-arm-android.a
./lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-mips-android.aThe
libclang_rt.builtins-i686-android.a
library looks close but (I think) no cigar. When I try to link to it, I get the same error :undefined reference to ’__mulodi4’
Here is my new FFmpeg build config command :
./configure \
--prefix=$(pwd)/android/x86 \
--cross-prefix=$TOOLCHAIN_DIR/bin/i686-linux-android- \
--target-os=android \
--arch=x86 \
--enable-cross-compile \
--disable-asm \
--toolchain=clang-usan \
--disable-stripping \
--extra-cflags="-m32" \
--extra-ldflags="-L${TOOLCHAIN_DIR}/lib64/clang/6.0.2/lib/linux/libclang_rt.builtins-i686-android.a" \
--sysroot=$TOOLCHAIN_DIR/sysroot/I checked with
-v
to make sure that this line was added to the linker flags, and it was. However, I have no idea if this library should even be expected to work, let alone whether I’m adding it to the linker flags correctly. In any case, what I’m doing here doesn’t work.2. Switching to a different sanitizer
Instead of using the undefined sanitizer, I tried switching to the address sanitizer. This is (frankly) a total stab in the dark, based on a vague mention of asan being available in r17 at Google I/O this week.
In this case, FFmpeg builds just fine !
However, when I try to pull FFmpeg into my test project (a simple AAR w/ C++ support, that just has one jni method that calls
av_gettime()
, I get a ton of linker errors :Error:error : undefined reference to ’__asan_option_detect_stack_use_after_return’
Error:error : undefined reference to ’__asan_stack_malloc_0’
Error:error : undefined reference to ’__asan_report_load4’
Error:error : undefined reference to ’__asan_report_load4’
Error:error : undefined reference to ’__asan_shadow_memory_dynamic_address’
Error:error : undefined reference to ’__asan_option_detect_stack_use_after_return’
Error:error : undefined reference to ’__asan_stack_malloc_0’
Error:error : undefined reference to ’__asan_report_load4’
Error:error : undefined reference to ’__asan_report_load4’
Error:error : undefined reference to ’__asan_shadow_memory_dynamic_address’
Error:error : undefined reference to ’__asan_option_detect_stack_use_after_return’
Error:error : undefined reference to ’__asan_stack_malloc_0’
Error:error : undefined reference to ’__asan_report_store4’
Error:error : undefined reference to ’__asan_report_store4’
Error:error : undefined reference to ’__asan_init’
Error:error : undefined reference to ’__asan_version_mismatch_check_v9’So it seems to find the FFmpeg library just fine, indicating that that part of my CMake file is correct, but it can’t locate any of these asan references.
This seems to be a common problem that people are running into, but I can’t see to find a work-around that actually works for me.