Posted: . At: 8:32 AM. This was 1 year ago. Post ID: 17213
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



Fake VHS effect for MPV.


This useful script will create a very useful VHS tape effect for a video. This could be very good to make a fake “found footage” video.

#!/bin/bash
 
mpv "$1" --vf-append=scale=-1:480 --vf-append=crop=640:480 \
--vf-append=eq=brightness=0.05:saturation=1.1 --vf-append=telecine\
 --vf-append=noise=alls=10:allf=t --vf-append="geq=[lum(X,Y)]:[cb(X*8,Y)]:[cr(X*8,Y)]"\
 --vf-append=gblur=sigma=1.5 --vf-append="geq=[lum(X,Y)]:[cb(X/8,Y)]:[cr(X/8,Y)]"\
 --vf-append="scale=-1:1080"

This script provides a nice VHS effect for MPV. This is what it looks like.

Here is another example, this is a script that provides a nice VHS effect for MPV output.

#!/bin/bash
 
mpv "$1" --lavfi-complex="[vid1] eq=brightness=0.05:saturation=1.1,\
 telecine, scale=-1:480:in_range=pc:out_range=tv, crop=640:480, colorspace=all=bt601-6-625:format=yuv444p12:range=tv,\
 extractplanes=y+u+v[y][u][v], [y]scale=312:480:flags=lanczos, noise=alls=5:allf=t, scale=854:480:flags=lanczos[a],\
 [u]scale=40:480:flags=lanczos, noise=alls=5:allf=t, scale=854:480:flags=lanczos[b], [v]scale=40:480:flags=lanczos,\
 noise=alls=5:allf=t, scale=854:480:flags=lanczos[c], [a][b][c]mergeplanes=0x001020:yuv444p12, \
scale=in_range=tv:out_range=pc [vo]"

These examples would be very useful for a Linux user.

This also works on Youtube videos played with MPV. A nice way to have a custom video effect easily.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.