Recherche avancée

Médias (0)

Mot : - Tags -/flash

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (70)

  • 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

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (13326)

  • 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.
In these comparisons, results from ffmpeg are consistently worse, with PSNR values that are 0.5-1.0 dB lower.

    


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

    


    # Use some default options.
ffmpeg="ffmpeg -nostdin -hide_banner -v error"

# Obtain a source image.
wget -nv -O original.png https://i.stack.imgur.com/8J1qY.png
size="256x256"

# Compare it with itself to verify that we get an infinite average PSNR.
$ffmpeg -v info -i original.png -i original.png -lavfi psnr -f null - |& grep PSNR
# average:inf

# Convert the image to YUV420, and convert back to RGB.
$ffmpeg -i original.png -pix_fmt yuv420p -f rawvideo -y temp1.yuv420
$ffmpeg -f rawvideo -s $size -pix_fmt yuv420p -i temp1.yuv420 -y result1.png

# Compare it with the original image to measure the PSNR (in dB).
$ffmpeg -v info -i result1.png -i original.png -lavfi psnr -f null - |& grep PSNR
# average:36.894551


    


    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;

  • Why is ffmpeg cut setting the wrong duration on my output file

    9 mai 2023, par danielson317

    Setup

    &#xA;

    I am trying to break a video up into parts using some basic commands I have seen available.

    &#xA;

    I have tried :

    &#xA;

    ffmpeg -ss 00:00:00 -t 00:11:42 -i &#x27;original.m4v&#x27; -acodec copy -vcodec copy &#x27;output.m4v&#x27;

    &#xA;

    I also tried more generic (and much slower) :

    &#xA;

    ffmpeg -ss 00:00:00 -t 00:11:42 -i &#x27;original.m4v&#x27; &#x27;output.m4v&#x27;

    &#xA;

    I am on Ubuntu 20 with ffmpeg 4.2.7-0. I know it is a little outdated but this computer lost it's network card so I cannot update it at this time.

    &#xA;

    The problem

    &#xA;

    In both cases the video cuts correctly to only have the first 11:42. However the video properties state the video is 31 minutes long (the length of the original). This file size also reflects the reduced size I would expect from the cut. When I play the video in VLC it reports the video is 31 minutes long but scanning or playing past 11:42 "crashes" the playback.

    &#xA;

    Question

    &#xA;

    Why is the new video reporting the wrong length and how do I correct this ? Preferably in the conversion process not a secondary command.

    &#xA;

  • How to convert YUV422P image to JPEG using ffmpeg's libraries ?

    21 juillet 2017, par user3743908

    I’m trying to convert a YUV422 image (YUV422_8_UYVY, unsigned ,unpacked, 16bpp) in to jpeg using ffmpeg’s ,this is Code which i am following

    How to convert YUV420P image to JPEG using ffmpeg’s libraries ?

    Image size : 2448x2050
    Original YUV Image : not able to upload as the format is YUV

    (Original Image Decodec by ffmpeg command prompt)
    Image :This is original Image

    Image size : 2448x2050
    reconstruct Image :Reconstruct Image through above Code

    so the reconstruct image is not as the original image

    my format is UYVY whereas supported format is AV_PIX_FMT_YUVJ420P

    so what should be the correct format for UYVY input image...?