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.
我正在使用这个脚本在 ffmpeg 中进行镜头检测。
ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)"
我需要将输出写入文本文件才能读取 ac 程序的输出。我怎样才能做到这一点?任何帮助表示赞赏。
您将输出重定向到文件:
ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)" > output.txt 2>&1
如果你想要单独的文件stdout,stderr你可以这样做:
stdout
stderr
[..] > out.txt 2> err.txt