2015-06-18, 02:31
(2015-06-17, 20:41)speed32219 Wrote: Trying this addon using Gotham 13.4 and ip.cam version 0.0.3 running on a rk3188 droid device using a foscam FI8918W. Running the addon displays nothing on the screen except an X a the top right of screen and depending on the url setting I get an http: 22. Same error using win7 kodi ver 2. Plugging http://192.168.1.119:8082/snapshot.cgi?&...&pwd=12345 into chrome browser or comodo dragon browsers I receive a 20KB JPEG image from the foscam FI8918W.
error 22 snapshot
http://192.168.1.119:8082/snapshot.cgi?&...&pwd=12345
Code:14:01:10 T:1074163584 DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
14:01:10 T:1074163584 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
14:01:10 T:1839301424 NOTICE: Thread GUIDialogCache start, auto delete: true
14:01:10 T:1074163584 INFO: void XCURL::DllLibCurlGlobal::easy_aquire(const char*, const char*, XCURL::CURL_HANDLE**, XCURL::CURLM**) - Created session to http://192.168.1.119
14:01:12 T:1074163584 ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://192.168.1.119:8082/snapshot.cgi?&usr=test&pwd=12345
14:01:12 T:1074163584 DEBUG: CCurlFile::GetMimeType - http://192.168.1.119:8082/snapshot.cgi?&usr=test&pwd=12345 -> failed
14:01:12 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers(http://192.168.1.119:8082/snapshot.cgi?&usr=test&pwd=12345)
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
14:01:12 T:1839301424 DEBUG: Thread GUIDialogCache 1839301424 terminating (autodelete)
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/mms/udp
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
14:01:12 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
14:01:12 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
14:01:12 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
14:01:12 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
14:01:12 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
14:01:12 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
14:01:12 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
14:01:12 T:1074163584 NOTICE: DVDPlayer: Opening: http://192.168.1.119:8082/snapshot.cgi?&usr=test&pwd=12345
14:01:12 T:1074163584 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:01:12 T:1074163584 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
14:01:12 T:1074163584 DEBUG: LinuxRendererGL: Cleaning up GL resources
14:01:12 T:1856861224 NOTICE: Thread DVDPlayer start, auto delete: false
14:01:12 T:1856861224 NOTICE: Creating InputStream
14:01:12 T:1856861224 DEBUG: CFileCache::Open - opening <snapshot.cgi> using cache
14:01:12 T:1856861224 DEBUG: CurlFile::Open(0x715713c0) http://192.168.1.119:8082/snapshot.cgi?&usr=test&pwd=12345
14:01:12 T:1856861224 ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
14:01:12 T:1856861224 NOTICE: CCurlFile::FillBuffer - Reconnect, (re)try 1
14:01:12 T:1856861224 ERROR: CCurlFile::FillBuffer - Failed: HTTP response code said error(22)
14:01:12 T:1856861224 ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
14:01:12 T:1856861224 ERROR: virtual bool XFILE::CFileCache::Open(const CURL&) - failed to open source <http://192.168.0.9:8081/snapshot.cgi?&usr=admin&pwd=Corinne1>
14:01:12 T:1856861224 ERROR: CDVDPlayer::OpenInputStream - error opening [http://192.168.1.119:8082/snapshot.cgi?&usr=test&pwd=12345]
14:01:12 T:1856861224 NOTICE: CDVDPlayer::OnExit()
14:01:12 T:1856861224 NOTICE: CDVDPlayer::OnExit() deleting input stream
14:01:12 T:1856861224 DEBUG: virtual void CApplication::OnPlayBackStopped() : play state was 1, starting 1
14:01:12 T:1856861224 DEBUG: Thread DVDPlayer 1856861224 terminating
14:01:12 T:1074163584 DEBUG: virtual void CApplication::OnPlayBackStopped() : play state was 3, starting 0
14:01:12 T:1074163584 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
14:01:12 T:1074163584 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
no error 22 but demuxer error if I change the snapshot.cgi to snap.htm taken from snapshot menu from camera
3. http://test:[email protected]:8082/snap.htm
Code:14:18:43 T:1901419840 NOTICE: script.ipcam v0.0.3: http://192.168.1.119:8082/snap.htm
14:18:43 T:1074163584 DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc
14:18:43 T:1074163584 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnClear
14:18:43 T:1901287872 NOTICE: Thread GUIDialogCache start, auto delete: true
14:18:43 T:1074163584 INFO: void XCURL::DllLibCurlGlobal::easy_aquire(const char*, const char*, XCURL::CURL_HANDLE**, XCURL::CURLM**) - Created session to http://192.168.0.9
14:18:43 T:1074163584 DEBUG: CCurlFile::GetMimeType - http://192.168.1.119:8082/snap.htm -> x-directory/normal
14:18:43 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers(http://192.168.1.119:8082/snap.htm)
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/mms/udp
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
14:18:43 T:1074163584 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
14:18:43 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
14:18:43 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
14:18:43 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
14:18:43 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
14:18:43 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
14:18:43 T:1074163584 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
14:18:43 T:1074163584 NOTICE: DVDPlayer: Opening: http://192.168.1.119:8082/snap.htm
14:18:43 T:1074163584 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:18:43 T:1074163584 DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
14:18:43 T:1074163584 DEBUG: LinuxRendererGL: Cleaning up GL resources
14:18:43 T:1900305576 NOTICE: Thread DVDPlayer start, auto delete: false
14:18:43 T:1901287872 DEBUG: Thread GUIDialogCache 1901287872 terminating (autodelete)
14:18:43 T:1900305576 NOTICE: Creating InputStream
14:18:43 T:1900305576 DEBUG: CFileCache::Open - opening <snap.htm> using cache
14:18:43 T:1900305576 DEBUG: CurlFile::Open(0x71194e40) http://192.168.1.119:8082/snap.htm
14:18:43 T:1689991720 NOTICE: Thread FileCache start, auto delete: false
14:18:43 T:1689991720 INFO: CFileCache::Process - Hit eof.
14:18:43 T:1900305576 NOTICE: Creating Demuxer
14:18:43 T:1900305576 [b]ERROR: bool CDVDDemuxFFmpeg::Open(CDVDInputStream*) - error probing input format, http://192.168.1.119:8082/snap.htm[/b]
14:18:43 T:1900305576 [b]ERROR: bool CDVDPlayer::OpenDemuxStream() - Error creating demuxer[/b]
14:18:43 T:1900305576 NOTICE: CDVDPlayer::OnExit()
14:18:43 T:1900305576 NOTICE: CDVDPlayer::OnExit() deleting input stream
14:18:43 T:1689991720 DEBUG: Thread FileCache 1689991720 terminating
14:18:43 T:1900305576 DEBUG: virtual void CApplication::OnPlayBackStopped() : play state was 1, starting 1
14:18:43 T:1074163584 DEBUG: virtual void CApplication::OnPlayBackStopped() : play state was 3, starting 0
14:18:43 T:1900305576 DEBUG: Thread DVDPlayer 1900305576 terminating
14:18:43 T:1074163584 DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
14:18:43 T:1074163584 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
I have tried various url possibilities. including no user or pwd but all fail. The falure I get with no usr or pwd is:
ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://192.168.1.119:8082/snapshot.cgi
Edit: Dropped the http:// of the url in the ip.cam addon and this is my new error.
ERROR: virtual bool XFILE::CFileCache::Open(const CURL&) - failed to open source <192.168.1.119:8082/snapshot.cgi>
Any advice would be appreciated.
For some reason libcurl is failing to connect to the specified URL. I believe the "HTTP response code said error(22)" may indicate an HTTP response >= 400.
There isn't a lot more info to go off of in the logs. If you have command line access to the linux device you could try executing curl directly against the endpoints to see if you get any more info. You could also try to run a packet capture (ie Wireshark) to see if you can find the request and subsequent server response. Knowing what the request/response look like might shed more light on the issue.