3

I know how to record the rtsp steam to aac, just like:

ffmpeg -i rtsp://192.168.0.192/110 -acodec copy -t 5 -vn voice.aac

But I don't know how to record the rtsp stream to wav. I have tried the below commands, but they can't work

ffmpeg -i rtsp://192.168.0.192/110 -acodec copy -t 5 -vn voice.wav
ffmpeg -i rtsp://192.168.0.192/110 -acodec copy -t 5 -ar 48000 -ab 128k -ac 2 -f wav voice.wav
chen zhijian
  • 31
  • 1
  • 2

1 Answers1

2
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.

llogan
  • 12,348