Skip to main content

名字太长

Command failed with ENAMETOOLONG: ffmpeg ...

如果在 Windows 上使用 Remotion 并且视频中有太多音频层,则会发生此错误,从而生成的 FFmpeg 命令长度超过 Windows 允许的最大命令长度(8192 个字符)。

🌐 This error occurs if Remotion is used on Windows and too many audio layers are in the video so that an FFmpeg command gets generated that is longer than the maximum allowed Windows command length (8192 characters).

不幸的是,FFmpeg 没有其他方式可以指定大量输入,因此 Remotion 无法解决此问题。这里是一些替代建议:

🌐 Unfortunately, FFmpeg does not have any other alternative way to specify a massive amount of inputs, so Remotion can not fix this issue. Here are some recommendations instead:

静音没有声音的视频

🌐 Mute videos that have no sound

如果你有没有声音的视频,请添加 muted 属性,这样它们就不会被加入混合中。

🌐 If you have videos without sound, add the muted property, so they won't be added to the mix.

使用不同的操作系统

🌐 Use a different operating system

macOS 和 Linux 的最大命令长度要长得多。在不同的操作系统上渲染同一视频,或者在 Windows 子系统上使用 Linux。

🌐 macOS and Linux have a much longer maximum command length. Render the same video on a different operating system or use Linux for Windows Subsystem.

部分渲染视频

🌐 Render the video partially

仅使用 --frames 属性渲染视频的一部分,并使用 FFmpeg concat 命令 将各部分合并

🌐 Render only a portion of a video using the --frames property, and add portions together using an FFmpeg concat command