I'm on a windows 7 box using FFmpeg version: 20170223-dcd3418 and would like to control the fade in timing of my logo watermark independent of the fade already built in to my video.
This code is working OK but I can't work out how to fade the watermark without also fading my input video stream.
I've tried a number of combinations but am out of my depth with FFMPEG's -filter_complex command so any help would be appreciated.Code:ffmpeg -y -i mainvideo.mp4 -i watermarklogo.png -filter_complex "[0:v]overlay=W-w-10:H-h-10, fade=in:0:20[tmp_overlay]; [tmp_overlay]subtitles=ep1.srt[out]" -map [out] -map 0:a -codec:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -c:a aac -strict -2 output.mp4
Please let me know if I can provide further information.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
If you can use AVISYNTH with ffmpeg you can control all aspects of fadein and fadeout by number of frames and the script is easier than the overlay used by ffmpeg alone. The following avisynth script allows srt (ssa also will work) subtitles as well as an overlay of a second video.
Code:LoadPlugin("C:\Users\Bud\Desktop\VSFilter.dll") v1 = Directshowsource("C:\Users\Bud\Desktop\[dp]Manjandani-1.mp4").ConvertToRGB32.Lanczosresize(864, 368) v1=v1.textSub("C:\Users\Bud\Desktop\Wham.srt") img1 = DirectShowSource("C:\Users\Bud\Desktop\Wham!Last Christmas.mp4", pixel_type="RGB32", fps=23.976).converttoRGB32.LanczosResize(160,90) img2 = DirectShowSource("C:\Users\Bud\Desktop\Wham!Last Christmas.mp4", pixel_type="RGB32", fps=23.976).converttoRGB32.LanczosResize(160,90) img3 = DirectShowSource("C:\Users\Bud\Desktop\Wham!Last Christmas.mp4", pixel_type="RGB32", fps=23.976).converttoRGB32.LanczosResize(160,90) img4 = DirectShowSource("C:\Users\Bud\Desktop\Wham!Last Christmas.mp4", pixel_type="RGB32", fps=23.976).converttoRGB32.LanczosResize(160,90) \ clip1 = v1.trim(0, -101).Overlay(img1.assumefps(23.976).trim(0,-101).fadein(60).fadeout(60), 100, 100,Opacity=1.0, img1.ShowAlpha()) \ ++ v1.trim(101, -99) \ ++ v1.trim(200, -101).Overlay(img2.assumefps(23.976).trim(200,-101).fadein(60).fadeout(60), 150, 150,Opacity=1.0, img2.ShowAlpha()) \ ++ v1.trim(301, -99) \ ++ v1.trim(400, -101).Overlay(img3.assumefps(23.976).trim(400,-101).fadein(60).fadeout(60), 200, 200,Opacity=1.0, img3.ShowAlpha()) \ ++ v1.trim(501, -99) \ ++ v1.trim(600, -101).Overlay(img4.assumefps(23.976).trim(600,-101).fadein(60).fadeout(60), 250, 250,Opacity=1.0, img4.ShowAlpha()) \ ++ v1.trim(701, 0) return clip1
Similar Threads
-
Trim Video with fade in/out
By nnowak in forum Newbie / General discussionsReplies: 6Last Post: 12th Jul 2016, 11:02 -
How to Fade In/Fade Out Audio Clips in VSDC Free Video Editor?
By BSquared18 in forum EditingReplies: 15Last Post: 6th Mar 2015, 21:44 -
Fade in and fade out an mp4
By loninappleton in forum EditingReplies: 29Last Post: 21st Jan 2015, 12:17 -
"fade in / fade out" AC-3 using cmd tool
By adom in forum Video ConversionReplies: 3Last Post: 17th Jan 2013, 04:44 -
FFmpeg fade in/out
By templetonpeck in forum Video ConversionReplies: 2Last Post: 25th Jul 2012, 08:55