Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (70)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (11102)

  • Revision 31957 : légère amélioration ... Un peu de documentation dans le code également

    7 octobre 2009, par kent1@… — Log

    légère amélioration ...
    Un peu de documentation dans le code également

  • FFMPEG code not generating thumbnail, but it was working before [closed]

    25 mars 2020, par Shijil

    I want to save thumbnails in my website using this simple FFMPEG code.
    I tried to run it, but it shows error

       <?php


    $file="Videos/bloodshot.mp4";
    $vname="bloodshot";

    $W = intval($_GET['file']);
    $H = intval($_GET['file']);

    if(substr($file,0,1) != '.'){

    $mov = new ffmpeg_movie($file);
    $wn = $mov->GetFrameWidth();
    $hn = $mov->GetFrameHeight();

    $frame = $mov->getFrame(32);

    $gd = $frame->toGDImage();

    if(!$W and !$H)
    {

    $W = $neww; // width of the image
    $H = $newh; // height image
    }


    $new = imageCreateTrueColor($W, $H);
    imageCopyResized($new, $gd, 0, 0, 0, 0, $neww, $newh, $wn, $hn);
    $black = imagecolorallocate($new, 255, 255, 255);
    imagegif($new);
    imagegif ($new, './thumb/success.gif', 100);
    }
    ?>

    error log is

    [25-Mar-2020 14:52:31 UTC] PHP Fatal error:  Uncaught Error: Class 'ffmpeg_movie' not found in /home/xxxxxxx/public_html/Videos/ffmpeg.php:12
    Stack trace:
    #0 {main}
     thrown in /home/xxxxxxx/public_html/Videos/ffmpeg.php on line 12

    I was able to run it without error in a mobile site few years ago. But it seems to be not working now.
    Server has FFMPEG support.
    I am not an expert in php, please fix this code for me.

  • ffmpeg timeout with rtsp

    17 janvier 2024, par eSlavko

    I have script that capture image from wifi camera with ffmpeg.
It works fine until camera is not reachable due to network troubles.
The script stuck in ffmpeg capture and never exit. Is it possible to have some kind of timeout ? -stimeout (in miliseconds) seems not working.

    


    There is part of script that capture images. (there are some manipulation after that)

    


    #!/bin/bash
week="$(date '+%Y_%U')"
ts="$(date '+%Y-%m-%d_%H:%M:%S')"
ffmpeg -rtsp_transport tcp -y -i "rtsp://192.168.64.101" -frames:v 1 $week/$ts.jpg -stimeout 3000 -y


    


    I did test on other camera and results are :

    


    ffmpeg -y -i "rtsp://192.168.64.112:8554/profile0" -frames:v 1 Ilatest.jpg


    


    Does work OK, but with timeout of 5 seconds as

    


    ffmpeg -timeout 5000000 -y -i "rtsp://192.168.64.112:8554/profile0" -frames:v 1 Ilatest.jpg


    


    doesn't and I got error report as :

    


    ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
...
...
[rtsp @ 0x55d250488740] Unable to open RTSP for listening
rtsp://192.168.64.112:8554/profile0: Cannot assign requested address