Jump to content

Security Cameras Plug-in?


Sammy

Recommended Posts

PrincessClevage

Where do you see that error? is it in the Channel screen?

dropbox:-/

 

Can you give an example of the three inputs for your plugin please?

Link to comment
Share on other sites

chef

dropbox:-/

 

Can you give an example of the three inputs for your plugin please?

 

The first two can be anything you want really. It is so the channel can distinguish the streams. 

 

 

Example:

 

Name: {The name you want to label the Camera as in the Channel}  Front Door Camera

Id: {can be anything you want just not the same as another Id you have used} Camera1

Url: {an rtsp url for the live stream of the camera} rtsp://{username:pass@}ip:port/etc.

Edited by chef
Link to comment
Share on other sites

PrincessClevage

The first two can be anything you want really. It is so the channel can distinguish the streams.

 

 

Example:

 

Name: {The name you want to label the Camera as in the Channel} Front Door Camera

Id: {can be anything you want just not the same as another Id you have used} Camera1

Url: {an rtsp url for the live stream of the camera} rtsp://{username:pass@}ip:port/etc.

Does the rtsp need /videomain at the end?

E.g

Rtsp://username:passwrd@i.p:port/videomain

 

I also now have two invalid entries and each time I delete them and restart emby service they re appear. Is there a manual way to clear the config file directory?

What should we expect to see once a camera is successfully added?

Edited by PrincessClevage
Link to comment
Share on other sites

gjviii

Can multiple cameras be added?   i added the first with no issues.  entered the second the same way and it doesnt appear to show.

post-30-0-48096800-1498279401_thumb.jpg

 

post-30-0-46792700-1498279415_thumb.jpg

Link to comment
Share on other sites

gjviii

Also, it appears to play my 1 working camera fine in the web browser and the iphone app.  it doesnt seem to work on WMC

thanks 

Edited by gjviii
Link to comment
Share on other sites

PrincessClevage

It seems my cameras do not support rtsp, but do work using http (tested in vlc). Would it be possible to add http support ?

Link to comment
Share on other sites

chef

Does the rtsp need /videomain at the end?

E.g

Rtsp://username:passwrd@i.p:port/videomain

 

I also now have two invalid entries and each time I delete them and restart emby service they re appear. Is there a manual way to clear the config file directory?

What should we expect to see once a camera is successfully added?

There is a list of cameras that appear under "Saved Cameras" on the config page. You should be able to remove the camera from the list on the config page and it will remove it from the channel.

 

I'll take a look I it isn't working properly.

 

As for the "RTSP" URL every manufacturers camera has different one.

 

I had to use a free app called "ONVIF Device Manager" to figure out what my cameras rtsp URL was.

Link to comment
Share on other sites

chef

It seems my cameras do not support rtsp, but do work using http (tested in vlc). Would it be possible to add http support ?

Yes, try putting the "http" stream in the URL line and see what happens.

@@PrincessClevage

Edited by chef
Link to comment
Share on other sites

chef

Can multiple cameras be added? i added the first with no issues. entered the second the same way and it doesnt appear to show.

Capture1.JPG

 

Capture2.JPG

Let me take a look at that, I had an issue with that as well. I thought that updating the "DataVersion" of the channel would work.

Link to comment
Share on other sites

PrincessClevage

Yes, try putting the "http" stream in the URL line and see what happens.

i use the http url that worked in vlc player but alas no camera feed,emby actually picked it up as a movie and added metadata lol
Link to comment
Share on other sites

chef

i use the http url that worked in vlc player but alas no camera feed,emby actually picked it up as a movie and added metadata lol

In the channel? Lol.

 

Are you sure that your cameras don't have a setting for rtsp? It was really hard to find mine. The rtsp URLs are not always the same.

 

Try googling: "ONVIF Device Manager" let it scan for your cameras and see if an rtsp URL shows up.

 

You said FOSCAM I think, and I'm pretty sure try do have rtsp.

Edited by chef
Link to comment
Share on other sites

PrincessClevage

In the channel? Lol.

 

Are you sure that your cameras don't have a setting for rtsp? It was really hard to find mine. The rtsp URLs are not always the same.

 

Try googling: "ONVIF Device Manager" let it scan for your cameras and see if an rtsp URL shows up.

 

You said FOSCAM I think, and I'm pretty sure try do have rtsp.

4080cb356114d1ebe21aa5690d9423ba.jpg

http://foscam.us/forum/fi8918w-rtsp-stream-t12822.html

Link to comment
Share on other sites

chef

I see, but not to worry because we're gonna try and get it working :)

What happens when you press the play button in the camera stream, after having added the http URL in the setup?

 

Even though emby thinks it's a movie, does it display the camera stream?

Edited by chef
Link to comment
Share on other sites

PrincessClevage

I see, but not to worry because we're gonna try and get it working :)

