2016-04-18, 20:45
Awesome work maikito26 much better than the old foscam HD plugin
Cheers!
Cheers!
(2016-04-28, 14:01)maikito26 Wrote: @ogremalfeitor
It's an error in my codeSorry!
Update file: /resources/lib/ipcam_api_foscamhd.py
Line 808:
From:
super(FoscamCamera, self).init(camera_settings, daemon = False, verbose = True)
To:
super(FoscamCameraOverride, self).init(camera_settings, daemon = False, verbose = True)
Quote: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?
(2016-03-14, 04:56)dogfather9 Wrote: Hi maikito26,
I just installed your plugin (version 1.2.3 from your repo) and I am having difficulty getting it to work. Here is my setup:
Kodi (Jarvis) installed on Win 8.1 pc
Video output is set at 1080p @24
Camera:
Trendnet TV-IP320PI (1.3 Mp)
(h.264) RSTP URL: rstp://user:pass@IP:554
(MPEG) RSTP URL: rstp://user:pass@IP:554/Streaming/Channels/2
Both RSTP URLS are confirmed working in VLC and Kodi using a .strm file
I installed the plugin and enabled camera 1 in the configuration. I also disabled preview for the camera. Then I attempt to start the stream through the plugin. The feed starts (I can see the picture) but then it either stops immediately or it gives me an error - " One or more files failed to play"
Here is the output from the log:
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: SERVICE :: **START**
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: SERVICE :: Log Level: Verbose
22:16:33 T:4928 NOTICE: Stream All The Sources: Service: Installed Version: 2.0.1
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: SERVICE :: Python Version: 2.7.8 (default, Jun 30 2014, 16:03:49) [MSC v.1500 32 bit (Intel)]; At Least 2.7: True
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: Enabled: True; Preview Enabled: False
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 2 :: Enabled: False; Preview Enabled: False
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 3 :: Enabled: False; Preview Enabled: False
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 4 :: Enabled: False; Preview Enabled: False
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 5 :: Enabled: False; Preview Enabled: False
22:16:33 T:4164 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 6 :: Enabled: False; Preview Enabled: False
22:17:25 T:3092 NOTICE: plugin.video.surveillanceroom v1.2.3: REQUEST :: Params: {'content_type': 'video'}
22:17:25 T:3092 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: Checking previous camera test connection result...
22:17:25 T:3656 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.surveillanceroom/?action=all_cameras
22:17:25 T:704 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.surveillanceroom/?action=single_camera&camera_number=1
22:17:29 T:704 WARNING: Previous line repeats 1 times.
22:17:29 T:704 ERROR: CImageLoader:oWork - Direct texture file loading failed for resource://resource.images.studios.white/
22:17:36 T:1936 NOTICE: plugin.video.surveillanceroom v1.2.3: REQUEST :: Params: {'action': 'single_camera', 'camera_number': '1'}
22:17:36 T:1936 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: Checking previous camera test connection result...
22:17:36 T:1936 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: Name: Basement 1; Url: rtsp://admin:[email protected]:554
22:17:36 T:1936 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: *** Playing Fullscreen *** URL: rtsp://admin:[email protected]:554
22:17:36 T:1520 NOTICE: DVDPlayer: Opening: rtsp://USERNAME[email protected]:554/
22:17:36 T:1520 WARNING: CDVDMessageQueue(player):ut MSGQ_NOT_INITIALIZED
22:17:36 T:3868 NOTICE: Creating InputStream
22:17:36 T:3868 NOTICE: Creating Demuxer
22:17:37 T:3868 NOTICE: Opening stream: 0 source: 256
22:17:37 T:3868 NOTICE: Creating video codec with codec id: 28
22:17:37 T:3868 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
22:17:37 T:3868 NOTICE: Creating video thread
22:17:37 T:3868 ERROR: CSelectionStreams::Get - failed to get stream
22:17:37 T:3868 WARNING: CDVDMessageQueue(audio):ut MSGQ_NOT_INITIALIZED
22:17:37 T:940 NOTICE: running thread: video_thread
22:17:37 T:940 NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating DXVA(1280x960)
22:17:38 T:4928 NOTICE: Stream All The Sources: Service: Playback started
22:17:38 T:2280 NOTICE: 1Channel: Service: Playback started
22:17:38 T:940 NOTICE: fps: 29.916667, pwidth: 1280, pheight: 960, dwidth: 1280, dheight: 960
22:17:38 T:940 NOTICE: Display resolution DESKTOP : 1920x1080@ 24.00 - Full Screen (16)
22:17:38 T:940 NOTICE: D3D: rendering method forced to DXVA processor
22:17:38 T:940 NOTICE: DXVA::CProcessorHD::InitProcessor - Supported deinterlace methods: Blend:no, Bob:yes, Adaptive:yes, MoComp:yes.
22:17:38 T:1520 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.surveillanceroom/?action=single_camera&camera_number=1]
22:17:38 T:1520 WARNING: CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer
22:17:38 T:1520 NOTICE: CDVDPlayer::CloseFile()
22:17:38 T:1520 NOTICE: DVDPlayer: waiting for threads to exit
22:17:38 T:3868 NOTICE: CDVDPlayer::OnExit()
22:17:38 T:3868 NOTICE: Closing stream player 2
22:17:38 T:3868 NOTICE: waiting for video thread to exit
22:17:38 T:940 NOTICE: thread end: video_thread
22:17:38 T:3868 NOTICE: deleting video codec
22:17:38 T:3868 NOTICE: DXVA::CDecoder::Close - closing decoder
22:17:38 T:3868 NOTICE: DXVA::Close - closing decoder context
22:17:38 T:1520 NOTICE: DVDPlayer: finished waiting
22:17:38 T:1520 NOTICE: CDVDPlayer::CloseFile()
22:17:38 T:1520 NOTICE: DVDPlayer: waiting for threads to exit
22:17:38 T:1520 NOTICE: DVDPlayer: finished waiting
22:17:39 T:4928 NOTICE: Stream All The Sources: Service: Playback Stopped
22:17:39 T:4928 ERROR: EXCEPTION: XBMC is not playing any media file
22:17:39 T:2280 NOTICE: 1Channel: Service: Playback Stopped
22:17:39 T:2280 NOTICE: 1Channel: Service: Resetting...
22:17:39 T:1140 WARNING: Attempt to use invalid handle 10
22:17:39 T:1140 WARNING: Previous line repeats 26 times.
22:17:39 T:1140 NOTICE: finished
22:19:07 T:968 ERROR: CImageLoader:oWork - Direct texture file loading failed for resource://resource.images.studios.white/
22:19:09 T:2792 NOTICE: plugin.video.surveillanceroom v1.2.3: REQUEST :: Params: {'action': 'single_camera', 'camera_number': '1'}
22:19:09 T:2792 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: Checking previous camera test connection result...
22:19:09 T:2792 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: Name: Basement 1; Url: rtsp://admin:[email protected]:554
22:19:09 T:2792 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: *** Playing Fullscreen *** URL: rtsp://admin:[email protected]:554
22:19:09 T:1520 NOTICE: DVDPlayer: Opening: rtsp://USERNAME[email protected]:554/
22:19:09 T:1520 WARNING: CDVDMessageQueue(player):ut MSGQ_NOT_INITIALIZED
22:19:09 T:5016 NOTICE: Creating InputStream
22:19:09 T:5016 NOTICE: Creating Demuxer
22:19:11 T:5016 NOTICE: Opening stream: 0 source: 256
22:19:11 T:5016 NOTICE: Creating video codec with codec id: 28
22:19:11 T:5016 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
22:19:11 T:5016 NOTICE: Creating video thread
22:19:11 T:5016 ERROR: CSelectionStreams::Get - failed to get stream
22:19:11 T:5016 WARNING: CDVDMessageQueue(audio):ut MSGQ_NOT_INITIALIZED
22:19:11 T:280 NOTICE: running thread: video_thread
22:19:11 T:280 NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating DXVA(1280x960)
22:19:11 T:4928 NOTICE: Stream All The Sources: Service: Playback started
22:19:11 T:2280 NOTICE: 1Channel: Service: Playback started
22:19:11 T:280 NOTICE: fps: 29.970030, pwidth: 1280, pheight: 960, dwidth: 1280, dheight: 960
22:19:11 T:280 NOTICE: Display resolution DESKTOP : 1920x1080@ 24.00 - Full Screen (16)
22:19:11 T:280 NOTICE: D3D: rendering method forced to DXVA processor
22:19:11 T:280 NOTICE: DXVA::CProcessorHD::InitProcessor - Supported deinterlace methods: Blend:no, Bob:yes, Adaptive:yes, MoComp:yes.
22:19:11 T:1520 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.surveillanceroom/?action=single_camera&camera_number=1]
22:19:11 T:1520 WARNING: CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer
22:19:14 T:1520 NOTICE: CDVDPlayer::CloseFile()
22:19:14 T:1520 NOTICE: DVDPlayer: waiting for threads to exit
22:19:14 T:5016 NOTICE: CDVDPlayer::OnExit()
22:19:14 T:5016 NOTICE: Closing stream player 2
22:19:14 T:5016 NOTICE: waiting for video thread to exit
22:19:14 T:280 NOTICE: thread end: video_thread
22:19:14 T:5016 NOTICE: deleting video codec
22:19:14 T:5016 NOTICE: DXVA::CDecoder::Close - closing decoder
22:19:14 T:5016 NOTICE: DXVA::Close - closing decoder context
22:19:14 T:1520 NOTICE: DVDPlayer: finished waiting
22:19:14 T:1520 NOTICE: CDVDPlayer::CloseFile()
22:19:14 T:1520 NOTICE: DVDPlayer: waiting for threads to exit
22:19:14 T:1520 NOTICE: DVDPlayer: finished waiting
22:19:14 T:1520 ERROR: Control 50 in window 10025 has been asked to focus, but it can't
22:19:15 T:2280 NOTICE: 1Channel: Service: Playback Stopped
22:19:15 T:4928 NOTICE: Stream All The Sources: Service: Playback Stopped
22:19:15 T:2280 NOTICE: 1Channel: Service: Resetting...
22:19:17 T:3192 NOTICE: plugin.video.surveillanceroom v1.2.3: REQUEST :: Params: {'content_type': 'video'}
22:19:17 T:3192 NOTICE: plugin.video.surveillanceroom v1.2.3: Camera 1 :: Checking previous camera test connection result...
22:19:17 T:968 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.surveillanceroom/?action=all_cameras
22:19:17 T:968 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.surveillanceroom/?action=single_camera&camera_number=1
Any help would be appreciated
Thanks!
V.