Script help

Anything that does not fit into the other categories.
Post Reply
Freij
Posts: 1
Joined: Tue Apr 12, 2016 2:38 pm

Script help

Post by Freij » Tue Apr 12, 2016 3:04 pm

This is most definitely a noob question because I have never written a single line of code in my life. I just hope someone is kind enough to help!
I´ve been looking all over the internet without any success.

I want to add a logo watermark to the video. And I got a .bat file which is added as a rightclick menu command which executes the bat file and it looks like this:

Code: Select all

@echo off
setlocal ENABLEDELAYEDEXPANSION
set fName=%1
set ffmpeg="X:\ffmpeg\bin\ffmpeg.exe"
 
for /f "tokens=* delims= " %%F in ('echo %fName%') do (
%ffmpeg% -i "%%~fF" -i "X:\ffmpeg\logo\FABLEfx_com.png" -filter_complex \
"overlay=main_w-overlay_w-10:main_h-overlay_h-10" \
-codec:a copy "%%~dpnF.mp4"
)
without the

Code: Select all

-i "X:\ffmpeg\logo\FABLEfx_com.png" -filter_complex \ "overlay=main_w-overlay_w-10:main_h-overlay_h-10" \ -codec:a copy
it works fine, but obviously it just creates a clean mp4.

What do I need to change to make this work?
I have tried everything I can find online but I´m guessing it´s my lack of programming skills that makes me not see the obvious?

Very greatful for answers! By the way, if I´m in the wrong forum for this please let me know and point me in the right direction.

Cheers,

Anders

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: Script help

Post by Zeranoe » Fri Oct 21, 2016 2:21 am

What error are you getting? Is the right click option for a directory or a single file? If it's just a file, I do not see why you're looping through it.

Post Reply
'