This is the plugin I wrote for playing
Bad Apple!! on sheep.
I didn't intend to make this a standalone plugin, so it's not the easiest thing to use.
The script to convert a video file is in the
GitLab repository, where you'll find more usage information.
The main command is:
/rottenplayer <originx> <originy> <cardinal> <filename> [<pixelscale>] [<timescale>]