
Recherche avancée
Autres articles (50)
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
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 -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (5410)
-
ffmpeg crop and watermark in a single step
11 juin 2018, par rbarabWe are processing short videos. Most of them are 640x480, recorded by mobile. Many of them have a black frame on left and right.
I would like to watermark the videos and currently using this command.ffmpeg -i IN.mp4 -i WATERMARK.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10" OUT.mp4
The problem is that if there is a frame, part of the watermark goes on the frame and only a part is on the actual content. Would like to place the watermark on the bottom right of the actual content.
Are any of these possible, or any other ideas ?
a, Dynamically detect the black frames and adjust the watermark position accordingly.
b, Crop the black frame and watermark the content correctly in the same step.
Thanks a lot for your help !
EDIT :
I have found that it won’t be possible in one step.
1, I can get the crop size
ffmpeg -i INPUT.mp4 -t 2 -vf cropdetect -f null - 2>&1 | awk '/crop/ { print $NF }' | tail -1
2, Then crop the video
ffmpeg -i INPUT.mp4 -filter:v "crop=352:480:144:0" -c:a copy OUTPUT.mp4
3, Then watermark it
ffmpeg -i INPUT VIDEO.mp4 -i INPUT IMAGE.png -filter_complex "overlay=main_w-overlay_w-10:main_h-overlay_h-10" OUTPUT VIDEO.mp4
Is there a way to merge 2, and 3, into a single step ?
-
FFmpeg concatenation, no Audio in Final Output
12 septembre 2016, par user4889724I have the following command working in ffmpeg, which adds 1 second of a black frame to the beginning of the video. However, I lose the audio from the original video in the output video. How can I adjust the command to make sure the original audio stays with the final output, or better yet, there is 1 second of "blank" audio at the beginning so it matches the new output video.
ffmpeg -i originalvideo -f lavfi -i color=c=black:s=1920x1080:r=25:sar=1/1 -filter_complex "[0:v] setpts=PTS-STARTPTS [main]; [1:v] trim=end=1,setpts=PTS-STARTPTS [pre]; [pre][main] concat=n=2:v=1:a=0 [out]" -map "[out]" finaloutputvideo.mp4
-
iOS how to build ffmpeg
10 février 2012, par zvoiceHow to build ffmpeg for iOS ? I have got 5.0 framework and scripts from iFrameExtractor fail to build it with - invalid operand on inline asm ldr $0:q, $1
Do you have a successfull experience with it ?