14

我正在使用这个脚本在 ffmpeg 中进行镜头检测。

ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)"

我需要将输出写入文本文件才能读取 ac 程序的输出。我怎样才能做到这一点?任何帮助表示赞赏。

4

1 回答 1

37

您将输出重定向到文件:

ffprobe -show_frames -of compact=p=0 -f lavfi "movie=test.mp4,select=gt(scene\,0.3)" > output.txt 2>&1

如果你想要单独的文件stdoutstderr你可以这样做:

[..] > out.txt 2> err.txt

于 2015-04-16T20:56:52.287 回答