How to create VCR video effects | Video Recorder Play Rec Replay Eject Pause FF Rew VFX

Опубликовано: 21 Ноябрь 2022
на канале: The FFMPEG guy
612
25

Today, we show how to create different video effects to mimic the functions of an old VCR. The functions we demonstrate are: Play, Record / REC, Replay, Eject Pause, Fast Forward / FF, Rewind / Rew. All parameters can be customized to suit your needs.

All the .png shown in the video can be downloaded for free from the community tab:
   / @theffmpegguy  
Or at:
https://www.tumblr.com/thelabotomy/69...

EXAMPLES
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
❶ VCR Play function.
Note: To implement the Record / REC or Replay functions, simply replace the .png in the command
→ ffmpeg -i input.mp4 -vf "movie=Play.png[layer];[in][layer]overlay=20:0[out]" output01.mp4

with:
-i input.mp4 = Reads file «input.mp4» and …
-vf "movie=Play.png[layer] = … imports «Play.png» calling it [layer].
[in][layer] = Loads, in order, the original video [in] and the Play.png [layer]…
overlay=20:0 = … and overlays the picture layer at position x=20, y=0 from the upper left corner
[out] = … calling the result [out].
output01.mp4 = Outputs finally the whole to file «output01.mp4»

❷ VCR Eject functions
→ ffmpeg -i input.mp4 -vf "movie=Eject.png[layer];[in]fade=out:150:1[in2];[in2][layer]overlay=enable='if(between(t,2,7),lt(mod(t,2),1),0)'[out]" -af "volume=enable='between(t,5,10)':volume=0" output02.mp4

with:
-i input.mp4 = Reads file «input.mp4» and …
-vf "movie=Eject.png[layer] =
[in]fade=out:150:1[in2] = Turns now the original video to black after 5 seconds (~150 frames) calling the output [in2] and …
[in2][layer]overlay=enable='if(between(t,2,7),lt(mod(t,2),1),0)'[out] = … overlays the Eject picture [layer] on the video [in2] between seconds 2 & 7 making it blink every 2s during that time.
-af "volume=enable='between(t,5,10)':volume=0 = Turns the audio off after 5 seconds and…
output02.mp4 = … outputs the final result to file «output02.mp4»

❸ VCR Pause function
→ ffmpeg -i input.mp4 -i Pause.png -filter_complex [0:v]loop=loop=60:size=1:start=29.97*3,setpts=N/FRAME_RATE/TB[v2];[v2][1:v]overlay=enable='between(t,3,5)'[v];[0:a]aloop=loop=60:size=48000/29.97:start=3*48000,asetpts=N/SR/TB,volume=enable='between(t,3,5)':volume=0[a] -map [v] -map [a] output03.mp4

with:
-i input.mp4 = Reads file «input.mp4», …
-i Pause.png = … imports picture «Pause.png» …
-filter_complex = … and starts a series of complex filters.
[0:v]loop=loop=60:size=1:start=29.97*3,setpts=N/FRAME_RATE/TB[v2] = Stops and loops the video after 3 seconds for 2 seconds …
[v2][1:v]overlay=enable='between(t,3,5)'[v] = … and overlays the Pause.png [1:v] on it during that time (between seconds 3 and 5).
[0:a]aloop=loop=60:size=48000/29.97:start=3*48000,asetpts=N/SR/TB = Stops and loops now the audio after 3 seconds for 2 seconds …
volume=enable='between(t,3,5)':volume=0[a] = … setting the audio volume to 0 during that time (between seconds 3 and 5).
-map [v] -map [a] = Stitches back together the resulting video [v] and audio [a]…
output03.mp4 = … and outputs the whole to file «output03.mp4»

❹ VCR Fast Forward / FF Function
→ ffmpeg -i input.mp4 -i FF.png -filter_complex "[0:v]setpts=0.5*PTS[v2];[0:a]atempo=2.0[a];[v2][1:v]overlay[v]" -map "[v]" -map "[a]" output04.mp4

with:
-i input.mp4 = Reads file «input.mp4», …
-i FF.png = … imports picture «FF.png».
-filter_complex = … and starts a series of complex filters.
[0:v]setpts=0.5*PTS[v2];[0:a]atempo=2.0[a] = Accelerates the input video [0:v] and input audio [a:0] by a x2 factor and …
[v2][1:v]overlay[v] = … overlays the ff.png on top of the video.
-map "[v]" -map "[a]" = Stitches back together the resulting video [v] and audio [a]…
output04.mp4 = … and outputs finally the whole to file «output04.mp4»

❺ VCR Rewind / Rew function
→ ffmpeg -i input.mp4 -i REW.png -filter_complex "[0:v]reverse,setpts=0.5*PTS[v2];[0:a]areverse,atempo=2.0[a];[v2][1:v]overlay[v]" -map "[v]" -map "[a]" output05.mp4

with:
-i input.mp4 = Reads file «input.mp4», …
-i REW.png = … imports picture «REW.png».
-filter_complex = … and starts a series of complex filters.
[0:v]reverse,setpts=0.5*PTS[v2];[0:a]areverse,atempo=2.0[a] = Reverses first and then accelerates the input video [0:v] and input audio [a:0] by a x2 factor and …
[v2][1:v]overlay[v] = … overlays the REW.png on top of the video.
-map "[v]" -map "[a]" = Stitches back together the resulting video [v] and audio [a]…
output05.mp4 = … and outputs finally the whole to file «output04.mp4»

ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
→ Catch up with the FFMPEG guy Channel
   • ALL THE VIDEOS FROM THE CHANNEL  
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
MUSIC
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
→ Sound of Aging - Max McFerren
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ


Смотрите видео How to create VCR video effects | Video Recorder Play Rec Replay Eject Pause FF Rew VFX онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь The FFMPEG guy 21 Ноябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 612 раз и оно понравилось 25 людям.