commit 66dcb315393d1ec75978c54e4022219520b65981 parent cd63924da6e212b5672724b422eadbc71bf4e614 Author: Mattias Andrée <maandree@kth.se> Date: Mon, 16 Jan 2017 08:28:35 +0100 Add example: inplace-flop Signed-off-by: Mattias Andrée <maandree@kth.se> Diffstat:
A | examples/inplace-flop/Makefile | | | 28 | ++++++++++++++++++++++++++++ |
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/examples/inplace-flop/Makefile 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