问题描述
我怎样才能从IP摄像机,它使用RTP,流是MPEG4得到流,我有组播地址和端口,和我有网络摄像机的IP地址和端口号。结果,我不能forexample(HTTP:// IP / JPEG)通过http达到,我不能用VLC播放器到达流过。 forexample(RTP:// ipadressofcam:端口)和( RTP:// multicastaddress:端口)结果
那么,什么是那ffmpeg的命令结果
我?有Windows操作系统,我只写与C#代码现在。
,而生产商创造了自己的OCX其中用于查看凸轮,该插件可以在.NET上工作,但我不想使用它becouse它没有太多的funcionality,我的意思是,你不能让当前照片或摄像头的快照,这就是为什么我必须这样做我自己。
How i can get stream from Ip Camera, Its using RTP, stream is MPEG4, i have multicast address and port,and i have ip camera's IP address and Port Number.
And I cant reach via http forexample (http://ip/jpeg) And I cant reach stream with VLC Player too. forexample (rtp://ipadressofcam:port) and (rtp://multicastaddress:port)
So What is ffmpeg command of that?
I have windows OS, I only write code with C# right now.
But producer created their own ocx which used for viewing cam,that plugin can work on .net but i dont want to use it becouse it doesnt have much funcionality, I mean you cant get current picture or snapshot of cams, thats why i have to do it myself.
推荐答案
是你肯定流没有密码保护?
Are you sure the stream is not password-protected?
尝试看看为什么你的相机拒绝VLC请求。这是如何做到这一点:Wireshark的安装,启动它,并把过滤器的摄像机地址,如:ip.addr == camera_ip(xxxx.xxxx.xxxx.xxxx)。然后,尝试用VLC连接,并在交换的消息在那里寻找。如果你看到一个DROP,未授权,或者一些有关说明您使用passwd文件,介绍吧。 (VLC将首先尝试使用未经身份验证的程序进行连接,如果失败,会要求passwd的。)
Try to see why your camera rejects VLC requests. And this is how to do it: Install Wireshark, start it, and put a filter for the camera address, like: ip.addr == camera_ip (xxxx.xxxx.xxxx.xxxx). Then, try to connect with VLC, and look there at the messages exchanged. If you see a DROP, UNAUTH, or something that tells you to use a passwd, introduce it. (VLC will first try to connect using an unauthenticated procedure, and if it fails, will ask for a passwd.)
Wireshark的会给你的线索,如果失败的原因是什么不同的。
Wireshark will give you clues if the failure reason is something different.
和记住,如果VLC不能访问它时,有机会找到一些其他的方式做到这一点几乎是零。除非你是一个视频大师。
And keep in mind that if VLC can't access it, the chance to find some other way to do it is almost zero. Unless you're a video guru.
希望它帮助!
这篇关于获取流和ffmpeg的使用从网络摄像机为JPEG(图像)文件保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!