Recherche avancée

Médias (0)

Mot : - Tags -/serveur

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (42)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications 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 (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8815)

  • ffmpeg crashing server working with fpm-php

    1er janvier 2023, par John

    I'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 : ffmpeg working alongside fpm-php

    


    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 :
enter image description here

    


    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_pajic

    I 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.jpg

    then 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 Cat

    Here 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):&#xA;File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- &#xA;packages/torchaudio/_extension.py", line 71, in _init_ffmpeg&#xA;_load_lib("libtorchaudio_ffmpeg")&#xA;File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- &#xA;packages/torchaudio/_extension.py", line 52, in _load_lib&#xA;torch.ops.load_library(path)&#xA;File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- &#xA;packages/torch/_ops.py", &#xA;line 573, in load_library&#xA;ctypes.CDLL(path)&#xA;File "/usr/lib/python3.10/ctypes/__init__.py", line 374, in __init__&#xA;self._handle = _dlopen(self._name, mode)&#xA;OSError: libavdevice.so.58: cannot open shared object file: No such file or directory&#xA;&#xA;The above exception was the direct cause of the following exception:&#xA;&#xA;Traceback (most recent call last):&#xA;File "/home/vkyc/Desktop/audio_streaming/LiveStream.py", line 13, in <module>&#xA;from diart.sources import MicrophoneAudioSource&#xA;File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- &#xA;packages/diart/sources.py", line 11, in <module>&#xA;from torchaudio.io import StreamReader&#xA;File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- &#xA;packages/torchaudio/io/__init__.py", line 21, in __getattr__&#xA;torchaudio._extension._init_ffmpeg()&#xA;File "/home/vkyc/Desktop/projectRasa/audio/lib/python3.10/site- &#xA;packages/torchaudio/_extension.py", line 73, in _init_ffmpeg&#xA;raise ImportError("FFmpeg libraries are not found. Please install FFmpeg.") from err&#xA;ImportError: FFmpeg libraries are not found. Please install FFmpeg.&#xA;</module></module>

    &#xA;

    I tried pip install python-ffmpeg andsudo apt install ffmpeg.
    &#xA;Although FFmpeg is installed on my system it still throws the same error.

    &#xA;