So, today I’ll tell you what to do if you need to quickly uniqueize a bunch of creatives, but you don’t want to waste time on this tedious stuff.
Creatives, as you know, come in two types: pictures and videos. Let’s look at both categories, in particular jpeg pictures and mp4 videos. In general, this approach can be applied to any other formats.
We will work with free software for Windows, but there is the same software for Mac, figure out how to remake the scripts yourself, I’m too lazy, I love Windows ❤
You will only need to configure everything once, spend 15 minutes setting it up, but then everything will happen automatically.
So, for the pictures we needNConvert. Download the version of the required bit depth and unpack the archive somewhere in Program Files. I unpacked it to C:Program FilesNConvert (shock!).
For the video we needFFMpeg. It’s exactly the same story with him. Download and unpack to C:Program FilesFFMpeg.
Next, so that we can call these programs from the command line or script, we need to set the path to these folders in the Path environment variable.
I show everything using the example of ENGLISH Windows 10; in any other Windows this can also be done by analogy. In the “Start” menu we type “Environment” (I suspect that in Russian it will be: Environment), we see the following picture:

We go to this item, we see a window, in it we need the lowest button “Environment variables”

In the window that appears, click on the PATH Environment Variable and click Edit.

We add 2 folders at the very end where our NConvert.exe and FFMpeg.exe are located. I note that FFMpeg.exe is located in the Bin folder, make no mistake. Next, click “OK”.

Voila, now all we have to do is create 2 simple scripts that will uniquely customize any of our creatives.
The principle that we will use for uniqueness is adding random noise in small quantities to the creo. Purely visually, this will be completely invisible to the user, but for Facebook it will be a completely different file.
Open notepad and create the first script for pictures. We write:
nconvert -out jpeg -o %%_1.jpg -q 95 -rmeta -rexifthumb -noise uniform 0.1 *.jpg
In addition to adding noise, this script will also clean up the metadata, which is good? We save the file using “Save As” and save it under the name, well, let’s sayconvertjpg.bat. If necessary, make yourself a second script of the same kind, but for png files, if you use them, to do this, replace the lines jpeg and jpg with png everywhere in the script.
Now we create a new file in notepad for video creatives, write:
FOR /F «tokens=*» %%G IN (‘dir /b *.mp4’) DO ffmpeg -i «%%G» -vf noise=alls=1:allf=t «%%~nG_1.mp4»
Save under nameconvertmpg4.bat.
That’s all, and now — disco! ? We take any folder with cluttered creatives. We throw the required script into it, depending on what we have there, videos or pictures, and launch it! In a few seconds, unique creatives will be created in our folder, you can distinguish them by name: at the end it will be attributed_1.
That’s all, like it if it was useful, I wish your creos to live happily ever after!
P.S. All scriptscan be downloaded here.They are called uniquexxx.bat there
P.P.S. By the way, so that you can make even more unique videos, consider that ffmpeg can change the video speed ;-)
P.P.P.S. Here’s some info from subscriber Boris Verbitsky about uniqueizing video creatives in the same way for Mac:
cd /path && find . -iname «*.mp4» | while read FILENAME; do /path/ffmpeg -nostdin -i «${FILENAME}» -vf noise=alls=1:allf=t «${FILENAME%.*}_new.mp4» ; done
path is the path to the folder where the creos are located, and /path/ffmpeg is the path where ffmpeg is located
launch in Automator program



Немогу найти «Environment» на Windows 7
ну всё, чё.
свойства системы — переменные среды
Создал текстовый документ на маке, запускаю через Automator и ничего не происходит, подскажешь где косяк?
В текстовом вот это:
cd /path/Users/whereismycat/Desktop/VIDZ && find . -iname “*.mp4” | while read FILENAME; do /path/Users/whereismycat/Desktop/FFMPEG/ffmpeg -nostdin -i “${FILENAME}” -vf noise=alls=1:allf=t “${FILENAME%.*}_new.mp4” ; done
К сожалению, сижу под виндой, про мак ничего не подскажу.
Здравствуйте!
Сделал по инструкции для Windows — скрипты запускаются, вроде никакой ошибки, ничего такого в командной строке нет, просто она закрывается и на этом все. Ничего не происходит.
Потом скачал готовые скрипты, проверил с ними — результат тот же.
Скорее всего ты не прописал в PATH корректные пути. Для того, чтобы понять, в чём дело, нужно СНАЧАЛА запустить командную строку: Пуск-Выполнить-cmd-Enter, затем в ней перейти командой cd в нужную папку и оттуда запустить скрипт. Таким образом ты увидишь ошибку.
Лучший!
не хочет…
C:\Users\Administrator>c:\1\1.bat
C:\Users\Administrator>nconvert -out jpeg -o %_1.jpg -q 95 -rmeta -rexifthumb -noise uniform 0.1 *.jpg
** NCONVERT v7.136 (c) 1991-2022 Pierre-E Gougelet (Jan 23 2023/13:58:10) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)
C:\Users\Administrator>c:\1\1.bat
C:\Users\Administrator>nconvert -out jpeg -o %_1.jpg -q 95 -rmeta -rexifthumb -noise uniform 0.1 *.jpg
** NCONVERT v7.136 (c) 1991-2022 Pierre-E Gougelet (Jan 23 2023/13:58:10) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)
а как сделать несколько креативов из одной картинки?
о! работает
файл должен быть jpg, а не jpEg