Score:2

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

ng flag

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
Score:1
jp flag
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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.