
Recherche avancée
Autres articles (11)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)
Sur d’autres sites (4693)
-
MoviePY error when running in Docker Container using Amazon Elastic Container Service
27 mai 2023, par GibaI'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 run FFMPEG with —enable-libfontconfig on Amazon Lambda
20 avril 2024, par Adrien KaczmarekProblem


I want to run
FFmpeg
on AWS Lambda (Amazon Linux 2) with the configuration--enable-libfontconfig
enable.

Situation


I already have
FFmpeg
running on AWS Lambda without the configuration--enable-libfontconfig
.

Here is the step I took to run
FFmpeg
on AWS Lambda (see official guide) :

- 

- Connect to Amazon EC2 running on AL2 (environment used by Lambda for Python 3.11)
- Download and package
FFmpeg
from John Van Sickle - Create a Lambda Layer with
FFmpeg








Unfortunately, the version built by John Van Sickle doesn't have the configuration
--enable-libfontconfig
enabled.

Unsuccessful Trials


I tried to rebuilt it from scratch following the installation guide but without success (and the guide doesn't install font related dependencies)


I tried to install it with
brew
but the commandbrew install ffmpeg
didn't succeed on AL2.

I tried to install
ffmpeg
fromffmpeg-master-latest-linux64-gpl.tar.xz
. Unfortunately, this build offfmpeg
doesn't run on AL2 :

ffmpeg: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ffmpeg)
ffmpeg: /lib64/libpthread.so.0: version `GLIBC_2.28' not found (required by ffmpeg)
ffmpeg: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by ffmpeg)
ffmpeg: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ffmpeg)



Any help would be greatly appreciated,


Please make sure your answer is up to date and tested. Too many answers out there are auto-generated, too generic, or simple redirect without context.


Thank you


-
How to run FFMPEG with —enable-libfontconfig on Amazon Linux 2
22 avril 2024, par Adrien KaczmarekProblem


I want to run
FFmpeg
on AWS Lambda (Amazon Linux 2) with the configuration--enable-libfontconfig
enable.

Situation


I already have
FFmpeg
running on AWS Lambda without the configuration--enable-libfontconfig
.

Here is the step I took to run
FFmpeg
on AWS Lambda (see official guide) :

- 

- Connect to Amazon EC2 running on AL2 (environment used by Lambda for Python 3.11)
- Download and package
FFmpeg
from John Van Sickle - Create a Lambda Layer with
FFmpeg








Unfortunately, the version built by John Van Sickle doesn't have the configuration
--enable-libfontconfig
enabled.

Unsuccessful Trials


I tried to rebuilt it from scratch following the installation guide but without success (and the guide doesn't install font related dependencies)


I tried to install it with
brew
but the commandbrew install ffmpeg
didn't succeed on AL2.

I tried to install
ffmpeg
fromffmpeg-master-latest-linux64-gpl.tar.xz
. Unfortunately, this build offfmpeg
doesn't run on AL2 :

ffmpeg: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ffmpeg)
ffmpeg: /lib64/libpthread.so.0: version `GLIBC_2.28' not found (required by ffmpeg)
ffmpeg: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by ffmpeg)
ffmpeg: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ffmpeg)



Any help would be greatly appreciated,


Please make sure your answer is up to date and tested. Too many answers out there are auto-generated, too generic, or simple redirect without context.


Thank you