diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-16 08:28:35 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-16 08:28:35 +0100 |
| commit | 66dcb315393d1ec75978c54e4022219520b65981 (patch) | |
| tree | 62a587a17dbab1483275d5f44dc6593aaf4b1ce1 /examples/inplace-flop | |
| parent | blind-rotate-*: support arbitrary paths (diff) | |
| download | blind-66dcb315393d1ec75978c54e4022219520b65981.tar.gz blind-66dcb315393d1ec75978c54e4022219520b65981.tar.bz2 blind-66dcb315393d1ec75978c54e4022219520b65981.tar.xz | |
Add example: inplace-flop
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'examples/inplace-flop')
| -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 |