What happens when you press the play button in the camera stream, after having added the http URL in the setup?

 

Even though emby thinks it's a movie, does it display the camera stream?

Looks like it try to run a player but just get a black screen

 

Here is what Emby identify a the camera as:

74d0855a98ab9e03e4cb5f62907e0c00.jpg

b7c407e92e1b29ee20c91f28014b1977.jpg

Link to comment
Share on other sites

chef

Lol! okay, the black screen will usually last for about fifteen seconds before the emby has finished preparing the stream.

 

Does the stream eventually start?

 

If the stream starts, then I can combat the mis-recognition with a bit of code :)

Edited by chef
Link to comment
Share on other sites

chef

Okay I found a parameter which allows for the ChannelItem to have a set protocol. I'm going to add it to the plugin and see if it will allow you to choose "Http" or "Rtsp".  One minute :)

  • Like 1
Link to comment
Share on other sites

chef

Thank you so much for testing. It's close to working I think.

 

 

Please, if you don't mind:

 

1. remove the "IPCam.Xml"  from the configuration folder, and the "IPCam.dll" from the plugin folder.

2. Restart the Server

3. Under Scheduled Tasks "Refresh Channel Items"

4. Copy the newer version of the "IPCam.dll" into the plugin folder

5. Restart the Server

 

Choose your Camera info, and use the "Http" Protocol

 

Let me know what happens :)

 

@@PrincessClevage

 

https://www.dropbox.com/s/k3lig2n9bwa3hye/IPCam.zip?dl=0

Link to comment
Share on other sites

PrincessClevage

Thank you so much for testing. It's close to working I think.

 

 

Please, if you don't mind:

 

1. remove the "IPCam.Xml" from the configuration folder, and the "IPCam.dll" from the plugin folder.

2. Restart the Server

3. Under Scheduled Tasks "Refresh Channel Items"

4. Copy the newer version of the "IPCam.dll" into the plugin folder

5. Restart the Server

 

Choose your Camera info, and use the "Http" Protocol

 

Let me know what happens :)

 

@@PrincessClevage

 

https://www.dropbox.com/s/k3lig2n9bwa3hye/IPCam.zip?dl=0

The cake is rising my good Chef.

 

Well done!

A couple of points of interest

Username and PW are clear text

Are you thinking of integrating this with your message plugin? E.g configure Vera upon motion trigger to sent message to emby (your message plugin listening) which trigger motion alert message in emby client and pause current media if configured to, ( new acknowledgement "show Details" or "Close" may be required) and select show to launch appropriate camera stream with same same name in your plugin as the name in the alert.

Love your work, thanks Chef.

 

P.s works on ET (desktop) ET (windows store) ET (xbox1)

Didn't work on ET (IOS)

Additional cameras don't show up only original 1st camera added is displayed

Edited by PrincessClevage
Link to comment
Share on other sites

chef

Great news!

 

Yea lets get some messages happening next.

 

Now we have a IP camera live stream lets incorporate the message plugin into it and see if we can get some really cool stuff happening with emby and home security and automation.

 

This should be very cool!

 

Very exciting!

 

I'm looking into adding more then one camera stream. Not exactly sure why it isn't working yet.

Edited by chef
  • Like 1
Link to comment
Share on other sites

chef

Can multiple cameras be added? i added the first with no issues. entered the second the same way and it doesnt appear to show.

Capture1.JPG

 

Capture2.JPG

I know how to fix this now :)

  • Like 1
Link to comment
Share on other sites

PrincessClevage

Should your plugin pass camera audio? The url I tested (and have working in the plugin) in vlc also played camera audio but currently not through the plugin.

Link to comment
Share on other sites

chef

Should your plugin pass camera audio? The url I tested (and have working in the plugin) in vlc also played camera audio but currently not through the plugin.

I could, I've seen code to make it happen, I would also have to include rtmp protocol to the channel.

 

Let me see what I can do.

Link to comment
Share on other sites

PrincessClevage

I could, I've seen code to make it happen, I would also have to include rtmp protocol to the channel.

 

Let me see what I can do.

Sorry to mislead you Chef, I just tested the working camera again and audio pass through is working in ET (desktop) with a 3-5 second delay. Looks like it is client dependant and also you must enter the correct url for your camera video/audio feed (not just video) Edited by PrincessClevage
  • Like 1
Link to comment
Share on other sites

chef

Ops! So I accede tally called the configuration page in the ipcamera plugin the same as the messenger plugin, so when you open the config page for either plugin they open the same page.

 

I am going to fix it up, and finish the message plugin.

 

Get that in the catalog if I can :)

  • Like 1
Link to comment
Share on other sites

PrincessClevage

I have just tried camera plugin again on iOS after update (iOS and Emby app both updated) and it now works on iOS (audio and video :-)

Edited by PrincessClevage
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...