Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (110)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin 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, par

    La 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, par

    Ce 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 shailza

    I 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 Li
    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.


    


    this is the error when I running a python script :

    


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

    &#xA;

    Thanks for you help very much !!!

    &#xA;

    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:

    &#xA;

    [libopenh264 @ 0x555582eec100] Incorrect library version loaded&#xA;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&#xA;

    &#xA;

  • compile ffmpeg report "libprotokit.a : No such file or directory"

    5 juillet 2022, par razvan

    On kubuntu 21.04 I successfully compiled ffmpeg from latest snapshot.

    &#xA;

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

    &#xA;

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

    &#xA;

    and configure end with this error in config.log :

    &#xA;

    require_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new&#xA;check_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new&#xA;test_pkg_config libzmq libzmq >= 4.2.1 zmq.h zmq_ctx_new&#xA;pkg-config --exists --print-errors libzmq >= 4.2.1&#xA;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&#x2B;&#x2B; -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&#xA;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&#x2B;&#x2B; -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&#xA;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&#xA;BEGIN /tmp/ffconf.AIehU3Rh/test.c&#xA;    1   #include &#xA;    2   #include &#xA;    3   long check_zmq_ctx_new(void) { return (long) zmq_ctx_new; }&#xA;    4   int main(void) { int ret = 0;&#xA;    5    ret |= ((intptr_t)check_zmq_ctx_new) &amp; 0xFFFF;&#xA;    6   return ret; }&#xA;END /tmp/ffconf.AIehU3Rh/test.c&#xA;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&#xA;gcc: error: libprotokit.a: No such file or directory&#xA;ERROR: libzmq >= 4.2.1 not found using pkg-config&#xA;

    &#xA;

    libzmq3-dev is installed and
    &#xA;I have this libprotokit.a in
    &#xA;/usr/lib/x86_64-linux-gnu/libprotokit.a

    &#xA;

    Why configure does not find this library ?

    &#xA;

    libzmq.pc exist on the machine

    &#xA;

    dpkg -L libzmq3-dev|grep pc&#xA;/usr/lib/x86_64-linux-gnu/pkgconfig/libzmq.pc&#xA;&#xA;cat /usr/lib/x86_64-linux-gnu/pkgconfig/libzmq.pc &#xA;&#xA;prefix=/usr&#xA;exec_prefix=${prefix}&#xA;libdir=${prefix}/lib/x86_64-linux-gnu&#xA;includedir=${prefix}/include&#xA;&#xA;Name: libzmq&#xA;Description: 0MQ c&#x2B;&#x2B; library&#xA;Version: 4.3.4&#xA;Libs: -L${libdir} -lzmq&#xA;Libs.private: -lstdc&#x2B;&#x2B;  -lpthread -lrt&#xA;Requires.private:  krb5-gssapi libsodium openpgm-5.3 >= 5.3 norm libbsd&#xA;Cflags: -I${includedir} &#xA;

    &#xA;