Making a Fake Radar
final size 1920x1080
Step 1 : first make a gradient image 1/4 size = 480x270
I will scale it up later but if I make it too big my computer freezes
magick -size 480x270 radial-gradient:green-black radial_gradient.png
link: https://imagemagick.org/script/gradie...
Step 2 : crop 1/4 of the png
ffmpeg -i radial_gradient.png -vf crop=240:135:0:0 qtr_radial_gradient.png
link: https://github.com/afrum/my_ffmpeg/bl...
Step 3 : then make some black padding for 3 quarters of the rest of the png
ffmpeg -i qtr_radial_gradient.png -vf pad="2*iw:2*ih:0:0" padded_gradient.png
link: https://github.com/afrum/my_ffmpeg/bl...
Step 4 : make it rotating
convert padded_gradient.png -duplicate 360 -distort SRT 1,%[fx:t*5] rotating_green_light.gif
link: https://legacy.imagemagick.org/discou...
Step 5 : turn it into an mp4
ffmpeg -i rotating_green_light.gif rotating_green_light.mp4
Step 6 : scale the image
ffmpeg -i rotating_green_light.mp4 -vf scale=iw*4:ih*4 1920x1080_rotating_light.mp4
link: https://github.com/afrum/my_ffmpeg/bl...
Step 7 : now to make a blank video for my drawgrid
ffmpeg -f lavfi -i color=c=black:duration=36:size=1920x1080 blank.mkv
link: https://github.com/afrum/my_ffmpeg/bl...
Step 8 : now add the drawgrid
ffmpeg -i blank.mkv -vf drawgrid=w=160:h=160:color=green:t=4:y=60 greengrid.mkv
link: https://github.com/afrum/my_ffmpeg/bl...
Step 9 : now I will overlay the 2 videos
ffmpeg -i 1920x1080_rotating_light.mp4 -i greengrid.mkv -filter_complex "[1]format=yuva444p,colorchannelmixer=aa=0.5[in2];[0][in2]overlay" radar.mp4
link: https://stackoverflow.com/questions/5...
Step 10 : now I want to make a ufo:
ffmpeg -i radar.mp4 -vf "geq=random(1)/hypot(X-cos(N*0.07)*W/2-W/2\,Y-sin(N*0.09)*H/2-H/2)^2*1000000*sin(N*0.02):128:63" enigmatic_light.mp4
link: https://github.com/afrum/my_ffmpeg/bl...
Step 11 : make the fps the same for the radar and UFO
ffmpeg -i enigmatic_light.mp4 -codec:v mpeg4 -r 24 -qscale:v 2 fpsUFO.mp4
ffmpeg -i radar.mp4 -codec:v mpeg4 -r 24 -qscale:v 2 fpsfullradar.mp4
link: https://github.com/afrum/my_ffmpeg/bl...
Step 12 : blend the 2 videos
ffmpeg -i fpsUFO.mp4 -i fpsfullradar.mp4 -filter_complex "[0:v]format=gbrp[f0],[1:v]format=gbrp[f1],[f0][f1]blend=all_mode=negation" finalradar.mp4
link: https://github.com/afrum/my_ffmpeg/bl...
Step 13 : blur for effect:
ffmpeg -i finalradar.mp4 -t 36 -an -vf boxblur=4:2:cr=3:ar=2 finalradarblur.mp4
link: https://ffmpeg.org/ffmpeg-all.html#bo...
00:00 intro
02:07 01. radial gradient (imagemagick)
03:42 02. crop (ffmpeg)
04:40 03. pad (ffmpeg)
05:57 04. rotating gif (imagemagick)
07:00 05. gif to mp4 (ffmpeg)
07:15 06. scale (ffmpeg)
08:01 07. blank video (ffmpeg)
08:33 08. drawgrid (ffmpeg)
09:38 09. overlay (ffmpeg)
10:16 10. enigmatic light (ffmpeg)
12:00 11. homogenize videos (ffmpeg)
13:42 12. blend (ffmpeg)
15:32 13. boxblur (ffmpeg)
15:50 Thankyou for watching :)
Смотрите видео make a prop radar with code - ffmpeg and imagemagick онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь A Forum 10 Август 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 198 раз и оно понравилось 6 людям.