Page 1 of 1

Custom ffmpeg Watermark

Posted: Sat Nov 26, 2016 8:33 am
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!

Re: Custom ffmpeg Watermark

Posted: Sat Nov 26, 2016 10:21 am
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

Re: Custom ffmpeg Watermark

Posted: Sat Nov 26, 2016 3:23 pm
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

Re: Custom ffmpeg Watermark

Posted: Tue Nov 29, 2016 4:25 pm
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

Re: Custom ffmpeg Watermark

Posted: Fri Nov 22, 2019 1:05 pm
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?

Re: Custom ffmpeg Watermark

Posted: Fri Nov 22, 2019 1:37 pm
by momocampo
Hello Veks,

I think it's your path ("\\ipadress\ffastrans\Logo.png") which is bad...Where is your logo for watermark?

Re: Custom ffmpeg Watermark

Posted: Fri Nov 22, 2019 2:20 pm
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....