Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (93)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (10885)

  • Revision e8103f3676 : Merge "Eliminate num_8x8 and num_4x4 width/height lookups"

    9 juillet 2015, par Scott LaVarnway

    Merge "Eliminate num_8x8 and num_4x4 width/height lookups"

  • FFMpeg : scale down videos with maximum width and height while maintaining aspect ratio

    20 février 2021, par R3D34THR4Y

    In my program the user can input any video file he wants and have it transcoded ready for social media no matter its dimensions and aspect ratio.
The "export profiles" have many variables but the important ones here are maxheight and maxwidth.

    


    The FFMpeg filters must output a video that follows the following rules :

    


      

    • If the video is vertical, permutate the maxheight and maxwidth values (social media considers both 1280x720 and 720x1280 as "720P")
    • 


    • The video must not have a height superior to maxheight or a width superior to maxwidth.
    • 


    • The original video and exported video have the same aspect ratio and no distortion occurs.
    • 


    • No padding or cropping should occur.
    • 


    • The video should not be scaled if it is already under those maximum dimensions (no upscaling).
    • 


    • The function must work even with odd input resolutions.
    • 


    


    I have tried finding a combination of filters that do that but I haven't been able so far, either the video gets distorted or it gets huge black bars if the aspect ratio isn't right, the solution may be simple but I'm a beginner on this library so I'm probably just missing an easy solution.

    


    My current solution :

    


    ffmpeg -i input.mp4 -vf [in] scale=1280:720:flags=lanczos:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1 [res]; [res] format=yuv420p [format] -c:v libx264 -c:a aac -movflags +faststart output.mp4


    


    Thanks for reading

    


  • h264 : update avctx width/height/pix_fmt when returning frame

    9 juin 2015, par Andreas Cadhalpun
    h264 : update avctx width/height/pix_fmt when returning frame
    

    Inconsistencies between the dimensions/pixel format of avctx and the
    frame can confuse API users.
    For example this can crash the demuxing_decoding example.

    Back up the previous values and restore them, when decoding the next
    frame. This is necessary, because these can be different between the
    returned frame and the last decoded frame.

    Reviewed-by : Michael Niedermayer <michaelni@gmx.at>
    Signed-off-by : Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>

    • [DH] libavcodec/h264.c
    • [DH] libavcodec/h264.h
    • [DH] libavcodec/h264_slice.c