From 66dcb315393d1ec75978c54e4022219520b65981 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 16 Jan 2017 08:28:35 +0100 Subject: Add example: inplace-flop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/inplace-flop/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/inplace-flop/Makefile (limited to 'examples/inplace-flop') 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 = +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 -- cgit v1.2.3-70-g09d2