• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 31
Release Surveillance Room - Your IP Camera Companion with extra Foscam HD Support
#46
Hmm, I can't see a MJPEG setting anywhere on the camera's web gui. Is there a URL that I can go to, to see the stream? Also, when would the log contain the test for the stream? Is it when the service starts running or is it when I execute the script?
Reply
#47
It seems it's not in the Web UI but it is in their android app. In any case, you can try setting it from the camera settings in the add-on manually as well. But ultimately, if you can play the single camera player as MJPEG it's enabled.

It wil be in the logs when the service starts the first time, but the camera settings will be easier to capture.
Reply
#48
I sent some more logs, hopefully that's the one that shows it being enabled. I confirmed also that I cannot play the single player camera with MJPEG, my setting had it on Video Stream.
Reply
#49
Yea it does. We see these:
Code:
Send Foscam command: http://192.168.1.104:88/cgi-bin/CGIProxy.fcgi?usr=XXX&pwd=XXX&cmd=setSubVideoStreamType&format=1
Received Foscam response: 0, {}

I looked through the release notes for your camera firmware again because I was confused. Based on
Quote:The new firmware is suitable for FI9821P V2 as well as FI9821W V2

System firmware version: 1.5.2.13
App firmware version: 2.21.2.5
Plug-in version: 3.3.0.5


Improvement:
1. Add settings example below configuration option in Email and FTP settings;
2. Optimized the login password security level;
3. Enable motion detection by default excpet the Camera and PC sound;
4. Add new feature to customize the snapshot name which uploaded to FTP;
5. Fixed the DST bug;
6. Fixs the bug cannot fetch MJPEG video stream;
7. Added the pushing message function;
8. More user friendly web ui.
9. Fixed a DHCP Gateway bug.

Based on this, looks like we can't make it work without the update. I will see about adding some sort of notification to make us aware for next time that the MJPEG stream is not 'fetched'. Thanks for helping me to investigate!
Download this firmware version from http://foscam.us/firmware
Reply
#50
No problem. Happy I can help. I was under the impression it was the latest firmware from the web UI and since the camera is brand new but I'll definitely go update. Thanks for all your help!!
Reply
#51
Hi,
What cameras did you use to build this?

I am looking to buy some IP cameras to use with my synology and having the feed on xbmc would also be great. I figured buying the same cameras would give a quicker setup on my part...

Also does this add on give a popup notification when motion detected on any set feeds? i.e to show someone at front door etc

It's an external camera we are looking to buy.
Reply
#52
@WolvesPhil - The specific cameras I used for the original development are FoscamHD F19831W and F19804P. I've also test on F19805W's that a family member own. For generic camera's I used a D-Link DCS-932L. I am now developing for FoscamSD using an F18910W. I expect any camera using the same Firmware branch to function fine with this add-on.

Currently the add-on can be configured to show the feed as a 'pop-up' (slide-in) notification of the camera when motion is detected. There is no support for a text-based notification yet but is an interesting feature I hadn't considered before. This might be something worth adding. Let me know if you have any additional questions.

And just to update the rest of the thread, Foscam SD support has made a lot of progress this weekend. I'd say almost 80% complete. It's taken longer because I didn't like how "hacked" in the support of it was and would make changing or support other camera api's in the future harder. Hoping now to get this out before the end of this week. Thanks for the patience!
Reply
#53
Photo 
big thank modification,

I tried to put my camera more generic consequi not have resulted can see it by kodi

rtsp: //192.168.0.151: 554

with no more modification could help me?
I downloaded this file at this link

https://github.com/maikito26/plugin.vide...llanceroom

http://snag.gy/lzCrk.jpg

http://snag.gy/PQIrY.jpg

