Recherche avancée

Médias (2)

Mot : - Tags -/rotation

Autres articles (68)

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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (9024)

  • Force ffmpeg to quit when input resolution changes

    22 octobre 2022, par rednine

    I'm using ffmpeg to restream a live feed. Unfortunately occasionally the input resolution changes but ffmpeg continues running. The nginx rtmp server I'm using doesn't cope well with this, and continues the stream with audio, but the video is mostly black or green with some artifacts.

    


    Ideally what I want to happen is for ffmpeg to stop on an input resolution change, as I have a script that detects ffmpeg stopping and will restart it again.

    


    I'm using -c:v copy in my ffmpeg command as unfortunately my machine is not powerful enough to re-encode the live video on the fly to a constant resolution (not without a significant quality reduction at least)

    


    ffmpeg -i "http://mpegts-live-stream" -c:v copy -c:a aac -ac 2 -f flv "rtmp://nginxserver/live/streamname"

    


  • Is it possible to adjust the timeout for ffmpeg on SDP ?

    1er avril 2021, par user3474565

    I have rtpdump files that I would like to be able to convert to webm or mp4 on demand and on the fly. To do this, I'm streaming their packets out extremely rapidly and having ffmpeg read them in using an SDP file. The packets come through and are transcoded in a second or two, since the videos are fairly short. But then there is an additional 10-second wait afterward because the ffmpeg network timeout for SDP defaults to 10 seconds ; I'd like to reduce it. Unfortunately, the -timeout and -stimeout options don't seem to be available when I'm using -i with an SDP file (I get -timeout option not found).

    


    I looked around online, and it seems that 6 or 7 years ago people were having similar issues and some people made pull requests into FFmpeg to add this as an option for RSTP and SDP. I know this went through for RSTP because it's in the documentation know ; did anything ever happen with SDP ? Is it possible for me to set this option, or maybe to terminate ffmpeg manually when I know the stream is done ?

    


  • Python - ffmpeg-like media seeking with requests

    8 janvier 2017, par Will

    Using ffmpeg, times in HTTP media resources, such as videos, can be seeked to very quickly with a command like ffmpeg -ss 00:01:00 -i https://example.com/video.mp4, presumably by downloading the video headers to look for the right byte offset. This means that it is very fast to run operations on a section of video, even if it is hours in.

    What I want to be able to do is to do the same thing but piping into ffmpeg with the requests module with something like (in partial pseudo-code) :

    stream = requests.get(url, stream=True)
    start_byte = get_byte_offset(stream, time=60)
    stream.seek_to(start_byte)

    process = subprocess.Popen(["ffmpeg", "-i" "pipe:" "out.mp4"], stdin=subprocess.PIPE)

    for chunk in stream.iter_content(chunk_size=64 * 2 ** 10):
       process.stdin.write(chunk)
    process.stdin.close()

    This would allow me to implement extra checks into the stream that I would normally need to parse ffmpeg for, such as if the stream returns a bad status code such as 404 or 403.

    How might I be able to implement this using the requests, and presumably other, modules ? I suppose the first part is using a tool to parse the video headers.