使用 VLC RTSP 流式传输并保存到 mp4 文件

发布于 2024-09-02 04:14:53 字数 369 浏览 3 评论 0原文

假设我有一个 RTSP url (rtsp://192.168.0.17/mpeg4)。实时摄像机设置在转发实时视频的机器上。我正在使用 vlc 播放器进行流式传输,并将其保存在某个位置的 mp4 文件中(即 c:\temp.mp4)。

现在我打开另一个 vlc 播放器实例并打开此文件 (c:\temp.mp4)。但由于它正在使用并将实时流媒体保存到该文件。那个不会被播放。如果停止流媒体然后播放 temp.mp4 文件,那么它将播放流媒体(保存的)视频。

现在我的要求是 VLC 播放器还应该连续流式传输并保存到 temp.mp4 文件中,同时该文件应该在任何标准播放器中播放。

是否可以通过使用 VLC 播放器的任何选项来同时完成这两件事。

谢谢 维韦克

let say i am having one RTSP url (rtsp://192.168.0.17/mpeg4). the live camera is setup on the machine which relay live video. i am streaming it using vlc player and i am saving it in mp4 file on some location (i.e. c:\temp.mp4).

Now i am opening another vlc player instance and open this file (c:\temp.mp4). but as it is in use and saving live streaming to that file. that will not be played. if if stop the streaming and then played temp.mp4 file then it will play the streamed (saved) video.

Now my requirement is VLC player should also stream and save into temp.mp4 file continuously and at the same time that file should be played in any standard player.

is it possible to do with any option using VLC player that we can do both this things simultaneously.

Thanks
Vivek

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月无声 2024-09-09 04:14:53

您可以使用 VLC 强大的输出链方法来做到这一点:

vlc input_stream --sout '#transcode{options}:standard{options}'

请粘贴您当前的命令行

You can do this with VLC powerful output chain method :

vlc input_stream --sout '#transcode{options}:standard{options}'

paste your current cmdline please

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文