log
Code:
20:07:31 T:9776   DEBUG: CPythonInvoker(3, C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\default.py): start processing
20:07:31 T:9776  NOTICE: -->Python Interpreter Initialized<--
20:07:31 T:9776   DEBUG: CPythonInvoker(3, C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\default.py): the source file to load is "C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\default.py"
20:07:31 T:9776   DEBUG: CPythonInvoker(3, C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\default.py): setting the Python path to C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master;C:\Users\dumorim\AppData\Roaming\Kodi\addons\script.module.requests\lib;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
20:07:31 T:9776   DEBUG: CPythonInvoker(3, C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\default.py): entering source directory C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master
20:07:31 T:9776   DEBUG: CPythonInvoker(3, C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\default.py): instantiating addon using automatically obtained id of "plugin.video.surveillanceroom" dependent on version 2.19.0 of the xbmc.python api
20:07:32 T:9776   DEBUG: LocalizeStrings: no translation available in currently set gui language, at path C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\resources\language\Portuguese (Brazil)
20:07:32 T:9776   DEBUG: LocalizeStrings: no strings.po file exist at C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\resources\language\English, fallback to strings.xml
20:07:32 T:9776    INFO: CPythonInvoker(3, C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom-master\default.py): script successfully run
20:07:32 T:8936   DEBUG: Loading settings for rtsp://192.168.0.151:554
20:07:32 T:8936   DEBUG: CPlayerCoreFactory::GetPlayers(rtsp://192.168.0.151:554/)
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/mms/udp
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
20:07:32 T:8936   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
20:07:32 T:8936   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
20:07:32 T:8936   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
20:07:32 T:8936   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
20:07:32 T:8936   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
20:07:32 T:8936   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
20:07:32 T:8936   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
20:07:32 T:8936  NOTICE: DVDPlayer: Opening: rtsp://192.168.0.151:554/
20:07:32 T:8936 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:07:32 T:8936   DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
20:07:32 T:8936  NOTICE: DXVA::CProcessorHD::PreInit - The Direct3d device doesn't support DXVA-HD.
20:07:32 T:8936  NOTICE: CWinRenderer::Preinit - could not init DXVA-HD processor - skipping
20:07:32 T:8936   DEBUG: DXVA - checking samples array size using 842094158 render target
20:07:32 T:8936   DEBUG: DXVA - updated maximum samples count to 2
20:07:32 T:8936   DEBUG: DXVA - checking samples array size using 842094169 render target
20:07:32 T:9776    INFO: Python script stopped
20:07:32 T:9776   DEBUG: Thread LanguageInvoker 9776 terminating
20:07:32 T:8284  NOTICE: Thread DVDPlayer start, auto delete: false
20:07:32 T:8284  NOTICE: Creating InputStream
20:07:32 T:8284  NOTICE: Creating Demuxer
20:07:32 T:8284   DEBUG: ffmpeg[205C]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
20:07:32 T:8284   DEBUG: Previous line repeats 1 times.
20:07:32 T:8284   ERROR: ffmpeg[205C]: [rtsp] method DESCRIBE failed: 500 Internal Server Error
20:07:32 T:8284   DEBUG: Error, could not open file rtsp://192.168.0.151:554/
20:07:32 T:8284   ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
20:07:32 T:8284  NOTICE: CDVDPlayer::OnExit()
20:07:32 T:8284   DEBUG: CApplication::OnPlayBackStopped: play state was 1, starting 1
20:07:32 T:8284   DEBUG: Thread DVDPlayer 8284 terminating
20:07:32 T:8936   DEBUG: CApplication::OnPlayBackStopped: play state was 3, starting 0
20:07:32 T:8936   DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
20:07:32 T:8936   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
20:07:32 T:8936  NOTICE: CDVDPlayer::CloseFile()
20:07:32 T:8936  NOTICE: DVDPlayer: waiting for threads to exit
20:07:32 T:8936  NOTICE: DVDPlayer: finished waiting
20:07:32 T:8936  NOTICE: CDVDPlayer::CloseFile()
20:07:32 T:8936  NOTICE: DVDPlayer: waiting for threads to exit
20:07:32 T:8936  NOTICE: DVDPlayer: finished waiting
20:07:35 T:5064   DEBUG: CTextureCacheJob::GetImageHash - unable to stat url C:\Users\dumorim\AppData\Roaming\Kodi\addons\plugin.video.surveillanceroom\resources\media\icon-advanced-menu.png
20:07:37 T:8936   DEBUG: Keyboard: scancode: 0x5b, sym: 0x0137, unicode: 0x0000, modifier: 0x10
20:07:37 T:8936   DEBUG: CInputManager::OnKey: win-leftwindows (0x10f0d6) pressed, action is
20:07:37 T:8936   DEBUG: ------ Window Deinit (Pointer.xml) ------
20:07:37 T:8936   DEBUG: ------ Window Init (Pointer.xml) ------
20:07:37 T:8936   DEBUG: CWinEventsWin32::WndProcWindow is active
20:07:37 T:8936   DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Windows\explorer.exe
Reply
#54
Hello dumorim! Thanks for giving this add-on a try.

The issue appears to be coming directly from the camera itself. We can see in the following log lines:

Code:
20:07:32 T:8284   ERROR: ffmpeg[205C]: [rtsp] method DESCRIBE failed: 500 Internal Server Error
20:07:32 T:8284   DEBUG: Error, could not open file rtsp://192.168.0.151:554/

Is this, 'rtsp://192.168.0.151:554', the correct link? For your generic camera, the Kodi player is trying to access it and is receiving the '500' response. What kind of camera is it?
Reply
#55
rather this is a correct ip camera that China may be the ip he is reading well rtsp://192.168.0.151:554/ or rtsp://192.168.0.151:554 ? because at the end of this bar can give error

I think the mistake here is the
is correct = rtsp://192.168.0.153:554
and not so rtsp://192.168.0.153:554 / plus automatic link is generated as do I take this bar in the end?
Reply
#56
The '/' is added from Kodi itself and I don't have any control over that. Can you confirm that this address has worked for another player? Could you create a .strm file with this link and have Kodi play it?
Reply
#57
I could play well for the kodi in

.strm

rtsp://192.168.0.153:554//ucast/11
Reply
#58
Great! For this add-on, that would be the same URL you would want to use in the Video Stream URL setting. If you discover that your camera supports MJPEG or Snapshots then you can use the URLs for extra functions.
Reply
#59
it works in FFMPEG but not NJPEG

I would have put support for FFMPEG ?
Reply
#60
I am trying to get the overlay to load from a remote system. I tried


curl -s --data-binary '{"jsonrpc": "2.0", "method": "Addons.ExecuteAddon","params":{"addonid":"plugin.video.surveillanceroom","params":{"action":"show_preview","camera_number":"1"}}, "id":1}' -H 'content-type: application/json;' http://192.168.0.30/jsonrpc


It does load the overlay, however it also opens the plugin menu gui.......I tried to send the fullscreen command to get around this, but it doesn't work.


Any recommendations?
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 31

Logout Mark Read Team Forum Stats Members Help
Surveillance Room - Your IP Camera Companion with extra Foscam HD Support7