Recherche avancée

Médias (91)

Autres articles (26)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (3522)

  • 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;

  • iOS Recorded Video Playback on Android

    1er mars 2015, par Nirav

    I am trying to record video from iPhone device using UIImagePickerController and able to store it in MP4 format. The same video is uploaded on the Amazon S3 cloud.

    When I try to play the same video on Android devices, it fails to play with an error, cannot play.

    I searched forums/google and found that ffmpeg should be used to compress the video before uploading. I want to do the compression on the phone itself rather than on the server. Which is the best way to achieve this ?

    Regards,

    Nirav