chops a youtube video into clips, and stitches the clips back together in reverse chronological order. like the movie memento.
install ffmpeg
npm i -g mementoize
mementoize "<youtube_url>" <output_filename>.mp4 <clip_length_in_seconds>
downloads mementoized youtube video to the current directory
mementoize "https://www.youtube.com/watch?v=sKRxIvZCmxk" doc-chicken.mp4 5
generates this video