Recherche avancée

Médias (91)

Autres articles (11)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (515)

  • Pass options containing spaces to ffmpeg using fluent-ffmpeg

    10 janvier 2019, par dansumption

    I am writing a Node script which copies and re-tags some of my MP4 files using fluent-ffmpeg

    It doesn’t work with any metadata that contains spaces. The code that does the copying/tagging looks something like this :

    const ffmpeg = require('fluent-ffmpeg');

    const inputFilename = 'path/to/original.m4a';
    const outputFilename = 'path/to/new.m4a';

    const options = [
       '-metadata', 'artist=Someone',
       '-metadata', 'album=Some title',
       // ...etc
    ];

    ffmpeg(inputFilename)
     .outputOptions(options)
     .saveToFile(outputFilename);

    This results in an error :

    events.js:183
         throw er; // Unhandled 'error' event

    An error occurred: ffmpeg exited with code 1: title: Invalid argument

    I have tried putting Some title in single quotes, double quotes and no quotes. I have tried escaping the spaces in it. I have tried passing the options array as single options rather than tuples, for example : '-metadata album="Some title"' - but whatever I try, it still throws an error when there are spaces.

    (It may be relevant to note that this is on Windows)

    Can anyone suggest a way of getting it to work ?

  • Is there some sort of ffmpeg output conversion to ffmpeg commandline ?

    11 février 2019, par MSi

    Say we have many video records that we want merge with -vcodec copy (or equivalent syntax). Without reencoding, without loss of quality. And few records (minor set), with another codecs, parameters and so on. So we can use ffprobe for file, that represent majority of sources. We get lot of information.

    But can we get here commandline hints for ffmpeg, that could be used to convert another (not yet "compatible") files to this same format ? At least for one selected stream of "master" file, for example.

    Question is not about some scpecific output codec and so on.

  • FFMPEG : RTSP stream freezes but FFMPEG keeps recording

    31 juillet 2022, par Kagetsuki

    EDIT : At the time of this writing there is no functionality within FFMPEG that can detect/handle when an RTP/RTSP stream is still active but is no longer delivering valid frames. The only solution I could find was to periodically reset the stream by stopping recording, then reconnecting and starting a new recording which -f segment does NOT do.

    




    



    I'm recording an RTSP stream from a network camera with FFMPEG, and after some time (usually about an hour and a half to two hours). I'm sure it's specifically a problem with the cameras I'm using and not FFMPEG or my system resources.

    



    What specifically happens is the video freezes but network traffic with the camera continues - it just doesn't seem to send new frames. Because of this behaviour FFMPEG doesn't disconnect/keeps recording because the network connection is still alive. After a few minutes there will always be a single warning in the FFMPEG output :
More than 1000 frames duplicated
But it keeps recording - it's just the same frame over and over.

    



    The command I'm using is :

    



    ffmpeg -stimeout 1000000 -rtsp_transport udp -fflags discardcorrupt -i rtsp://192.168.1.163/live/0/MAIN -vc libx265 -f segment -segment_time 300 -segment_atclocktime 1 -reset_timestamps 1 -strftime 1  "163-%Y-%m-%d_%H-%M-%S-h265.mp4"


    



    Some notes :

    



      

    • stimeout doesn't seem to do anything as the network connection is maintained the camera just seems to stop sending (valid) frames.
    • 


    • Changing the codec to copy doesn't improve the issue
    • 


    • Changing the RTSP transport doesn't improve the issue
    • 


    • I'm aware there is a filter to detect frozen frames, but my FFMPEG does not seem to have it - I'm going to try and build FFMPEG myself now ; but would much prefer a solution that works with bundled FFMPEG > 4.1.3
    • 


    



    Having FFMPEG fail and exit after > 1000 frames are duplicated would actually be ideal, as then I can just spawn FFMPEG from a script, monitor the process, and restart it when the process ends. Any solution would be great though.