Yeah,aoao video watermark pro. i've used this software for porn reupload. works perfect.
#grab all the mp4 files in the folder
$files = Get-ChildItem "E:\videos\queue\" -Filter *.mp4
#loop through the list of files and watermark each
for ($i=0; $i -lt $files.Count; $i++) {
$input_name = $files[$i].name
$output_name = "E:\videos\done\new_" + $input_name
ffmpeg -i $files[$i].FullName -vf drawtext="fontfile=OpenSans-Regular.ttf :text='Visit Example.com': fontcolor=white: fontsize=24: x=(w-text_w-15): y=(h-text_h-15)" -codec:a copy $output_name
}
https://imgur.com/82YXFOeAll bulk editing software used ffmpeg at core 'cause it's works good.
Above shared script looks good - Try that and if you get any error, let us know.
Script is into the folder containing videosHave you looked at the folder names? As it doesn't seem that. You are trying to execute a script located in another folder.
1. The font file should be in the .ttf format. Unzip the archive you downloaded and place the font file in the folder.Script is into the folder containing videos
Where it should be?
1. The font file should be in the .ttf format. Unzip the archive you downloaded and place the font file in the folder.
2. Navigate to the folder in powershell by typing: "cd C:\Newfolder" and press Enter
3. Run the script by typing "./pp.ps1" NOT "pp.ps1"
Because you saved pp.ps1 as a text file...
Now getting this https://imgur.com/a/GWt4rcPBecause you saved pp.ps1 as a text file...
In file explorer, go the the "view" tab at the top
in the "show/hide" section...check "file name extensions"
edit pp.ps1.txt and remove the ".txt"
Also since you are using OpenSans-ExtraBold, replace OpenSans-Regular in the script file with it.
Boy, you need to learn...a LOT. Have you placed the ffmpeg executable in the same folder with the script? Those things...can be debugged by yourself if you are smart. It doesn't need knowledge of programming or something else.Now getting this https://imgur.com/a/GWt4rcP
Next time you get an error, google it before posting here.Now getting this https://imgur.com/a/GWt4rcP
Place ffmpeg.exe in the same folder with your script.
Next time you get an error, google it before posting here.
Find the location of ffmpeg.exe and add it to the PATH variable. You can google "add location to path windows"
I don't think moving the exe file in the same folder works for powershell, that would only work in cmd, so he'd need a batch script for that.
Successfully water marked.Boy, you need to learn...a LOT. Have you placed the ffmpeg executable in the same folder with the script? Those things...can be debugged by yourself if you are smart. It doesn't need knowledge of programming or something else.
You didn't even bothered to read the error messages. It clearly says, ffmpeg not recognized, check filename, spelling, etc.
Place ffmpeg.exe in the same folder with your script. And after you get it working, the best advice I can give you is to have different folders for your script, what you process and what was processed (avoid file rewritting). You will figure out!
I can request code bruh?Here is a script I wrote to watermark every video in a folder:
Code:#grab all the mp4 files in the folder $files = Get-ChildItem "E:\videos\queue\" -Filter *.mp4 #loop through the list of files and watermark each for ($i=0; $i -lt $files.Count; $i++) { $input_name = $files[$i].name $output_name = "E:\videos\done\new_" + $input_name ffmpeg -i $files[$i].FullName -vf drawtext="fontfile=OpenSans-Regular.ttf :text='Visit Example.com': fontcolor=white: fontsize=24: x=(w-text_w-15): y=(h-text_h-15)" -codec:a copy $output_name }
Requirements:
1.Powershell
2. Download and install ffmpeg from https://ffmpeg.zeranoe.com/builds/
3.Font file. I used Open Sans, it can be downloaded from https://fonts.google.com/specimen/Open+Sans?selection.family=Open+Sans
Set up:
copy and paste the code in a file with the .ps1 extension. eg: watermark.ps1
Change line 2 and 7 with the location of your files and where you want the results
open a PowerShell window in the folder. Can be done with CTRL+SHIFT+RIGHT CLICK, or search for it in windows search.
run the script by typing "./filename.ps1"
This script watermarks the text with fontsize 24, at the bottom right of the video.