Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (21)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • MediaSPIP Core : La Configuration

    9 novembre 2010, par

    MediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
    Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...)

Sur d’autres sites (3433)

  • Merge commit ’3399a26d3f57d462e839c0ee51223ae9aca20852’

    25 juin 2016, par Clément Bœsch
    Merge commit ’3399a26d3f57d462e839c0ee51223ae9aca20852’
    

    * commit ’3399a26d3f57d462e839c0ee51223ae9aca20852’ :
    nvenc : allow setting the number of slices
    nvenc : De-compensate aspect ratio compensation of DVD-like content.
    nvenc : list the major contributors in the copyright header
    configure : Don’t require nonfree for nvenc
    nvenc : drop the hard dependency on CUDA
    nvenc : only support HW frames when CUDA is enabled
    nvenc : write the VUI signal properties for HEVC
    nvenc : only write the VUI signal type fields if they are set
    nvenc : Generate bufferingPeriod/pictureTiming SEI
    nvenc : Delay frame output to increase encoding speed
    nvenc : add support for lossless encoding
    nvenc : Generate AUD NAL units for better compatiblity
    nvenc : fix the rc option definitions

    All these commits are noop as requested by Timo Rothenpieler.

    <BtbN> andrey_turkin, ubitux, yeah, I like the current state of nvenc in
    ffmpeg, I think most remaining differences should be merged on the libav
    side of things. At least I’m not aware of anything that’s missing in
    ffmpeg.

    Merged-by : Clément Bœsch <u@pkh.me>

  • FFmpeg : convert any video to square 1:1 video with blurred side bars

    16 novembre 2019, par L0Lock

    Very similar to this topic :

    FFmpeg : How to convert vertical video with black sides, to video 16:9, with blurred background sides

    I’m trying to make myself a bat file that will automate my Instagram video creations.
    The idea is that I make videos of variable resolutions and variable aspect ratios. I don’t want to spend time on each video just to make it fit.

    So here’s my goal with that bat file :

    • Must output a square video
    • The original video must keep its original aspect ratio no matter what it is
    • The blank spaces filling the voids from the original video and the square aspect ratio must be filled with a squared & blurred version of the original video
    • Optionally, let me choose the output resolution (for encoding time saving and because AFAIK Instagram displays only 600px² videos(?))

    So far I managed to get results that work only for either vertical or horizontal videos but not both. Or end up with the original video cropped, which I don’t want : I frame my subjects as I want and I don’t want to frame them forethinking the additional cropping a FFmpeg encoding could do.

    This is my script so far :

    echo off
    :again

    ffmpeg.exe -i "%~1" ^
       -c:v libx264 -crf 23 -filter_complex "[0:v]scale=600*2:600*2,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[0:v]scale=600:-1[ov];[bg][ov]overlay=(W-w)/2:(H-h)/2,crop=w=600:h=600"  -profile:v baseline -level 3.0 -pix_fmt yuv420p -preset faster -tune fastdecode ^
       -c:a aac -ac 2 -b:a 128k ^
       -movflags faststart ^
       "%~p1%~n1_Instagramized.mp4" -y

    if NOT ["%errorlevel%"]==["0"] pause
    shift
    if "%~1" == "" goto:eof
    goto:again

    EDIT :

    Thanks to @Gyan I got the solution. I added my input as well :

    Since I might reuse that bat file often and might want to change the output resolution, It’s not handy to have the resolution hardcoded in six different places.
    So I create a variable called SquareSize which is called using %SquareSize% (instead of the hardcoded resolution) and set at the begining of the file using set SquareSize=XXX. So now I can change easily when I need just by opening it and editing the XXX.

    echo off
    :again

    set SquareSize=600

    ffmpeg.exe -i "%~1" ^
       -c:v libx264 -crf 23 ^
       -filter_complex "[0:v]split=2[blur][vid];[blur]scale=%SquareSize%:%SquareSize%:force_original_aspect_ratio=increase,crop=%SquareSize%:%SquareSize%,boxblur=luma_radius=min(h\,w)/20:luma_power=1:chroma_radius=min(cw\,ch)/20:chroma_power=1[bg];[vid]scale=%SquareSize%:%SquareSize%:force_original_aspect_ratio=decrease[ov];[bg][ov]overlay=(W-w)/2:(H-h)/2" ^
       -profile:v baseline -level 3.0 -pix_fmt yuv420p -preset faster -tune fastdecode ^
       -c:a aac -ac 2 -b:a 128k ^
       -movflags faststart ^
       "%~p1%~n1_Instagramized.mp4" -y

    if NOT ["%errorlevel%"]==["0"] pause
    shift
    if "%~1" == "" goto:eof
    goto:again
  • Add a fixed size image on a video, regardless of the video width & height FFMPEG [duplicate]

    30 juillet 2017, par Rita

    This is my code that that is use is following

    $info = pathinfo($file) ;
    $out = "$info[’dirname’]/ss_$info[’basename’]" ;
    exec("ffmpeg -i ’".$file."’ -i ’".SS_ROOT."".$ss->settings[’watermark_image’]."’ -filter_complex ’overlay=main_w-overlay_w-10:main_h-overlay_h-10’ ’".$out."’") ; 

    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