From 8fe6ef06c038960f075b3dd04f34a85c74fc8b6a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 4 Dec 2022 17:49:52 -0800 Subject: [PATCH] 30 Hz test --- Makefile | 1 + gif.sh | 2 +- mp4.sh | 7 +++++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 mp4.sh diff --git a/Makefile b/Makefile index 3789a89..f877125 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ all : sample0.xex sample1.xex sample2.xex sample3.xex sample4.xex sample5.xex sa %.s : %.jpg dither-image.js node dither-image.js $< $@ ./gif.sh $@ + ./mp4.sh $@ chickens.s : chickens.wav pack-wav.js node pack-wav.js $< $@ diff --git a/gif.sh b/gif.sh index 6cf2305..3fbffd6 100755 --- a/gif.sh +++ b/gif.sh @@ -1,4 +1,4 @@ -fps=60000/1001 +fps=30000/1001 ffmpeg \ -r $fps -i "$1.%01d.png" \ diff --git a/mp4.sh b/mp4.sh new file mode 100755 index 0000000..db3e494 --- /dev/null +++ b/mp4.sh @@ -0,0 +1,7 @@ +fps=30000/1001 + +ffmpeg \ + -r $fps -i "$1.%01d.png" \ + -vf scale=w=640:h=384:sws_flags=neighbor,format=yuv420p \ + -g 480 \ + -y "$1.mp4"