
Recherche avancée
Autres articles (110)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras. -
Que fait exactement ce script ?
18 janvier 2011, parCe script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
Installation de dépendances de MediaSPIP
Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)
Sur d’autres sites (4994)
-
Make a video in sequential order from frames
11 septembre 2021, par shailzaI have saved images in the sequential format- 0.jpg, 1.jpg, ---,99.jpg, 100.jpg. I am making video from these frames by using ffmpeg for conversion :


cmd1 = 'ffmpeg -framerate 25 -pattern_type glob -i "/home/ubuntu/17/1_1/*.jpg" /home/ubuntu/17_a.avi'


But ffmpeg is not reading the images in sequential manner. How to make a video that take frames in a sequential order.


-
an error about ffmpeg:maybe incorrect parameters such as bit_rate, rate, width or height?
7 janvier 2023, par Roberick Lisubprocess.CalledProcessError: Command '['ffmpeg', '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '300x300', '-pix_fmt', 'rgba', '-r', '20', '-loglevel', 'error', '-i', 'pipe:', '-vcodec', 'h264', '-pix_fmt', 'yuv420p', '-y', './save/humanml_trans_enc_512/samples_humanml_trans_enc_512_000200000_seed10/sample00_rep00.mp4']' returned non-zero exit status 1.



this is the error when I running a python script :


Traceback (most recent call last):
 File "/home/rob/anaconda3/envs/mdm/lib/python3.7/runpy.py", line 193, in _run_module_as_main
 "__main__", mod_spec)
 File "/home/rob/anaconda3/envs/mdm/lib/python3.7/runpy.py", line 85, in _run_code
 exec(code, run_globals)
 File "/home/rob/motion-diffusion-model/sample/generate.py", line 256, in <module>
 main()
 File "/home/rob/motion-diffusion-model/sample/generate.py", line 189, in main
 plot_3d_motion(animation_save_path, skeleton, motion, dataset=args.dataset, title=caption, fps=fps)
 File "/home/rob/motion-diffusion-model/data_loaders/humanml/utils/plot_script.py", line 128, in plot_3d_motion
 ani.save(save_path, fps=fps)
 File "/home/rob/anaconda3/envs/mdm/lib/python3.7/site-packages/matplotlib/animation.py", line 1156, in save
 writer.grab_frame(**savefig_kwargs)
 File "/home/rob/anaconda3/envs/mdm/lib/python3.7/contextlib.py", line 130, in __exit__
 self.gen.throw(type, value, traceback)
 File "/home/rob/anaconda3/envs/mdm/lib/python3.7/site-packages/matplotlib/animation.py", line 232, in saving
 self.finish()
 File "/home/rob/anaconda3/envs/mdm/lib/python3.7/site-packages/matplotlib/animation.py", line 367, in finish
 self.cleanup()
 File "/home/rob/anaconda3/envs/mdm/lib/python3.7/site-packages/matplotlib/animation.py", line 411, in cleanup
 self._proc.returncode, self._proc.args, out, err)
subprocess.CalledProcessError: Command '['ffmpeg', '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '300x300', '-pix_fmt', 'rgba', '-r', '20', '-loglevel', 'error', '-i', 'pipe:', '-vcodec', 'h264', '-pix_fmt', 'yuv420p', '-y', './save/humanml_trans_enc_512/samples_humanml_trans_enc_512_000200000_seed10/sample00_rep00.mp4']' returned non-zero exit status 1.
</module>


Thanks for you help very much !!!


I tried to run the command alone, then for a long time the program did not return, and after using ctrl+c it reported the following error:


[libopenh264 @ 0x555582eec100] Incorrect library version loaded
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height



-
compile ffmpeg report "libprotokit.a : No such file or directory"
5 juillet 2022, par razvanOn kubuntu 21.04 I successfully compiled ffmpeg from latest snapshot.


Now I try to add "—enable-libzmq" to configure command :


