Recherche avancée

Médias (91)

Autres articles (110)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (8841)

  • Missing ffmpeg https protocol : How to add https protocol in ffmpeg installed in Elastic beanstalk ?

    24 novembre 2023, par threeFatCat

    I installed ffmpeg latest static build in my Elastic Beanstalk instance following this answer.

    


    When I run my code in the server I got this message :

    


    https protocol not found, recompile FFmpeg with openssl, gnutls or securetransport enabled.


    


    I checked the buildinfo in https://johnvansickle.com/ffmpeg and https protocol is listed as supported, but when I run :

    


    ffmpeg -protocols


    


    https is missing.

    


    How do I proceed ?

    


  • MoviePY error when running in Docker Container using Amazon Elastic Container Service

    27 mai 2023, par Giba

    I'm developing a script that generates a video with the information provided by the user using Moviepy. The application runs in a docker container.

    


    In my test environment (locally) the application usually runs generating the videos as expected. However, when I deploy to the Amazon Elastic Container Instance environment, the application renders the following error :

    


    /tmp/334.mp31boi_q7b: Invalid data found when processing input
Here are the file infos returned by ffmpeg: 
ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)

libpostproc 55. 5.100 / 55. 5.100
libswresample 3. 5.100 / 3. 5.100
libswscale 5. 5.100 / 5. 5.100
libavfilter 7. 57.100 / 7. 57.100
libavdevice 58. 8.100 / 58. 8.100
libavformat 58. 29.100 / 58. 29.100
libavcodec 58. 54.100 / 58. 54.100
libavutil 56. 31.100 / 56. 31.100

configuration: 
--enable-gpl 
--enable-version3 
--enable-static 
--disable-debug 
--disable-ffplay 
--disable-indev=sndio 
--disable-outdev=sndio 
--cc=gcc 
--enable-fontconfig 
--enable-frei0r 
--enable-gnutls 
--enable-gmp 
--enable-libgme 
--enable-gray 
--enable-libaom 
--enable-libfribidi 
--enable-libass 
--enable-libvmaf 
--enable-libfreetype 
--enable-libmp3lame 
--enable-libopencore-amrnb 
--enable-libopencore-amrwb 
--enable-libopenjpeg 
--enable-librubberband 
--enable-libsoxr 
--enable-libspeex 
--enable-libsrt 
--enable-libvorbis 
--enable-libopus 
--enable-libtheora 
--enable-libvidstab 
--enable-libvo-amrwbenc 
--enable-libvpx 
--enable-libwebp 
--enable-libx264 
--enable-libx265 
--enable-libxml2 
--enable-libdav1d 
--enable-libxvid 
--enable-libzvbi 
--enable-libzimg

OSError: MoviePy error: failed to read the duration of file /tmp/334.mp31boi_q7b.


    


    To retrieve files sent by the user, I use tempfile.NamedTemporaryFile and manipulate them in memory. I make some slices in the audio to synchronize with images (as if they were slides) and to concatenate them I use the following :

    


    audio_concat = concatenate_audioclips(audio_clips)


    


    and at the end, I generate the video as follows :

    


    with tempfile.NamedTemporaryFile(prefix=video_path, suffix='', delete=False) as data:
    video.write_videofile(data.name, fps=24, codec="libx264", ffmpeg_params=['-f', 'mp4'], threads=multiprocessing.cpu_count())


    


    As said, everything works fine in the container locally, but the same does not happen in ECS.

    


    Does anyone have any idea what I might be doing wrong ?

    


    My Dockerfile

    


    FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive

WORKDIR /video_composer

COPY requirements.txt /video_composer/requirements.txt

RUN apt-get update && apt-get install -y software-properties-common gcc && \
    add-apt-repository -y ppa:deadsnakes/ppa

RUN apt-get update && apt-get install -y python3.11 python3-distutils python3-pip python3-apt
RUN apt-get -y update
RUN apt-get install -y ffmpeg

RUN pip install -r /video_composer/requirements.txt

RUN python3 -m certifi

COPY . /video_composer/

EXPOSE 8003

CMD ["uvicorn", "video_composer:app", "--proxy-headers", "--host", "0.0.0.0", "--port", "8003"]


    


    Some solutions consulted and no success

    


    Moviepy unable to read duration of file

    


    https://github.com/Zulko/moviepy/issues/116

    


    When trying to execute the mentioned solutions I continued to have the same error in the ECS but without errors locally.

    


  • How to enable libx264 for FFmpeg on Elastic Beanstalk

    2 août 2021, par user15575918

    My question is very similar to that of this person, but the suggested answer did not work for me.

    


    Using the following ffmpeg.config file in .ebextensions I am able to install ffmpeg, but without the libx264 codec.

    


    packages:
  yum:
    autoconf: []
    automake: []
    cmake: []
    freetype-devel: []
    gcc: []
    gcc-c++: []
    git: []
    libtool: []
    make: []
    nasm: []
    pkgconfig: []
    zlib-devel: []
sources:
  /usr/local/src: http://ffmpeg.org/releases/ffmpeg-4.4.tar.bz2
commands:
    ffmpeg_install:
      cwd: /usr/local/src/ffmpeg-4.4
      command: sudo ./configure --prefix="/usr" --enable-gpl && make && make install


    


    And so, to install libx264, I have tried replacing the lines after commands: with :

    


      01-install_libx264:
      cwd: /usr/local/src/
      command: git clone https://code.videolan.org/videolan/x264.git && cd x264 && ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && make && make install
  02-ffmpeg_install:
      cwd: /usr/local/src/ffmpeg-4.4
      command: sudo ./configure --prefix="/usr" --enable-gpl --enable-libx264 && make && make install


    


    It didn't work, so I tried :

    


      01-install_libx264:
      cwd: /usr/local/src/
      command: curl -L -O https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2 && tar xjvf x264-master.tar.bz2 && cd x264-master && ./configure --bindir="$HOME/bin" --disable-shared --enable-nasm && make && make install
  02-ffmpeg_install:
      cwd: /usr/local/src/ffmpeg-4.4
      command: sudo ./configure --prefix="/usr" --enable-gpl --enable-libx264 && make && make install


    


    Neither have worked. Any ideas what I'm doing wrong here ?
Deployment fails, log says "Unsuccessful command execution on instance", but no further detail. Is there any way to debug the command execution better ?