Created
July 5, 2020 10:20
-
-
Save neelriyer/d247e8f0022f35aaeb609e279e8fe3f8 to your computer and use it in GitHub Desktop.
Create crappy video using ffmpeg for training the net
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download grain video | |
rm -Rf build | |
YT_GRAIN_OVERLAY="https://www.youtube.com/watch?v=J_MZb7qTenE" | |
mkdir -p build | |
youtube-dl "$YT_GRAIN_OVERLAY" -f mp4 --output "build/grain.mp4" | |
# invert colors | |
ffmpeg -loglevel quiet -y -i "build/grain.mp4" -vf negate 'color_inverted.mp4' | |
# overlay video | |
ffmpeg \ | |
-y \ | |
-loglevel quiet \ | |
-i "seinfeld.mp4" \ | |
-i "color_inverted.mp4" \ | |
-filter_complex "[1:v][0:v]blend=all_mode='softlight':all_opacity=1" \ | |
"output_test.mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment