Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (53)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • MediaSPIP Player : les contrôles

    26 mai 2010, par

    Les contrôles à la souris du lecteur
    En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (5332)

  • h264_ps : export actual height in MBs as SPS.mb_height

    2 juillet 2016, par Anton Khirnov
    h264_ps : export actual height in MBs as SPS.mb_height
    

    Currently, SPS.mb_height is actually what the spec calls
    PicHeightInMapUnits, which is half the frame height when interlacing is
    allowed. Calling this ’mb_height’ is quite confusing, and there are at
    least two associated bugs where this field is treated as the actual
    frame height - in the h264 parser and in the code computing maximum
    reordering buffer size for a given level.

    Fix those issues (and avoid possible future ones) by exporting the real
    frame height in this field.

    • [DBH] libavcodec/h264_ps.c
    • [DBH] libavcodec/h264_ps.h
    • [DBH] libavcodec/h264_slice.c
  • vp8dsp : Remove the comment saying that the height is equal to the width

    10 juillet 2016, par Martin Storsjö
    vp8dsp : Remove the comment saying that the height is equal to the width
    

    This comment isn’t true, the height can be different from the width
    for these functions (which is why the height is passed as a parameter
    to them).

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavcodec/vp8dsp.h
  • FFMPEG : Add a fixed size image on a video, regardless of the video width & height (resolution)

    11 mars 2017, par Drupalist

    This is my code that adds an image to videos, running via PHP :

    exec('ffmpeg -i input.mp4 -i logo.png -filter_complex
    "[0:v][1:v] overlay=10:10"  -pix_fmt yuv420p -c:a copy output.mp4');

    It works well but the problem is, the image is scaled down or up, up on the video resolution. For example in the following images the logo width is 50px but videos resolution are different :

    enter image description here

    and this one

    enter image description here

    How can I prevent the image from scaling down/up ?


    Update

    Thanks to Mulvya, he proposed these codes

    ffmpeg -i input.mp4 -i logo.png -filter_complex
    "[1:v][0:v]scale2ref=(W/H)*ih/8:ih/8[wm][base];[base][wm]overlay=10:10"
    -pix_fmt yuv420p -c:a copy output.mp4

    and

    ffmpeg -i input.mp4 -i logo.png -filter_complex
    "[1:v][0:v]scale2ref=(W/H)*ih/8:ih/8[wm][base];[wm]setsar=1[wmsar];
    [base][wmsar]overlay=10:10"
    -pix_fmt yuv420p -c:a copy output.mp4

    that works very well, but it doesn’t keep the logo aspect ratio.
    I tried this code on two videos with different resolution and this is the result

    enter image description here

    and this one

    enter image description here

    Is it possible to improve this solution ?