diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-14 10:05:50 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-14 10:06:45 +0100 |
| commit | 9783831e37ca5718e20259be70c23e229d3583c4 (patch) | |
| tree | 6b40fd7a0337be63a8849a22a893c2f1dc76304f /examples/reverse/Makefile | |
| parent | blind-split: fix error check (diff) | |
| download | blind-9783831e37ca5718e20259be70c23e229d3583c4.tar.gz blind-9783831e37ca5718e20259be70c23e229d3583c4.tar.bz2 blind-9783831e37ca5718e20259be70c23e229d3583c4.tar.xz | |
Fix offset bug in blind-reverse and add example
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'examples/reverse/Makefile')
| -rw-r--r-- | examples/reverse/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/reverse/Makefile b/examples/reverse/Makefile new file mode 100644 index 0000000..5112f31 --- /dev/null +++ b/examples/reverse/Makefile @@ -0,0 +1,32 @@ +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 + +START = 20 +END = 40 + +reversed.mkv: $(TEMPFILE) + framerate=$$(ffprobe -v quiet -show_streams -select_streams v - < "$(INPUT_VIDEO)" | \ + grep '^r_frame_rate=' | cut -d = -f 2) && \ + ../../blind-reverse $(TEMPFILE) | ../../blind-to-video $(DRAFT) $${framerate} $(FFMPEG_ARGS) reversed.mkv + +$(TEMPFILE): $(INPUT_VIDEO) + ../../blind-from-video -L $(DRAFT) "$(INPUT_VIDEO)" - | \ + ../../blind-split -L /dev/null $(START) $(TEMPFILE) $(END) + +clean: + -rm reversed.mkv $(TEMPFILE) + +.PHONY: clean |
