How to use ffmpeg command to record the rtsp stream to wav

Solution 1:

ffmpeg -i rtsp://192.168.0.192/110 voice.wav

-acodec copy/-c copy enables stream copy mode (like a copy and paste). So if your input format is not compatible with the output format you'll get an error or an invalid output.