Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能解释如何使这段代码工作?
exec("ffmpeg -f concat -i <(printf "file '%s'\n" ./*.mp4) -c copy output.mp4");
我尝试在“和”之前添加'\',它仍然没有用。感谢任何帮助。谢谢!
您必须转义双引号和反斜杠。您可以使用反斜杠:\
exec("ffmpeg -f concat -i <(printf \"file '%s'\\n\" ./*.mp4) -c copy output.mp4");