Recherche avancée

Médias (3)

Mot : - Tags -/image

Autres articles (41)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • 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

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (8494)

  • ffmpeg - filter_complex list too long

    2 mars 2016, par Baumi

    Let’s say I want to overlay a clock in the video using special font, color, etc to video that is aprox 30 min long. I end up with command :

    ffmpeg -y -i in.mp4 -filter_complex "
    [0:v]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:00':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,0,7)'[tmp];
    [tmp]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:01':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,7,8)'[tmp];
    [tmp]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:02':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,8,9)'[tmp];
    [tmp]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:03':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,9,10)'[tmp];
    [tmp]drawtext=fontfile=/var/www/sites/manage/elements/digital-7.ttf:text='00\:04':fontcolor=white@1.0:fontsize=26:x=100:y=65:enable='between(t,10,11)'[tmp];
    ......."
    -map "[tmp]" -map 0:a -acodec copy -c:v h264 out.mp4

    This clock is not the only overlay I have so finally I have end up with command 216kB long but this I cannot even run in bash because of argument list being too long.

    I wanted to re-encode the video only once. Is there any other way I can do that ?

    Thanks !

  • Overlay timelapse video on solid background colour using ffmpeg

    28 juillet 2014, par hamchapman

    I’ve got a load of screenshots of a homepage that are named homescreen000001.png, homescreen000002.png, etc and I’m trying to create a time-lapse video of these images using ffmpeg.

    I’ve got it working in general when I run the following :

    ffmpeg -f image2 \
          -i ~/Desktop/homescreen%06d.png \
          -r 0.5 \
          -s 1440x900 \
          -b:v 1M \
          -vcodec libx264 \
          -pix_fmt yuv420p \
          ~/Desktop/timelapse.mp4

    However, it turns out that some of the images have transparent backgrounds so the background is showing up as black on those images.

    I’d like a white background so I’ve been trying to set that up using ffmpeg as follows :

    ffmpeg -f image2 \
          -loop 1 \
          -i ~/Desktop/whitebg.png \
          -i ~/Desktop/homescreen%06d.png \
          -filter_complex overlay \
          -r 0.5 \
          -s 1440x900 \
          -b:v 1M \
          -vcodec libx264 \
          -pix_fmt yuv420p \
          ~/Desktop/timelapse.mp4

    Here whitebg.png is 2px x 2px png with a white background, and that’s it.

    This ffmpeg command produces a really tiny (in file size) video that’s just a white background.

    Can anyone explain how I can overlay the images as a time-lapse video over a white background using ffmpeg ?

  • Overlay timelapse video on solid background colour using ffmpeg

    13 septembre 2020, par hamchapman

    I've got a load of screenshots of a homepage that are named homescreen000001.png, homescreen000002.png, etc and I'm trying to create a time-lapse video of these images using ffmpeg.

    



    I've got it working in general when I run the following :

    



    ffmpeg -f image2 \
       -i ~/Desktop/homescreen%06d.png \
       -r 0.5 \
       -s 1440x900 \ 
       -b:v 1M \
       -vcodec libx264 \ 
       -pix_fmt yuv420p \
       ~/Desktop/timelapse.mp4


    



    However, it turns out that some of the images have transparent backgrounds so the background is showing up as black on those images.

    



    I'd like a white background so I've been trying to set that up using ffmpeg as follows :

    



    ffmpeg -f image2 \
       -loop 1 \
       -i ~/Desktop/whitebg.png \
       -i ~/Desktop/homescreen%06d.png \
       -filter_complex overlay \ 
       -r 0.5 \
       -s 1440x900 \ 
       -b:v 1M \
       -vcodec libx264 \ 
       -pix_fmt yuv420p \
       ~/Desktop/timelapse.mp4


    



    Here whitebg.png is 2px x 2px png with a white background, and that's it.

    



    This ffmpeg command produces a really tiny (in file size) video that's just a white background.

    



    Can anyone explain how I can overlay the images as a time-lapse video over a white background using ffmpeg ?