|
|
|
|
4
|
|
4
|
|
5
|
// Raw ffmpeg command with standard mp4 setup
|
5
|
// Raw ffmpeg command with standard mp4 setup
|
6
|
// Some old versions of ffmpeg require -strict for the aac codec
|
6
|
// Some old versions of ffmpeg require -strict for the aac codec
|
7
|
- var cmd = "ffmpeg -r " + options.framesPerSecond + " -i \"" + options.framePath + "\" -i \"" + options.audioPath + "\" -c:v libx264 -c:a aac -strict experimental -shortest -pix_fmt yuv420p \"" + options.videoPath + "\"";
|
|
|
|
|
7
|
+ var cmd = "ffmpeg -r " + options.framesPerSecond + " -i \"" + options.framePath + "\" -i \"" + options.audioPath + "\" -c:v libx264 -c:a aac -strict experimental -shortest -pix_fmt yuv420p -vf 'scale=trunc(iw/2)*2:trunc(ih/2)*2' \"" + options.videoPath + "\"";
|
8
|
|
8
|
|
9
|
exec(cmd, cb);
|
9
|
exec(cmd, cb);
|
10
|
|
10
|
|