PATH="$HOME/.ffmpeg/bin:$PATH" PKG_CONFIG_PATH="$HOME/.ffmpeg/build/lib/pkgconfig" ./configure \
 --prefix="$HOME/.ffmpeg/build" \
 --pkg-config-flags="--static" \
 --extra-cflags="-I$HOME/.ffmpeg/build/include" \
 --extra-ldflags="-L$HOME/.ffmpeg/build/lib" \
 --extra-libs="-lpthread -lm" \
 --ld="g++" \
 --bindir="$HOME/.ffmpeg/bin" \
 --extra-version="...." \
 --arch=x86_64 \
 --enable-gpl \
 --enable-version3 \
...
 --enable-libxml2 \
 --enable-lv2 \
 --enable-libxcb \
 --enable-libxcb-shm \
 --enable-libzmq \
 --enable-nonfree && \
PATH="$HOME/.ffmpeg/bin:$PATH" make -j4 && \
make install



and configure end with this error in config.log :


require_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new
check_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new
test_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new
pkg-config --exists --print-errors libzmq >= 4.2.1
check_func_headers zmq.h zmq_ctx_new -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -lzmq -lstdc++ -lpthread -lrt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lsodium -pthread -lpgm -lpthread -lm -lnorm libprotokit.a -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm -lbsd -ldl -lmd
test_ld cc -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -lzmq -lstdc++ -lpthread -lrt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support -lsodium -pthread -lpgm -lpthread -lm -lnorm libprotokit.a -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm -lbsd -ldl -lmd
test_cc -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -pthread libprotokit.a
BEGIN /tmp/ffconf.AIehU3Rh/test.c
 1 #include 
 2 #include 
 3 long check_zmq_ctx_new(void) { return (long) zmq_ctx_new; }
 4 int main(void) { int ret = 0;
 5 ret |= ((intptr_t)check_zmq_ctx_new) & 0xFFFF;
 6 return ret; }
END /tmp/ffconf.AIehU3Rh/test.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC -I/home/raz/.ffmpeg/build/include -std=c11 -fomit-frame-pointer -fPIC -pthread -I/usr/include/p11-kit-1 -I/usr/include/lilv-0 -I/usr/include/sratom-0 -I/usr/include/sord-0 -I/usr/include/serd-0 -I/usr/include/uuid -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/fribidi -I/usr/include/freetype2 -I/usr/include/libpng16 -I/home/raz/.ffmpeg/build/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/openjpeg-2.3 -I/home/raz/.ffmpeg/build/include/opus -I/home/raz/.ffmpeg/build/include/opus -D_REENTRANT -pthread -I/home/raz/.ffmpeg/build/include/libvmaf -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -I/home/raz/.ffmpeg/build/include -isystem /usr/include/mit-krb5 -I/usr/include/pgm-5.3 -I/usr/include/libxml2 -L/usr/lib/x86_64-linux-gnu/mit-krb5 -pthread libprotokit.a -c -o /tmp/ffconf.AIehU3Rh/test.o /tmp/ffconf.AIehU3Rh/test.c
gcc: error: libprotokit.a: No such file or directory
ERROR: libzmq >= 4.2.1 not found using pkg-config



libzmq3-dev is installed and

I have this libprotokit.a in

/usr/lib/x86_64-linux-gnu/libprotokit.a

Why configure does not find this library ?


libzmq.pc exist on the machine


dpkg -L libzmq3-dev|grep pc
/usr/lib/x86_64-linux-gnu/pkgconfig/libzmq.pc

cat /usr/lib/x86_64-linux-gnu/pkgconfig/libzmq.pc 

prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib/x86_64-linux-gnu
includedir=${prefix}/include

Name: libzmq
Description: 0MQ c++ library
Version: 4.3.4
Libs: -L${libdir} -lzmq
Libs.private: -lstdc++ -lpthread -lrt
Requires.private: krb5-gssapi libsodium openpgm-5.3 >= 5.3 norm libbsd
Cflags: -I${includedir}