rtsp stream capturing

后端 未结 6 2058
野的像风
野的像风 2020-12-24 03:39

I\'m looking for some universal way to dump rtsp stream. I want to figure out, that some rtsp stream is working well and server is sending some watchable video.

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-24 03:50

    How about using libpcap to create a tcpdump/Wireshark-like tool? By removing the headers generate by the layers below the application layer (i.e. TCP/UDP/IP/...), you will have access to the RTSP stream. The stream can then be dumped to a file on disc. I have to admit that I am not that familiar with RTP/RTSP, so maybe you have to remove those headers as well and just write the payload to file (for a media player to play it back).

提交回复
热议问题