ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-probe.pl

Forum for questions and support relating to the 1.30.x releases only.
Locked
bisana
Posts: 23
Joined: Sun Nov 11, 2007 4:10 am

ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-probe.pl

Post by bisana »

Hi All,
I am trying out ZM (1.30.4) to work with Android phone. I have installed “IP-Webcam” on my lenova P1ma40 (Android 5.1, Kernel version 3.10.6s).
I have noticed that I can see the video
through the url “http://192.168.1.113:8080/
Also through the VLC Streaming
Also I can see the latest image shot through http://192.168.1.113:8080/shot.jpg

When I do a “/usr/bin/zmonvif-probe.pl profiles http://192.168.1.113:8080/onvif/device_service 1.1”
I get
root@zm:/var/log/zm# /usr/bin/zmonvif-probe.pl profiles http://192.168.1.113:8080/onvif/device_service 1.1
ERror cannot add_IPFilter
ERror cannot add_ZeroConfiguration
ERror cannot add_IPVersion6
ERror cannot add_DynDNS
ERror cannot add_DiscoveryResolve
ERror cannot add_DiscoveryBye
ERror cannot add_RemoteDiscovery
ERror cannot add_SystemBackup
ERror cannot add_SystemLogging
ERror cannot add_FirmwareUpgrade
ERror cannot add_SupportedVersions
Nothing returned ffrom get_PTZ
Nothing returned ffrom get_Events
h264_ulaw_320x240, h264_ulaw_320x240, H264, 320, 240, 30, rtsp://192.168.1.113:8080/h264_ulaw.sdp
jpeg_ulaw_320x240, jpeg_ulaw_320x240, JPEG, 320, 240, 30, rtsp://192.168.1.113:8080/jpeg_ulaw.sdp
Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-probe.pl line 256.

Guidance and advice requested on solving this issue, like to know why I am I getting message
Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-probe.pl line 256

Thanks
Joseph John
A Linux User
rockedge
Posts: 1198
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-prob

Post by rockedge »

You could give zmNinja a try. It is in the Google Store and is the one of best ZM interface for Android and has a good track record. Also desktop versions and for iPhone / iPad / iPod.
suknil
Posts: 8
Joined: Tue Jan 17, 2017 8:18 am
Location: Neustadt/Weinstraße

Re: ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-prob

Post by suknil »

bisana wrote: Thu Jul 13, 2017 9:02 am I have installed “IP-Webcam” on my lenova P1ma40 (Android 5.1, Kernel version 3.10.6s).
So you want to use your phone as a webcam, right?
rockedge
Posts: 1198
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-prob

Post by rockedge »

ahhh I see now! ripping through the posts I missed the facts! I have seen some solutions to streaming a phone camera and using ZM. Be interesting to see what suggestions pop up.
bisana
Posts: 23
Joined: Sun Nov 11, 2007 4:10 am

Re: ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-prob

Post by bisana »

iconnor wrote: Thu Jul 13, 2017 2:29 pm https://github.com/ZoneMinder/ZoneMinder/pull/1945 fixes the problem.
Thanks for the reply, I am lost here.
Does it mean the ZM repo has been update with the fixes or user have to do the fixes.
thanks
A Linux User
User avatar
iconnor
Posts: 3269
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-prob

Post by iconnor »

The PR has been merged to master and is available in the nightly builds and zmrepo I think.
bisana
Posts: 23
Joined: Sun Nov 11, 2007 4:10 am

Re: ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-prob

Post by bisana »

Thanks will try out and update
THANKS a lot
A Linux User
bisana
Posts: 23
Joined: Sun Nov 11, 2007 4:10 am

Re: ZM with mobile camera, getting error Can't call method "get_Encoding" on an undefined value at /usr/bin/zmonvif-prob

Post by bisana »

Did with the latest night built and it is working fine, I can get the images from the mobile camera
A Linux User
Locked