I'm trying to use ffmpeg with gnuplot to draw some audio spectra, I'm following this ffmpeg doc link.
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;"
I looked on ffmpeg docs but I didn't find anything.