Custom ffmpeg Watermark

Questions and answers on how to get the most out of FFAStrans
Post Reply
mrueben
Posts: 3
Joined: Sat Nov 26, 2016 8:29 am

Custom ffmpeg Watermark

Post by mrueben »

Whats wrong with this code

-i "C:\logo\logo.png -filter_complex" "overlay=10:10" -c:v libx264 -preset ultrafast -crf 20 -maxrate 5000k -vf scale=1280:720 -bufsize 1835k -c:a aac -strict -2 -ar 44100 -ab 128k -pix_fmt yuv420p

thanks for helping!
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

Re: Custom ffmpeg Watermark

Post by admin »

Hi mrueben, thank you for using FFAStrans and welcome to the forum! :-)

Is this a test?

-i "C:\logo\logo.png -filter_complex" "overlay=10:10" -c:v libx264 -preset ultrafast -crf 20 -maxrate 5000k -vf scale=1280:720 -bufsize 1835k -c:a aac -strict -2 -ar 44100 -ab 128k -pix_fmt yuv420p

This is very wrong. I assume"C:\logo\logo.png -filter_complex" is not your input file? Word of advice; try your commands in dos before creating a custom preset in FFAStrans ;-)

-steinar
mrueben
Posts: 3
Joined: Sat Nov 26, 2016 8:29 am

Re: Custom ffmpeg Watermark

Post by mrueben »

Sorry for the question before thinking!!!! this now work in dos but how bring it in ffastrans?

ffmpeg -i C:\video\test.wmv -i C:\logo\logo.png -filter_complex "overlay=10:10" -c:v libx264 -preset ultrafast -crf 20 -maxrate 5000k -c:a aac -strict -2 -ar 44100 -ab 128k -pix_fmt yuv420p C:\video\out3.mp4

thanks for your time

marcus
mrueben
Posts: 3
Joined: Sat Nov 26, 2016 8:29 am

Re: Custom ffmpeg Watermark

Post by mrueben »

for other user´s having the same problem here are the solution


-i "\\ipadress\ffastrans\Logo.png" -filter_complex "overlay=10:10" -c:v libx264 -profile:v high -preset ultrafast -b:v 5000k -minrate 5000k -maxrate 5000k -bufsize 5000k -c:a aac -strict -2 -ar 44100 -ab 128k

marcus
veks
Posts: 84
Joined: Fri Oct 25, 2019 6:51 am

Re: Custom ffmpeg Watermark

Post by veks »

mrueben wrote: Tue Nov 29, 2016 4:25 pm for other user´s having the same problem here are the solution


-i "\\ipadress\ffastrans\Logo.png" -filter_complex "overlay=10:10" -c:v libx264 -profile:v high -preset ultrafast -b:v 5000k -minrate 5000k -maxrate 5000k -bufsize 5000k -c:a aac -strict -2 -ar 44100 -ab 128k

marcus
When I try to add this to custom FFMpeg command I get "Encoding failed - No video or audio found in media."
Why is that so?
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Custom ffmpeg Watermark

Post by momocampo »

Hello Veks,

I think it's your path ("\\ipadress\ffastrans\Logo.png") which is bad...Where is your logo for watermark?
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

Re: Custom ffmpeg Watermark

Post by emcodem »

Hi Veks,

@momocampo i believe the path is fine, it is just a placeholder for some UNC path... As long as ffastrans is running as Application or as windows service including the correct credentials, access to the Logo.png will work.

@veks
please try this: in the Custom FFmpeg node, uncheck the Audio and Video Codec.
Explaination:
the ffmpeg command you want the Custom FFmpeg node to create is like

Code: Select all

ffmpeg -i "%s_source%" -i "\\ipadress\ffastrans\Logo.png" -filter_comp....
But when you have audio and video checked, it will be created like this:

Code: Select all

ffmpeg -i "%s_source%" ___AUDIO_VIDEO_CODEC_HERE  -i "\\ipadress\ffastrans\Logo.png" -filter_comp....
emcodem, wrapping since 2009 you got the rhyme?
Post Reply