
Recherche avancée
Autres articles (43)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (8557)
-
How to add blurred border on top and bottom based on the video
5 avril 2023, par Noob69I am trying to modify a video to 1080x1920 scale and I want to add to the borders on top and bottom, a blurred version of the video based on the pixel on the edge.


import subprocess

input_file = "my_video1.mp4"
output_file = "my_video_processed1.mp4"

command = f'ffmpeg -i {input_file} -vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2,eq=saturation=2.0:gamma=1.2:contrast=1.2,unsharp=lx=5:ly=5:la=0.5:cx=5:cy=5:ca=0.5" -c:v libx264 -preset slow -crf 18 -c:a copy {output_file}'
subprocess.call(command, shell=True)




I tried

mode = replicate
, however it is not working for the latest version of ffmpeg from Windows builds by BtbN.

-
avcodec/hevc.c : for big negative mvy value, should wait line 0 of ref frame due to...
11 novembre 2014, par Changjiang Wei -
How can i make drawtext filter start the text scrolling from the center while scrolling from right to left
16 janvier 2018, par FemzyHello How can i make the text start from the center when the video play ? Currently it start from the left side and people dont see the first words before it goes. I want the text to start from either the center of the video or the right while moving from right to left. Thanks in advance for helping me...
This is my code that currently works for the text, but it starts from the edge of the of the left while moving from right to leftecho shell_exec('ffmpeg -loop 1 -i slide2.jpg -vf scale=-2:1080,drawtext="textfile=text.txt:expansion=normal:fontfile=FreeSerif.otf: y=h-line_h-20:x=-200*t: fontcolor=white: fontsize=50" -pix_fmt yuv420p -t '.$words_count.' -movflags +faststart textover10.mp4 -report');