Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Video Widget
#21
So, presumably, once you get the RTSP source filter installed, you would provide some sort of rtsp:// URL to the web widget. The camera system would have to provide some URL for streaming. If it streams RTSP via the URL, then it should start with rtsp://, or maybe they may not document that because you may be using some program that knows it's streaming RTSP and wouldn't use that prefix. But for a web browser, something would have to tell it that the URL is for RTSP. That source filter, somewhere down in the guts, would have registered itself as a handler for RTSP format sources, so that would allow that filter to be found as the source, and then DirectShow would set up the rest of the filter graph based on what formats the RTSP filter says he provides.

That, it seems to me, is how it has to work. But, if that doesn't seem to be, them let me know and we can dig deeper.
Dean Roddey
Explorans limites defectum
Reply
#22
Dean,

Today I tested a few ways to get live video from my IP camera. I had done these a few months ago, but like I said, I had given up because I could never get it to work with CQC.

First of all, I tried VLC. I clicked on "Open Network Stream" and entered this address: rtsp://192.168.1.81/11. The video played fine. Live feed from the camera. Perfect.

Second, I have this command in a file:

<img id="stream" src="http://192.168.1.81/cgi-bin/hi3510/snap.cgi?&-getstream" />

I then opened the file with Chrome, Edge and IE. Chrome and Edge played the live video just like VLC did. IE would not. 

Thinking that maybe some extra piece of software was installed on my main desktop machine, I then tried the same file on a brand new machine and again Chrome and Edge displayed the live feed just fine and IE would not.

Personally, I would rather you not spend time making the current web browser widget work but instead develop a true video player widget using VLC or some other 3rd party library.

Thanks.
Reply
#23
As I mentioned, it may just need an RTSP filter installed, if your cameras stream via RTSP. This is a very simple thing to test. VLC isn't going to be any truer than WMP is, it just happens in this case to ship with a handler for RTSP whereas IE appareently doesn't by default.

It's very hard to justify doing all that work if all it requires is installing a source filter, which will take all of a few minutes for any new system, a lot easier than installing a completely separate third party video system. That should be tried first before I spent a month doing something that could already be easily done and that will require a big chunk of third party software.

In theory, once the RTSP source filter is installed, then that URL:

rtsp://192.168.1.81/11

should be sufficient. So it should be tried. If it works, then we are good, and I don't have to spend any time on a completely new thing that doesn't buy us anything that we don't already have.
Dean Roddey
Explorans limites defectum
Reply
#24
Dean, I found this:

https://social.msdn.microsoft.com/Forums...evelopment

But it looks like it's something you would use in developing a Directshow enabled widget. 

Could you suggest a rtsp filter you would like for me to try?
Reply
#25
See post 18 on this thread for some options. If that works, then yeh, I could look at an embedded WMP type widget far easier than trying to bite off a whole new thing, and in the meantime the web browser widget would let people do it for now. If we can't get the web browser widget to work, I'll see if I can hack together some test program using embedded WMP to try.

Mykel, could you try this also?
Dean Roddey
Explorans limites defectum
Reply
#26
Personally I would rather see VLC be the choice over WMP. Just look at the issue here already. VLC played the network stream with no user intervention whereas WMP is going to need a filter to get it working.

How to embed VLC into a GUI-based C/C++ application
https://forum.videolan.org/viewtopic.php?t=51393

VLC is free so its not going to be an issue with people having to obtain more software - but it is a separate bit of code that is not part of windows.

Ill check against my camera at home for the VLC/WMP rtsp stream
Mykel Koblenz
Illawarra Smart Home
Reply
#27
(03-21-2017, 01:29 PM)bryanb Wrote: Dean,

Today I tested a few ways to get live video from my IP camera. I had done these a few months ago, but like I said, I had given up because I could never get it to work with CQC.

First of all, I tried VLC. I clicked on "Open Network Stream" and entered this address: rtsp://192.168.1.81/11. The video played fine. Live feed from the camera. Perfect.

Second, I have this command in a file:

<img id="stream" src="http://192.168.1.81/cgi-bin/hi3510/snap.cgi?&-getstream" />

I then opened the file with Chrome, Edge and IE. Chrome and Edge played the live video just like VLC did. IE would not. 

Thinking that maybe some extra piece of software was installed on my main desktop machine, I then tried the same file on a brand new machine and again Chrome and Edge displayed the live feed just fine and IE would not.

Personally, I would rather you not spend time making the current web browser widget work but instead develop a true video player widget using VLC or some other 3rd party library.

Thanks.

My experience exactly. VLC "just works". Who is using IE these days anyway? Not many.
Reply
#28
I really don't want to suck in a big chunk of third party code if it's not required. Clearly IE wouldn't work for RTSP unless a filter is installed. That's a tiny piece of code, and at worst as easy as anything else. I would imagine that at some point here the embedded browser will have the option of using the Edge engine as well.
Dean Roddey
Explorans limites defectum
Reply
#29
Doesn't html5 support embedded video?
Reply
#30
It does, but in this case the issue is RTSP. I'm not sure if the HTML5 style embedded video player is any different from WMP really, and probably itself is just a DirectShow thingie. If so, it would come back again to an RTSP source filter being installed.
Dean Roddey
Explorans limites defectum
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Door locks and door video rhosch 24 5,386 11-07-2019, 12:35 PM
Last Post: rhosch
  New tutorial video Dean Roddey 2 1,648 11-27-2018, 07:15 PM
Last Post: ellisr63
  An idea for a new widget Dean Roddey 5 3,636 03-13-2017, 02:47 PM
Last Post: potts.mike
  Web browser widget Trioxide 7 4,609 02-25-2017, 06:30 AM
Last Post: Trioxide
  Security video with CQC bryanb 19 7,620 04-22-2016, 05:13 PM
Last Post: Dean Roddey
  Slider Widget potts.mike 1 1,789 04-19-2016, 04:59 PM
Last Post: Dean Roddey
  Field Incr/Decr Button Widget khill 15 6,506 05-17-2015, 01:04 PM
Last Post: dlmorgan999
  Overlay in an Overlay triggered by Widget Deane Johnson 4 3,159 11-09-2014, 10:29 AM
Last Post: Deane Johnson
  Load personal video files into repository? brathnach 7 4,163 05-14-2013, 02:06 PM
Last Post: wuench
  Set up a hardware DVD video library yarwoob 15 9,928 04-07-2013, 04:29 AM
Last Post: Bugman

Forum Jump:


Users browsing this thread: 1 Guest(s)