Recherche avancée

Médias (91)

Autres articles (71)

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

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

  • ffplay : Use av_gettime_relative()

    6 mai 2014, par Olivier Langlois
    ffplay : Use av_gettime_relative()
    

    Whenever av_gettime() is used to measure relative period of time,
    av_gettime_relative() is prefered as it guarantee monotonic time
    on supported platforms.

    Signed-off-by : Olivier Langlois <olivier@trillion01.com>
    Reviewed-by : Marton Balint <cus@passwd.hu>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] ffplay.c
  • Why is ffmpeg's conversion to YUV420 so poor ?

    8 novembre 2020, par Hugues

    I have been using ffmpeg and other compression tools to compare rate-distortion curves for YUV420-resampled video.&#xA;In these comparisons, results from ffmpeg are consistently worse, with PSNR values that are 0.5-1.0 dB lower.

    &#xA;

    I tracked the problem to ffmpeg's conversion between RGB and YUV420.&#xA;To simplify, let us assume "lossless compression" and therefore consider only RGB -> YUV420 -> RGB.&#xA;Also, we operate on a single PNG image frame.

    &#xA;

    # Use some default options.&#xA;ffmpeg="ffmpeg -nostdin -hide_banner -v error"&#xA;&#xA;# Obtain a source image.&#xA;wget -nv -O original.png https://i.stack.imgur.com/8J1qY.png&#xA;size="256x256"&#xA;&#xA;# Compare it with itself to verify that we get an infinite average PSNR.&#xA;$ffmpeg -v info -i original.png -i original.png -lavfi psnr -f null - |&amp; grep PSNR&#xA;# average:inf&#xA;&#xA;# Convert the image to YUV420, and convert back to RGB.&#xA;$ffmpeg -i original.png -pix_fmt yuv420p -f rawvideo -y temp1.yuv420&#xA;$ffmpeg -f rawvideo -s $size -pix_fmt yuv420p -i temp1.yuv420 -y result1.png&#xA;&#xA;# Compare it with the original image to measure the PSNR (in dB).&#xA;$ffmpeg -v info -i result1.png -i original.png -lavfi psnr -f null - |&amp; grep PSNR&#xA;# average:36.894551&#xA;

    &#xA;

    Now, as an alternative, we perform the RGB <-> YUV420 chroma resampling manually :

    &#xA;

    yuv444_to_yuv420="extractplanes=y&#x2B;u&#x2B;v[y][u][v];\&#xA;  [u]scale=w=iw/2:h=ih/2:flags=area[u];\&#xA;  [v]scale=w=iw/2:h=ih/2:flags=area[v];\&#xA;  [y][u][v]mergeplanes=0x001020:yuv420p"&#xA;yuv420_to_rgb="extractplanes=y&#x2B;u&#x2B;v[y][u][v];\&#xA;  [u]scale=w=iw*2:h=ih*2:flags=neighbor[u];\&#xA;  [v]scale=w=iw*2:h=ih*2:flags=neighbor[v];\&#xA;  [y][u][v]mergeplanes=0x001020:yuv444p,format=rgb24"&#xA;&#xA;$ffmpeg -i original.png -pix_fmt yuv444p -f rawvideo - | \&#xA;  $ffmpeg -f rawvideo -pix_fmt yuv444p -s $size -i - \&#xA;    -lavfi "$yuv444_to_yuv420" -f rawvideo -y temp2.yuv420&#xA;$ffmpeg -f rawvideo -pix_fmt yuv420p -s $size -i temp2.yuv420 \&#xA;  -lavfi "$yuv420_to_rgb" -y result2.png&#xA;&#xA;# Measure PSNR by comparing with the original image.&#xA;$ffmpeg -v info -i result2.png -i original.png -lavfi psnr -f null - |&amp; grep PSNR&#xA;# average:37.536444&#xA;# This is an improvement of 0.64 dB!&#xA;

    &#xA;

    This brings up two questions :

    &#xA;

      &#xA;
    1. Why doesn't ffmpeg implement a better conversion to/from yuv420p by default ?
    2. &#xA;

    3. Is there any simpler way to obtain or express this improved conversion ?
    4. &#xA;

    &#xA;

  • Revision 109790 : - Suite à un problème de sécu concernant facteur, je monte la version mini ...

    3 avril 2018, par spip.franck@… — Log

    - Suite à un problème de sécu concernant facteur, je monte la version mini des necessites pour réduire le risque que les gens aient une version de facteur à risque.
    - Je monte aussi la version mini des utilises, ce qui aura pour incidence une désactivation de facteur si les gens ne le mettent pas également à jour ( à voir si c’est une bonne idée), je pars du principe que le mieux, c’est une désactivation, plutôt que d’avoir un plug à problème
    - A savoir que je n’ai fait la mise à jour que pour la version de facteur qui est pour spip 3.0.0 mini
    https://zone.spip.org/trac/spip-zone/changeset/109788