
Recherche avancée
Autres articles (59)
-
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 ;
-
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 (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (10668)
-
ffmpeg crashing server working with fpm-php
1er janvier 2023, par JohnI'm running a wordpress bitnami stack consisting of apache, mariadb and fpm-php.
I have cron jobs fulfilling encoding of one video at a time using ffmpeg, so while fpm-php is serving http requests ffmpeg works in parallel encoding videos.
When encoding starts everything seems to work fine, as shown here :


But eventually after around an hour the server crashes due to lack of memory space. I've read that when CPU can't handle ffmpeg, ffmpeg will start consuming RAM until it exhausts it so that might be what causes the sudden spike in memory usage.


The image bellow illustrates what happens when the server crashes, kswapd0 creates virtual memory out of disk space to cope with lack of memory :



The server has 4vCPU and 8GB RAM. Website traffic is just me and a colleague, so it should be able to handle ffmpeg taking up around 1vCPU to encode videos.


I use the following configuration for fpm-php :


pm=ondemand
pm.max_children=5
pm.start_servers=2
pm.min_spare_servers=1
pm.max_spare_servers=3
pm.max_requests = 500



Has anyone had this issue before ?


Thank you.


I've tried changing around the configuration of fpm-php, but the issue still happens. I don't see how ffpmeg can crash the server when it's taking up about 25% of the CPU only, when there's no traffic to the server.


-
Get thumbnail image from video not working with PHP and ffmpeg (Ubuntu)
20 décembre 2018, par a_pajicI have generated a $cmd string :
ffmpeg -i /home/alen/www/mysite/video/Guitarist-139.mp4 -an -ss 0 -s
1280x720 /home/alen/www/mysite/img/Guitarist-139.jpgthen I have typing a command in PHP :
shell_exec($cmd);
but not working,
then I have pasted this string in terminal but in terminal work perfectly.
What is wrong.
-
FFmpeg installation not detected with diart
10 juin 2023, par Schrödinger's CatHere I'm using the diart library for audio transcription and the OpenAI Whisper model model.

When I run my code I get this error though

Traceback (most recent call last):
File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- 
packages/torchaudio/_extension.py", line 71, in _init_ffmpeg
_load_lib("libtorchaudio_ffmpeg")
File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- 
packages/torchaudio/_extension.py", line 52, in _load_lib
torch.ops.load_library(path)
File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- 
packages/torch/_ops.py", 
line 573, in load_library
ctypes.CDLL(path)
File "/usr/lib/python3.10/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libavdevice.so.58: cannot open shared object file: No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/vkyc/Desktop/audio_streaming/LiveStream.py", line 13, in <module>
from diart.sources import MicrophoneAudioSource
File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- 
packages/diart/sources.py", line 11, in <module>
from torchaudio.io import StreamReader
File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- 
packages/torchaudio/io/__init__.py", line 21, in __getattr__
torchaudio._extension._init_ffmpeg()
File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- 
packages/torchaudio/_extension.py", line 73, in _init_ffmpeg
raise ImportError("FFmpeg libraries are not found. Please install FFmpeg.") from err
ImportError: FFmpeg libraries are not found. Please install FFmpeg.
</module></module>


I tried
pip install python-ffmpeg
andsudo apt install ffmpeg
.

Although FFmpeg is installed on my system it still throws the same error.