Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (91)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Les sons

    15 mai 2013, par

Sur d’autres sites (6060)

  • Revision 423e8a9727 : Fix allocation of context buffers on frame resize The patch : https://gerrit.chr

    24 juillet 2014, par Adrian Grange

    Changed Paths :
     Modify /vp9/decoder/vp9_decodeframe.c



    Fix allocation of context buffers on frame resize

    The patch :
    https://gerrit.chromium.org/gerrit/#/c/70814/
    changed the test that determined whether the context
    frame buffers needed to be reallocated or not.

    The code checked for a change in total frame area
    to signal the need to reallocate context buffers.
    However, the above_context buffer needs to be
    resized i:xf only the width of the frame has increased.

    Change-Id : Ib89d75651af252908144cf662578d84f16cf30e6

  • FFMPEG : Videos converted from FLV to MP4 does not play in iPod but works in iPhone

    3 juin 2012, par Shakti Singh

    I used below command to convert videos from FLV,M4V to MP4.

    ffmpeg -y -i video_1336406262.flv -vcodec libx264 -vpre slow -vpre
    ipod640 -b 250k -bt 50k -acodec libfaac -ac 2 -ar 48000 -ab 64k -s
    480x320 video_1336406262.mp4

    The videos converted from M4V to MP4 are playing very well in both iPhone and iPod but the videos converted from FLV to MP4 does not work in iPod but does in iPhone.

    In the video area of HTML5 page iPod even does not show the play symbol.

    Could someone help here ?

    I am using the same command to convert from both FLV and M4V to MP4.

    Thanks

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