gpt4 book ai didi

node.js - ffmpeg 输出文件不同

转载 作者:太空宇宙 更新时间:2023-11-04 03:27:44 24 4
gpt4 key购买 nike

以下代码输出不同的文件。为什么?

我使用了 diff 命令和 cmp,这表明它们在字节 15 处开始有所不同。我还尝试将 toFormat() 的参数从“ogg”更改为“mp3”。结果相同。

ffmpeg( './original/test.mp3' )
.toFormat( 'ogg' )
.on( 'error', function(error, stdout, stderr)
{
console.log( 'Cannot process file: \n' + error );
})
.output( './tmp_a/' + filename )
.output( './tmp_b/' + filename )
.run();

我无法判断我是否做错了什么或者这是否是预期的行为。

最佳答案

OGG格式复用器写入唯一的序列号或ID标签。添加 -flags +bitexact 将其设置为零。

关于node.js - ffmpeg 输出文件不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42454530/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com