diff options
| -rw-r--r-- | examples/inplace-flop/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/inplace-flop/Makefile b/examples/inplace-flop/Makefile new file mode 100644 index 0000000..3316536 --- /dev/null +++ b/examples/inplace-flop/Makefile @@ -0,0 +1,28 @@ +INPUT_VIDEO = <please select a video file as INPUT_VIDEO> +TEMPFILE = tmp.uivf + +DRAFT = -d +# Useful for better performance when not working +# with colours or not caring about colours. + +FFMPEG_ARGS = -c:v libx264 -preset veryslow -crf 0 -pix_fmt yuv444p +# ↑~~~~~~~~~~~ ↑~~~~~~~~~~~~~~~ ↑~~~~~~~~~~~~~~~~~~~~~~ +# │ │ │ +# │ │ └──── Lossless +# │ │ +# │ └──── High compression +# │ +# └──── H.264, a lossless-capable codec + +flopped.mkv: $(INPUT_VIDEO) + ../../blind-from-video $(DRAFT) "$(INPUT_VIDEO)" $(TEMPFILE) + ../../blind-flop <>$(TEMPFILE) 1<>$(TEMPFILE) + framerate=$$(ffprobe -v quiet -show_streams -select_streams v - < "$(INPUT_VIDEO)" | \ + grep '^r_frame_rate=' | cut -d = -f 2) && \ + ../../blind-to-video $(DRAFT) $${framerate} $(FFMPEG_ARGS) flopped.mkv < $(TEMPFILE) + rm $(TEMPFILE) + +clean: + -rm flopped.mkv $(TEMPFILE) + +.PHONY: clean |
