
Recherche avancée
Autres articles (90)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (11198)
-
FFmpeg Keeps Outputting 4:3 aspect ratio - No Idea Why
11 janvier 2020, par John DoeThis command will produce a 1920x1080 video, however there are borders on the left and right, making it appear 4:3 rather than the proper 16:9, and also warps/stretches the overlays. I have checked (and rechecked) my input files and they’re all 1920x1080. This is such a silly problem and I feel like I’m missing something obvious.
ffmpeg -y -f concat -i "concat.txt" -i "mask.png" -i "audio.mp3" -filter_complex "[0]scale=3840x2160,zoompan=z='if(lte(zoom,1.0),1.2,max(1.001,zoom-0.0010))':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':fps=15:d=200[p];[p][1]overlay,drawtext=fontfile=Heathergreen.otf:text='Testing':fontcolor=black:fontsize=32:x=140:y=950[v];[2:a]showwaves=mode=cline:s=178x56:r=15:scale=sqrt:colors=0x222222,colorkey=0x000000:0.01:0.1,format=yuva420p[w];[v][w]overlay=108:740,scale=1920:1080[outv]" -map "[outv]" -map 2:a -c:v libx264 -c:a aac -preset ultrafast -shortest "output.mp4"
-
ffmpeg - overlay a video with rounded corners
4 novembre 2019, par asiI am successfully using overlaying a scaled (smaller) video on top of a larger one but am struggling to understand how could I give the small video a rounded corners mask.
Edit
thanks to @loogan comment I’ve managed to get a working command that created applies a circular mask :
ffmpeg
-i main.mp4
-i vignette.mp4
-filter_complex
[1:v]scale=300:-1[scaled];
[scaled]split [scaled0][scaled11];
[scaled0]trim=end_frame=1,geq='st(3,pow(X-(W/2),2)+pow(Y-(H/2),2));if(lte(ld(3),780*780),255,0)':3:3,loop=-1:1,setpts=N/FRAME_RATE/TB[mask];
[scaled1][mask]alphamerge[cutout];
[0][cutout]overlay=x=W-w:y=0[v];
-map [v]
-map [a]
output.mp4but how to get from a circle to a rounded rect still eludes me. cant quite get what are the params that geq expects and the math to generate them.
assuming that the video that needs masking is 200 * 300 and the corners should have a 5px radius, is there a geq command that can create this mask ? maybe en ellipse ?
or maybe a better way would be to use a pre-made png as a mask ?
any insights welcome
-
Mix original clip audio with audio of an overlay clip
28 octobre 2019, par Mr. MessyI have a video clip on which I want to add commentary videos (someone talking in a bubble).
I have 3 commentary videos I need to insert in specific times.The video rendering is working well, but I can’t seem to add the audio tracks.
I tried both amix and amerge, but I got the same issue.When I added "[0:1][2:1]amerge ;" I get the follwing :
and the process freezes.
The full ffmpeg command is as follows :
ffmpeg -y -i story.mp4
-loop 1 -i mask.png
-itsoffset 10 -i commentary1.mp4
-itsoffset 22 -i commentary2.mp4
-itsoffset 34 -i commentary3.mp4
-filter_complex "[0:v]scale=w=1/2*in_w:h=1/2*in_h[vid1],
[2:v]crop=w=480:h=480:x=0:y=120[vid2in],
[1:v]fifo[2af],[2af]alphaextract[alf2],[vid2in][alf2]alphamerge[vid2alf],
[vid2alf]format=yuva420p,fade=in:st=10:d=0.5:alpha=1,fade=out:st=22.7294:d=0.5:alpha=1[vid2fade],
[vid2fade]scale=w=-1:h=160[vid2],
[vid1][vid2]overlay=790:10:enable='between(t\,10,21)'[out2],
[3:v]crop=w=480:h=480:x=0:y=120[vid3in],
[1:v]fifo[3af],[3af]alphaextract[alf3],[vid3in][alf3]alphamerge[vid3alf],
[vid3alf]format=yuva420p,fade=in:st=22:d=0.5:alpha=1,fade=out:st=32.768733:d=0.5:alpha=1[vid3fade],
[vid3fade]scale=w=-1:h=160[vid3],
[out2][vid3]overlay=790:10:enable='between(t\,22,33)'[out3],
[4:v]crop=w=480:h=480:x=0:y=120[vid4in],
[1:v]fifo[4af],[4af]alphaextract[alf4],[vid4in][alf4]alphamerge[vid4alf],
[vid4alf]format=yuva420p,fade=in:st=34:d=0.5:alpha=1,fade=out:st=44.598189:d=0.5:alpha=1[vid4fade],
[vid4fade]scale=w=-1:h=160[vid4],
[out3][vid4]overlay=790:10:enable='between(t\,34,45)'[out4]"
-map [out4] -pix_fmt yuv420p -c:v libx264 -crf 18
final_video.mp4(mask.png is a circle on a transparent image that crops the video to a bubble)
Thank you for your help.