Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (94)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

Sur d’autres sites (9978)

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

    


  • avformat/daudenc : force 2000 sample packet size with a bsf

    3 mars 2024, par Marton Balint
    avformat/daudenc : force 2000 sample packet size with a bsf
    

    The samples I found all have 2000 sample packets, and by forcing the packet
    size with a bsf we could automagically make muxing work for packets containing
    more than 3640 samples.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] configure
    • [DH] doc/muxers.texi
    • [DH] libavformat/daudenc.c
    • [DH] tests/ref/fate/dcinema-encode
  • Ffmpeg - How to force MJPEG output of whole frames ?

    27 août 2021, par Maoration

    I'm working with ffmpeg to process an incoming MPEGTS stream from remote cameras, and deliver it to multiple clients using my app.

    &#xA;&#xA;

    Technically, I'm using ffmpeg to convert the incoming stream to an MJPEG output, and piping the data chunks (from the ffmpeg process stdout) to a writeable stream on the client http response.

    &#xA;&#xA;

    However, I'm facing a problem- not all data chunks represent a full 'whole' frame. thus, displaying them in a row in the browser, results in a flickering video, with half-complete frames, on a random basis.&#xA;I know this because when printing each chunk length, results most of the time in a big value (X), but every now and then I get 2 consecutive chunks with length (2/5X) followed by (3/5X) for example.

    &#xA;&#xA;

    So the question - is there a way to force the ffmpeg process to output only whole frames ? if not, is there a way for me to check each data chunk 'manually' and look for headers/metadata/flags to indicate frame start/end ?

    &#xA;&#xA;


    &#xA;&#xA;

    my ffmpeg command for outputting MJPEG is :

    &#xA;&#xA;

    ffmpeg -i - -c:v mjpeg -f mjpeg -&#xA;

    &#xA;&#xA;

    explained :

    &#xA;&#xA;

    "-i -" : (input) is the stdin of the process (and not a static file)

    &#xA;&#xA;

    "-c:v mjpeg" : using the mjpeg codec

    &#xA;&#xA;

    "-f mjpeg" : output will be in the mjpeg format

    &#xA;&#xA;

    "-" : output not specified (file or url) - will be the process stdout

    &#xA;&#xA;


    &#xA;&#xA;

    Edit :&#xA;here are some console.log prints to visualize the problem :

    &#xA;&#xA;

    %%% FFMPEG Info %%%&#xA;frame=  832 fps= 39 q=24.8 q=29.0 size=   49399kB time=00:00:27.76 bitrate=14577.1kbits/s speed=1.29x    &#xA;data.length:  60376&#xA;data.length:  60411&#xA;data.length:  60465&#xA;data.length:  32768&#xA;data.length:  27688&#xA;data.length:  32768&#xA;data.length:  27689&#xA;data.length:  60495&#xA;data.length:  60510&#xA;data.length:  60457&#xA;data.length:  59811&#xA;data.length:  59953&#xA;data.length:  59889&#xA;data.length:  59856&#xA;data.length:  59936&#xA;data.length:  60049&#xA;data.length:  60091&#xA;data.length:  60012&#xA;%%% FFMPEG Info %%%&#xA;frame=  848 fps= 38 q=24.8 q=29.0 size=   50340kB time=00:00:28.29 bitrate=14574.4kbits/s speed=1.28x    &#xA;data.length:  60025&#xA;data.length:  60064&#xA;data.length:  60122&#xA;data.length:  60202&#xA;data.length:  60113&#xA;data.length:  60211&#xA;data.length:  60201&#xA;data.length:  60195&#xA;data.length:  60116&#xA;data.length:  60167&#xA;data.length:  60273&#xA;data.length:  60222&#xA;data.length:  60223&#xA;data.length:  60267&#xA;data.length:  60329&#xA;%%% FFMPEG Info %%%&#xA;frame=  863 fps= 38 q=24.8 q=29.0 size=   51221kB time=00:00:28.79 bitrate=14571.9kbits/s speed=1.27x  &#xA;

    &#xA;&#xA;

    As you can see, a whole frame is about 60k (my indication is a clean video stream i'm viewing on the browser), but every now and then the output consists of 2 consecutive chunks that add up to 60k. when delivered to the browser, these are 'half frames'.

    &#xA;