From 0eca87e3baf01afc06ad4a1ef12408152d81c6df Mon Sep 17 00:00:00 2001 From: Fredrik Strupe Date: Sat, 2 Nov 2019 13:49:39 +0100 Subject: [PATCH] Use y4m as the container format for raw video --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 7d3146d..15801b9 100644 --- a/Makefile +++ b/Makefile @@ -43,17 +43,17 @@ $(OUT)/audio.raw: $(SOURCE) $(eval GAIN := 0$(shell ffmpeg -i $^ -filter:a volumedetect -f null /dev/null 2>&1 | sed -n "s/.*max_volume: -\(.*\) dB/\1/p")) $(FFMPEG) -i $^ -f u8 -acodec pcm_u8 -ar 9198 -filter:a "volume=$(GAIN)dB" $@ -$(OUT)/frames: $(OUT)/video.mp4 +$(OUT)/frames: $(OUT)/video.y4m @echo $(TITLE)Extracting frames...$(TITLE_END) -@rm -rf $@ mkdir -p $@ $(FFMPEG) -i $^ -coder "raw" $@/%05d.tga -$(OUT)/video.mp4: $(SOURCE) +$(OUT)/video.y4m: $(SOURCE) @echo $(TITLE)Resizing video...$(TITLE_END) - $(FFMPEG) -i $^ -c:v rawvideo -vf scale=-2:144 $@.tmp.mp4 - $(FFMPEG) -i $@.tmp.mp4 -c:v rawvideo -filter:v "crop=160:144" $@ - rm $@.tmp.mp4 + $(FFMPEG) -i $^ -vf scale=-2:144 $@.tmp.y4m + $(FFMPEG) -i $@.tmp.y4m -filter:v "crop=160:144" $@ + rm $@.tmp.y4m clean: - rm -rf output \ No newline at end of file + rm -rf output