将RTSP像rtmpdump一样转储到文件中 [英] Dump RTSP to file like rtmpdump
本文介绍了将RTSP像rtmpdump一样转储到文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将RTSP流转储到文件中?
How to dump an RTSP stream to a file?
对于RTMP,我可以这样做:
For RTMP I can do this:
rtmpdump --quiet --start=0 --stop=10 -rtmp=[Path to stream] --flv=dump.f4v
我需要对RTSP做同样的事情。我在OS X上,可以访问VLC,python和ffmpeg。
I need to do the same for RTSP. I'm on OS X and have access to VLC, python and ffmpeg.
我只需要保存10秒的流样本即可测试服务器。 / p>
I only need to save a small 10 second sample of the stream to test a server.
推荐答案
您可以使用以下命令使用FFmpeg对其进行转储。
You can dump it with FFmpeg using the following command.
ffmpeg -i [流的路径] -t 10 -c复制dump.f4v
ffmpeg -i "[Path to stream]" -t 10 -c copy dump.f4v
这篇关于将RTSP像rtmpdump一样转储到文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文