Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (93)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (6727)

  • ffmpeg Error : Pattern type 'glob' was selected but globbing is not support ed by this libavformat build

    14 septembre 2017, par Aryan Naim

    I’m trying to convert group of ".jpg" files acting as individual frames into 1 single mpeg video ".mp4"

    Example parameters i used :

    frame duration  = 2 secs
    frame rate      = 30  fps
    encoder         = libx264 (mpeg)
    input pattern   = "*.jpg"
    output pattern  = video.mp4

    Based on ffmpeg wiki instructions at (https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images), I issued this command :

    ffmpeg -framerate 1/2 -pattern_type glob -i "*.jpg" -c:v libx264 -r 30 -pix_fmt yuv420p video.mp4

    But I’m getting this error :

    [image2 @ 049ab120] Pattern type 'glob' was selected but globbing is not
    supported by this libavformat build *.jpg: Function not implemented

    Which probably means the API pattern matching commands for my build/version have changed. By the way this my windows 32bit ffmpeg download build (ffmpeg-20150702-git-03b2b40-win32-static).

    How can I choose a group of files using pattern matching using ffmpeg ?

  • Unable to get a continuous video of last N seconds using ffmpeg [duplicate]

    28 juin 2021, par trycatch22

    I am trying to create a dashcam from an RTSP streaming device using ffmpeg (in Python). I have it working, but I am losing a small bit of video between stopping a file and starting a new file.

    


    My pseudocode looks like this :

    


    Start recording in 5s increments
while True:
   now = get current time
   if now > split:
       stop recording
       start recording with new file name


    


    At any point when I send a trigger, I wait (up to 5s) for the current file to be written to disk, and then I stitch the required number of files to get a video of the desired length. The issue is that I am losing time between the stop and the start.

    


    I am starting a new file like so :

    


    process_cmd = "ffmpeg -y -loglevel panic -i rtsp://{}:{}@{} -vf scale={}:{} -t {} {}".format(self._rtsp_login, self._rtsp_pwd, self._rtsp_server, self._width, self._height,self._rtsp_video_duration,output_file)
self._process_handle = subprocess.Popen(process_cmd, shell=True)


    


    I am waiting for the video to be done recording by :

    


    self._process_handle.wait()


    


    What's a cleaner way to do this ? One option would be to write a longer file and then use ffmpeg to extract the desired N seconds from it.

    


    proc = subprocess.Popen("ffmpeg -y -i rtsp://admin:ambi1234@192.168.1.200 -profile:v high -pix_fmt nv12 -b:v 15M -acodec aac out.mp4", stdin=subprocess.PIPE,shell=True)


    


    This requires me to stop the recording first by sending 'q' to the process and then :

    


    subprocess.Popen("ffmpeg -y -sseof -00:00:3 -i out.mp4 -vcodec copy -acodec copy test.mp4", shell=True)


    


    But that source file (out.mp4) would have to be cleaned up every so often and if an event happens at that point, then I won't be able to capture the data.

    


  • ffmpeg command does not work when run from .sh file

    19 novembre 2020, par Felipe Hurtado

    I am trying to run an ffmpeg command from a shell file but I am getting the following error :

    


    'NULL @ 0x343e9c0] Unable to find a suitable output format for '


    


     : Invalid argument

    


    Below the ffmpeg commnad

    


    ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 


    


    and this is the content of the shell file :

    


    #!/bin/bash
#script streaming
ffmpeg -i "rtsp://admin:adminCTZSDS@192.168.0.5/1" -s 600x400 -framerate 20 -b:v 16k -preset slow -acodec libmp3lame -ar 11025 -crf 20 -f flv rtmp://localhost:1935/live/camara2 
        


    


    the command works if I run it manually in a terminal