updated video codec

This commit is contained in:
Quentin Roussel
2024-08-18 20:09:36 +08:00
parent 84ee2eb724
commit a02cdd801e
2 changed files with 3 additions and 2 deletions

View File

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