
Recherche avancée
Autres articles (79)
-
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 ;
-
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 (...)
Sur d’autres sites (13239)
-
Add a moving watermark that changes position every x seconds with ffmpeg
8 novembre 2019, par David TranCurrently, I add a watermark to the bottom right of my video to prevent others from republishing it. However, they blur the watermark so I’m thinking of adding a moving watermark that changes its position every x seconds.
Below is my current ffmpeg command :
ffmpeg -i input.mp4 -i logo.png -filter_complex "[1][0]scale2ref=iw/4:ow*90/272[wm][vid];[vid][wm]overlay=W-w-W*10/100:H-h-H*5/100" -preset veryfast output.mp4
How can I make the watermark position from the bottom right to top right, to top left, and bottom left every 30 seconds ? Thank you.
-
How to watermark on video in android using ffmpeglibrary programmatically
2 mai 2016, par Sakibmohammad SyedI want to watermark one video file using ffmpeg library. I have one png, one mp4 file in my Videokit folder and I want to watermark png image to video file and below is my code but I don’t know why I am unable to watermark on it. I have no more idea about implementation of ffmpeg library so please help me to solve such issue.
Here is my MainActivity.public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String workFolder = "/sdcard/Videokit/";
GeneralUtils.deleteFileUtil(workFolder + "/vk.log");
PowerManager powerManager = (PowerManager) this.getSystemService(Activity.POWER_SERVICE);
PowerManager.WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "VK_LOCK");
wakeLock.acquire();
String commandStr = "ffmpeg -i /sdcard/Videokit/test.mp4 -i /sdcard/Videokit/test.png -filter_complex transpose=1,overlay=10:10 -y /sdcard/out.mp4";
LoadJNI vk = new LoadJNI();
try {
vk.run(GeneralUtils.utilConvertToComplex(commandStr), workFolder, MainActivity.this);
GeneralUtils.copyFileToFolder(commandStr, workFolder);
} catch (CommandValidationException e) {
Log.e("Prefs.TAG", "vk run exeption.", e);
}
}
}Here is my Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.example.android.compressexample">
<application>
<activity>
<action></action>
<category></category>
</activity>
</application>
</manifest> -
FFmpeg watermark duration
4 mai 2016, par user2364292I am developing an Android app, which will work with FFmpeg library which only applies multiple watermarks on some test.mp4 video. For that case I am using the Android java library for FFmpeg binary from that source : [http://writingminds.github.io/ffmpeg-android-java/] which is working fine for some examples, but I just can not use commands like these :
-i /storage/emulated/0/Download/test.mp4 -vf "movie=/storage/emulated/0/Download/test.mp4 [logo]; [in][logo] overlay=W-w-10:H-h-10, fade=in:0:20 [out]" /storage/emulated/0/Download/test.mp4
Please note these quotes after -vf flag and these [in], [logo] flags. These just throw me an errors like
[NULL @ 0xb5bf3200] Unable to find a suitable output format for '[logo];'
[logo];: Invalid argumentand so on. The quotes in the command are also the problem which throws me an error like :
[AVFilterGraph @ 0xb5c092c0] No such filter: 'overlay=main_w-50:main_h-50,overlay=0:0'
Error initializing complex filters.
Invalid argument".Am I even using proper library for that case ? I also want to show the watermark in specific duration of the video. For example if video is 10 seconds long, I only want watermark to be shown starting from 3rd second of the video to 7th second. I can show the overlay images like this :
-i /storage/emulated/0/Download/test.mp4 -i /storage/emulated/0/Download/test.jpg -i /storage/emulated/0/Download/test.jpg -filter_complex overlay=main_w-50:main_h-50,overlay=0:0 -codec:a copy /storage/emulated/0/Download/test_edited.mp4
but they’re shown for the whole video duration. Where can I set the duration start/end for the specific overlay ?
Thank you very much !