How to dump raw RTSP stream to file?

前端 未结 3 764
孤独总比滥情好
孤独总比滥情好 2020-12-04 07:59

Is it possible to dump a raw RTSP stream to file and then later decode the file to something playable?

Currently I\'m using FFmpeg to receive and decode the stream,

3条回答
  •  生来不讨喜
    2020-12-04 08:27

    With this command I had poor image quality

    ffmpeg -i rtsp://192.168.XXX.XXX:554/live.sdp -vcodec copy -acodec copy -f mp4 -y MyVideoFFmpeg.mp4
    

    With this, almost without delay, I got good image quality.

    ffmpeg -i rtsp://192.168.XXX.XXX:554/live.sdp -b 900k -vcodec copy -r 60 -y MyVdeoFFmpeg.avi
    

提交回复
热议问题