Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (52)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

Sur d’autres sites (9513)

  • How to read video frame by frame in C# .NET Framework 4.8 ?

    27 septembre 2022, par Brendan Hill

    I need to read a video file (.mkv format, h264, 1280x720) frame by frame for video processing.

    


    I am stuck with .NET Framework 4.8 due to dependencies.

    


    Having tried Accord.net VideoFileReader I am unable to read them due to :

    


    [matroska,webm @ 0000024eb36e5c00] Could not find codec parameters for stream 0 (Video: h264, none(progressive), 1280x720): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Assertion desc failed at src/libswscale/swscale_internal.h:674


    


    Unfortunately Accord.NET does not give me much control over the ffmpeg request and the project seems to have died (and .NET Framework has died (and C# has died)).

    


    What are some alternatives which would allow me to read a .mkv file in h264 format frame by frame ?

    


    NOTE - FFmpeg.NET does not seem to support getting frame bitmaps ; neither does MediaToolkit :(

    


    NOTE - this page has the same problem (last comment 2020) but no resolution :( https://github.com/accord-net/framework/issues/713

    


  • 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


    


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