set rtmp_ip=127.0.0.1

cd %~dp0

rd /s /q frame
rd /s /q wav
md frame
md wav

.\ffmpeg -i rtmp://%rtmp_ip%:11935/live/test -vf fps=25 -q:v 1 ".\frame\%%d.jpg" -f segment -segment_time 30 -c:a pcm_s16le ".\wav\%%d.wav"
