mirror of
https://git.roussel.pro/public-website/singapore_rain_radar.git
synced 2026-02-09 02:20:17 +01:00
updated video codec
This commit is contained in:
3
Makefile
3
Makefile
@@ -1,5 +1,6 @@
|
||||
APP_NAME = "sg_rain_radar"
|
||||
OUTPUT_DIR = /var/www/html/other/sg_rain_radar/
|
||||
DEBUG_OUTPUT_DIR = $(PWD)/out
|
||||
|
||||
build:
|
||||
docker build . -t $(APP_NAME)
|
||||
@@ -11,7 +12,7 @@ debug:build
|
||||
docker run \
|
||||
-it \
|
||||
--mount type=bind,source=$(PWD)/images,target=/home/node/app/images \
|
||||
--mount type=bind,source=$(OUTPUT_DIR),target=/home/node/app/out \
|
||||
--mount type=bind,source=$(DEBUG_OUTPUT_DIR),target=/home/node/app/out \
|
||||
$(APP_NAME)
|
||||
|
||||
run:build
|
||||
|
||||
@@ -45,7 +45,7 @@ export async function createVideo() {
|
||||
}
|
||||
//run the command ffmpeg -framerate 5 -i %d.png -c:v libx264 -r 30 output.mp4
|
||||
return new Promise((resolve, reject) => {
|
||||
exec('ffmpeg -framerate 5 -i images/final/%d.png -c:v h264 -r 30 out/output.mp4', (err, stdout, stderr) => {
|
||||
exec('ffmpeg -framerate 5 -i images/final/%d.png -c:v libvpx -r 30 out/output.mp4', (err, stdout, stderr) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user