Recherche avancée

Médias (91)

Autres articles (20)

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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (3744)

  • ffmpeg : thumbnail of frame, preserve aspect ratio, apply background / padding / fill colour

    16 octobre 2014, par Pistos

    I already have found out how to scale the thumbnail to stay within specified bounding dimensions while maintaining aspect ratio. For example, to get the frame shown at 6 seconds into the input.mp4 video file, and scale it to fit into 96x60 (16:10 aspect ratio) :

    ffmpeg -y -i input.mp4 -ss 6 -vframes 1 -vf scale="'if(gt(a,16/10),96,-1)':'if(gt(a,16/10),-1,60)'" output.png

    This is fine, it works.

    Next, I would like to do the same, but if the video’s aspect ratio is not exactly 16:10, then I would like to force the output image to have an aspect ratio of 16:10 by taking the above transformation, and filling or padding the space with white. That is, I want the output to be as if I took, say, a 96x48 image, and laid it over a 96x60 white background, resulting in white bars above and below the 96x48 image.

    Ideally, I do not want to resort to using another tool or library, such as ImageMagick. It would be best if ffmpeg could do this on its own.

  • avfilter : add vf_yadif_videotoolbox

    14 décembre 2021, par Aman Karmani
    avfilter : add vf_yadif_videotoolbox
    

    deinterlaces CVPixelBuffers, i.e. AV_PIX_FMT_VIDEOTOOLBOX frames

    for example, an interlaced mpeg2 video can be decoded by avcodec,
    uploaded into a CVPixelBuffer, deinterlaced by Metal, and then
    encoded to h264 by VideoToolbox as follows :

    ffmpeg \
    -init_hw_device videotoolbox \
    -i interlaced.ts \
    -vf hwupload,yadif_videotoolbox \
    -c:v h264_videotoolbox \
    -b:v 2000k \
    -c:a copy \
    -y progressive.ts

    (note that uploading AVFrame into CVPixelBuffer via hwupload
    requires 504c60660d3194758823ddd45ceddb86e35d806f)

    this work is sponsored by Fancy Bits LLC

    Reviewed-by : Ridley Combs <rcombs@rcombs.me>
    Reviewed-by : Philip Langdale <philipl@overt.org>
    Signed-off-by : Aman Karmani <aman@tmm1.net>

    • [DH] Changelog
    • [DH] configure
    • [DH] libavfilter/Makefile
    • [DH] libavfilter/allfilters.c
    • [DH] libavfilter/metal/vf_yadif_videotoolbox.metal
    • [DH] libavfilter/vf_yadif_videotoolbox.m
  • Evolution #3967 (Fermé) : Suivre les redirections http/https/proxy

    27 juin 2017, par cedric -