什么是“破折号"?-表示为ffmpeg输出文件名 [英] What does "dash" - mean as ffmpeg output filename
问题描述
我正在尝试将ffmpeg与gnuplot结合使用以绘制一些音频频谱,我正在关注 ffmpegdoc 链接.
I'm trying to use ffmpeg with gnuplot to draw some audio spectra, I'm following this ffmpeg doc link.
现在我要问的是什么破折号"-
的意思是在 -f data
之后的这一行上,它应该是文件名:ffmpeg命令的最后一个元素应该是输出文件,但我没有名为的文件-
在运行命令后的目录中.
Now I'm asking what "dash" -
means on this line right after -f data
, it should be a filename: the last element of ffmpeg command should the output file but I have no files named -
in the directory after running the command.
ffmpeg -y -i in.wav -ac 1 -filter:a aresample=8000 -map 0:a -c:a pcm_s16le -f data - | gnuplot -p -e "plot '<cat' binary filetype=bin format='%int16' endian=little array=1:0 with lines;"
我查看了ffmpeg文档,但未找到任何内容.
I looked on ffmpeg docs but I didn't find anything.
推荐答案
-
表示 stdout
.您也可以在其位置编写 pipe:1
.作为输入,它表示 stdin
,并且可以写为 pipe:0
.
-
on the output side means stdout
. You can also write pipe:1
in its place. As input, it means stdin
and can be written as pipe:0
.
这篇关于什么是“破折号"?-表示为ffmpeg输出文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!