
Recherche avancée
Autres articles (61)
-
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 -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...)
Sur d’autres sites (6924)
-
How to link libavcodec, libavformat in automake ?
15 juillet 2014, par user2212461I am using the libavcodec and libavformat libraries from ffmpeg in a C++ project. Linking -lavcodec -lavformat with the g++ compiler works fine, but I’m not sure what goes wrong when I try to use the same code compiled in an automake project.
Working fine :
g++ -o test -D__STDC_CONSTANT_MACROS -lavcodec -lavformat test.cpp
Not working Makefile.am :
binaryname_LDFLAGS= -lavcodec -lavformat
Error :
....
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libavformat.a(nut.o):function
ff_nut_add_sp: error: undefined reference to 'av_tree_node_size'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libavformat.a(nut.o):function
ff_nut_add_sp: error: undefined reference to 'av_tree_insert'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libavformat.a(nut.o):function
ff_nut_free_sp: error: undefined reference to 'av_tree_enumerate'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libavformat.a(nut.o):function
ff_nut_free_sp: error: undefined reference to 'av_tree_destroy'
/usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/libavformat.a(rtp.o):function
ff_rtp_get_payload_type: error: undefined reference to 'av_opt_get_int'
...also not working :
LDFLAGS=...-lavcodec -lavformat
Error :
src/dsp/audioDecoder.cpp:99: error: undefined reference to 'av_register_all'
src/dsp/audioDecoder.cpp:101: error: undefined reference to 'avcodec_find_decoder'
src/dsp/audioDecoder.cpp:109: error: undefined reference to 'avcodec_alloc_context'
src/dsp/audioDecoder.cpp:120: error: undefined reference to 'avcodec_open2'
src/dsp/audioDecoder.cpp:125: error: undefined reference to 'av_init_packet'
src/dsp/audioDecoder.cpp:188: error: undefined reference to 'avcodec_decode_audio3'In the second case, if I don’t set any linker, the include header cannot be found so the linker seems somehow recognized.
make V=1 returns :
make all-am
make[1]: Go to '/path/to/trunk'
/bin/bash ./libtool --tag=CXX --mode=link g++ -O2 -lrt -D__STDC_CONSTANT_MACROS -o binaryname progsrc/binaryname/binaryname-binaryname.o -lm -lpthread -ldl -lmygeneratedlibrary
libtool: link: g++ -O2 -D__STDC_CONSTANT_MACROS -o binaryname progsrc/binaryname/binaryname-binaryname.o -lm /path/to//trunk/.libs/lmygeneratedlibrary.a -lrt -lavutil -lavcodec -lavformat -lpthread -ldl
make[1]: Leave '/path/to/trunk'What am I doing wrong here ?
-
lavfi : set the link hwframes context before configuring the dst input
21 juin 2016, par Anton Khirnov -
Static link ffmpeg with Rust in msys2
31 janvier 2024, par anonymousI'm trying to build ffmpeg with Rust with the library ffmpeg-next and staticlly link ffmpeg on Windows inside msys2
ucrt64
environment,
When compile withcargo build --release

It throws many undefined reference errors

undefined reference to `ENGINE_load_builtin_engines'
undefined reference to `GdipBitmapSetPixel'
undefined reference to `EVP_PKEY_CTX_free'



The setup :


pacman -S --needed $MINGW_PACKAGE_PREFIX-{rust,ffmpeg}
mkdir project 
cd project
cargo init --bin
cargo add ffmpeg-next -F static



The entrypoint
main.rs


use ffmpeg_next;
fn main() {
 ffmpeg_next::init().unwrap();
}



Build command


cargo build --release