
Recherche avancée
Autres articles (112)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (5404)
-
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.


-
ffmpeg was not found on your system in Azure service fabric application
17 novembre 2023, par dotnet developerI have a stateless service fabric application, which uses ffmpeg.exe to convert video files. ffmpeg.exe is added to the project and it's properties set to Content & Copy always. When I install the app on Azure VM (Service Fabric 5 node cluster), it has been deployed to D :\SvcFab_App\Sample_App1\Sample.Code.1.0.0. (D drive is temp storage on Azure VM). When ever I try to convert a video file, I am getting ffmpeg.exe was not found on your system exception. I am able to convert files in development environment and on on-prem server without any exception.


I tried to access ffmpeg.exe using Path.Combine(Directory.GetCurrentDirectory(), “ffmpeg.exe”) and Path.Combine(FabricRuntime.GetActivationContext().GetCodePackageObject(“Code”).Path, “ffmpeg.exe”)


-
How to pass custom parameters when creating docker swarm service ?
31 mai 2022, par MikeI am new to docker and docker swarm and started dockerizing several services and am trying to get them running as docker swarm services. I ran into a road block with the linuxserver/ffmpeg image :


- 

- it uses a —device parameter which is not implemented in create service
- it expects several custom parameters to pass them to the ffmpeg encoder






From my research up to now I assume that passing parameters is not implemented in docker create service, but maybe you can think of a workaround ? (unfortunately the image does not process environment variables, or at least they are not documented)


This is how I start dockerized ffmpeg (working fine in standalone mode) :


docker run -d /

—network="host" /

—device=/dev/video0 :/dev/video0 / ### error : unknow flag

—name ffmpeg_streamer /

—restart always -it /

-v $(pwd)/video :/video /

linuxserver/ffmpeg / ### custom parameters below here

-stream_loop /

-1 -re -nostdin /

-i "/video/test.avi" /

-f pulse /

-vcodec libx264 /

-preset:v veryfast /

-b:v 400k /

-f flv rtmp ://localhost:1935/live/streamkey

Many thanks for looking into this !