Recherche avancée

Médias (1)

Mot : - Tags -/géodiversité

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)

  • How to create a script on a Raspberry to run ffmpeg at boot and restart itself if/when ffmpeg fails ?

    5 février 2021, par Mycelium

    I'm using a Raspberry Pi Zero to stream to YouTube using FFMPEG. It works great so far and now I'd like to set it up to run the stream/FFMPEG daily and automatically from 6am to 7pm and restart itself in case it fails.

    


    I've heard/read of people doing so with Python, but I haven't been able to find examples to try. I've never used Python (or any other) before, I'm a complete beginner. All I know is how/where to place the script file to make it run at boot.

    


    Could anyone point me in the right direction on how to achieve this ? The FFMPEG command is as follows :

    


    v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=4 
v4l2-ctl --set-ctrl=rotate=180
v4l2-ctl --overlay=1
v4l2-ctl -p 30
v4l2-ctl --set-ctrl=video_bitrate=2000000
ffmpeg -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -i /dev/zero -f h264 -framerate 30 -i /dev/video0 -vcodec copy -acodec aac -ab 128k -g 60 -f flv -r 30 rtmp://a.rtmp.youtube.com/live2/SECRET-KEY


    


  • Non-Monotonous DTS error in current ffmpeg builds causing frame drops, but not on ffmpeg 1.2

    11 avril 2021, par pentinex

    I'm sorry to ask about such a frequently mentioned subject, but I looked through so many threads and I could never figure out what exactly is wrong, so I'm at the end of my wits. Basically, I want to concat a bunch of .ts files using ffmpeg. I use this command line :

    


    ffmpeg -allowed_extensions ALL -fflags +igndts -i chunklist.m3u8 -c copy "output.mkv"

    


    The .m3u8 file contains all the .ts parts. When I do this and it throws Non-Monotonous DTS errors, the result ends up having dropped frames where the DTS errors occur. I have tried multiple approaches :

    


      

    1. As you see above, I added "-fflags +igndts" at one point, though it doesn't help.
    2. 


    3. I experimented with "-fflags +genpts" just out of desperation. Predictably, this made it worse.
    4. 


    5. I tried muxing video and audio separately, to no avail.
    6. 


    


    But weirdly enough, there is one "solution" : when I use ffmpeg 1.2, the resulting video plays smoothly. It doesn't come without issues. The resulting video always reports a frame rate of half of what it should be (14.98 when it should be 29.97). But it plays just like it should. Ideally though, I wouldn't want to use such an old version of ffmpeg, since I'm sure there are things in the background that may go wrong and I'm not even noticing those, so I'd hope I could get these kinds of results on current builds of ffmpeg.

    


    Does anybody have an idea ? I'm kind of losing my mind with this one.

    


  • As part of my program that I am writing I am using ffmpeg. I am debugging. Why would ffmpeg run slower on a GPU than a CPU when doing mp4 compression ? [closed]

    6 mai 2023, par user875234

    I'm running it on modern equipment with latest drivers. I use it to compress video files, like so :

    


    ffmpeg -i 20230502_200913.mp4 -vcodec libx265 -crf 28 -vf "scale=trunc(iw/10)*2:trunc(ih/10)*2" output.mp4


    


    that command runs in 160 seconds on the CPU. but if I use the GPU, like so :

    


    ffmpeg -hwaccel cuda -i 20230502_200913.mp4 -vcodec libx265 -crf 28 -vf "scale=trunc(iw/10)*2:trunc(ih/10)*2" output.mp4


    


    it actually takes 280 seconds. And again, these are same era CPU and GPU. I can see it uses 100% of the GPU when running on the GPU but only 50% of the CPU when running on the CPU. I expected it to run much faster on the GPU than the CPU.

    


    Am I missing something ?