VLC 录制 rtsp 流 [英] VLC recording rtsp stream

查看:98
本文介绍了VLC 录制 rtsp 流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 VLC 播放器录制 rtsp 流时遇到问题.实际上我的方法适用于 MacOS X,但不适用于 Windows.命令行:

I have a problem with recording rtsp stream with VLC player. Actually my method works in MacOS X, but doesn't in Windows. Command line:

vlc -vvv rtsp://admin:admin@192.168.0.151/live/h264/ --sout="#transcode{vcodec=mp4v,vfilter=canvas{width=800,height=600}}:std{access=file,mux=mp4,dst=C:\123.mp4}"

在 MacOS 上它工作正常,但在 Windows 下它会创建不可读的文件.媒体信息输出:

On MacOS it works fine, but under Windows it creates unreadable file. MediaInfo output:

General
Complete name                            : C:\123.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 1.08 MiB

有什么建议吗?

推荐答案

您的目标网址似乎不正确.试试这个:

Seems like your destination URL is not correct. Try this:

vlc -vvv rtsp://admin:admin@192.168.0.151/live/h264/ --sout="#transcode{vcodec=mp4v,vfilter=canvas{width=800,height=600}}:std{access=file,mux=mp4,dst=C:\\123.mp4}"

这篇关于VLC 录制 rtsp 流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