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:
@@ -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