Recherche avancée

Médias (1)

Mot : - Tags -/epub

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 (4141)

  • FFMPEG BlockingIOError : [Errno 11] Resource temporarily unavailable

    18 septembre 2021, par mugetsu

    I have a multiprocess pool calling different instances of ffmpeg and outputing a video file. Some of these videos are hundreds of megabytes and take a while to create. I'm seemingly getting IO bottlenecked :

    


      File "", line 2, in write_videofile
  File "/home/xxx/.local/lib/python3.7/site-packages/moviepy/decorators.py", line 135, in use_clip_fps_by_default
    return f(clip, *new_a, **new_kw)
  File "", line 2, in write_videofile
  File "/home/xxx/.local/lib/python3.7/site-packages/moviepy/decorators.py", line 22, in convert_masks_to_RGB
    return f(clip, *a, **k)
  File "/home/xxx/.local/lib/python3.7/site-packages/moviepy/video/VideoClip.py", line 307, in write_videofile
    logger=logger)
  File "/home/xxx/.local/lib/python3.7/site-packages/moviepy/video/io/ffmpeg_writer.py", line 216, in ffmpeg_write_video
    ffmpeg_params=ffmpeg_params) as writer:
  File "/home/xxx/.local/lib/python3.7/site-packages/moviepy/video/io/ffmpeg_writer.py", line 129, in __init__
    self.proc = sp.Popen(cmd, **popen_params)
  File "/usr/lib64/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.7/subprocess.py", line 1482, in _execute_child
    restore_signals, start_new_session, preexec_fn)
BlockingIOError: [Errno 11] Resource temporarily unavailable
"""


    


    This is weird but iotop never shows me with more than 10% io. My CPU is doing fine too, I have plenty of idle cores when this is running.

    


    The error here shows that its happening on ffmpeg_write, so clearly an IO constraint.

    


    Is there a way to make the write call threaded(I assume that's the fix) ? Is that ok even though this is happening in a multiprocess pool ?

    


  • FFMPEG on cygwin failed to compile libx264 error : unknown type name ‘HMODULE’

    6 mai 2020, par Ivan Lee

    I am trying to compile libx264 in ffmpeg under cygwin environment.

    



    I have followed some directions from several sources from Koohiimaster's blog, FFMPEG compilation guide, SO post 1, SO post 2 but I always stuck at the same step which is the libx264 compilation (make) process.

    



    As mentioned in the FFMPEG compilation guide these steps should be followed in order to make libx264 works

    



    cd ~/ffmpeg_sources
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" bindir="$HOME/bin" --enable-static --disable-opencl
PATH="$HOME/bin:$PATH" make
make install


    



    but when i enter this command PATH="$HOME/bin:$PATH" make the compiler always stop with the following errors :

    



    In file included from input/avs.c:49:0:
./extras/avisynth_c.h:825:3: error: unknown type name ‘HMODULE’
HMODULE handle;
^


    



    I was wondering whether this is libx264 source's bug, but after I tried several earlier source version, it produce the same error. Any thoughts to solve this problem ?

    


  • FFMPEG on cygwin failed to compile libx264 error : unknown type name ‘HMODULE’

    6 mai 2020, par Ivan Lee

    I am trying to compile libx264 in ffmpeg under cygwin environment.

    



    I have followed some directions from several sources from Koohiimaster's blog, FFMPEG compilation guide, SO post 1, SO post 2 but I always stuck at the same step which is the libx264 compilation (make) process.

    



    As mentioned in the FFMPEG compilation guide these steps should be followed in order to make libx264 works

    



    cd ~/ffmpeg_sources
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
PATH="$HOME/bin:$PATH" ./configure --prefix="$HOME/ffmpeg_build" bindir="$HOME/bin" --enable-static --disable-opencl
PATH="$HOME/bin:$PATH" make
make install


    



    but when i enter this command PATH="$HOME/bin:$PATH" make the compiler always stop with the following errors :

    



    In file included from input/avs.c:49:0:
./extras/avisynth_c.h:825:3: error: unknown type name ‘HMODULE’
HMODULE handle;
^


    



    I was wondering whether this is libx264 source's bug, but after I tried several earlier source version, it produce the same error. Any thoughts to solve this problem ?