Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In testcard, background image not available when PTZ_server.py first run #146

Open
rjsdotorg opened this issue Dec 2, 2022 · 0 comments

Comments

@rjsdotorg
Copy link

rjsdotorg commented Dec 2, 2022

After a boot, the first time PTZ_server.py is run the still image is "NO SIGNAL" in OnVif Device Manager, for instance.
Stopping and restarting allows the image to appear in clients.

The difference in STDIO is

node >> PTZ Driver - Socket closed
node >> device_service started
node >> Starting rtsp server
node >> media_service started
node >> imaging_service started

vs

node >> PTZ Driver - Socket closed
node >> device_service started
node >> ptz_service started
node >> imaging_service started

Full output -
On first start, output is:

node Returned Object Type : <subprocess.Popen object at 0x7615f210>
node Process ID : 2083
node Return Code : None

node Output Stream : 
node >> Read IP address 192.168.0.120 from eth0
node >> Manufacturer : Raspberry Pi
node >> Model : 3 B+
node >> HardwareId : SAI
node >> SerialNumber : 000000002537ede4
node >> FirmwareVersion : 2.1.0
node >> PTZ Driver connecting to 127.0.0.1:8089
node >> PTZ Driver connecting to 127.0.0.1:8089
node >> Starting camera settings webserver on http://192.168.0.120:8082/
node >> Could not retrieve Controlvalue 'brightness'
node >> Could not retrieve Controlvalue 'contrast'
node >> Could not retrieve Controlvalue 'saturation'
node >> Could not retrieve Controlvalue 'red_balance'
node >> Could not retrieve Controlvalue 'blue_balance'
node >> Could not retrieve Controlvalue 'horizontal_flip'
node >> Could not retrieve Controlvalue 'vertical_flip'
node >> Could not retrieve Controlvalue 'power_line_frequency'
node >> Could not retrieve Controlvalue 'sharpness'
node >> Could not retrieve Controlvalue 'color_effects'
node >> Could not retrieve Controlvalue 'rotate'
node >> Could not retrieve Controlvalue 'color_effects_cbcr'
node >> Could not retrieve Controlvalue 'video_bitrate_mode'
node >> Could not retrieve Controlvalue 'video_bitrate'
node >> Could not retrieve Controlvalue 'repeat_sequence_header'
node >> Could not retrieve Controlvalue 'h264_i_frame_period'
node >> Could not retrieve Controlvalue 'h264_level'
node >> Could not retrieve Controlvalue 'h264_profile'
node >> Could not retrieve Controlvalue 'auto_exposure'
node >> Could not retrieve Controlvalue 'exposure_time_absolute'
node >> Could not retrieve Controlvalue 'exposure_dynamic_framerate'
node >> Could not retrieve Controlvalue 'auto_exposure_bias'
node >> Could not retrieve Controlvalue 'white_balance_auto_preset'
node >> Could not retrieve Controlvalue 'image_stabilization'
node >> Could not retrieve Controlvalue 'iso_sensitivity'
node >> Could not retrieve Controlvalue 'exposure_metering_mode'
node >> Could not retrieve Controlvalue 'scene_mode'
node >> Could not retrieve Controlvalue 'compression_quality'
node >> Binding DeviceService to http://192.168.0.120:8082/onvif/device_service
node >> Binding MediaService to http://192.168.0.120:8082/onvif/media_service
node >> Binding PTZService to http://192.168.0.120:8082/onvif/ptz_service
node >> Binding ImagingService to http://192.168.0.120:8082/onvif/imaging_service
node >> discovery_service started
node >> PTZ Driver - Socket error
node >> PTZ Driver - Socket closed
node >> PTZ Driver - Reconnecting after error
node >> PTZ Driver connecting to 127.0.0.1:8089
node >> PTZ Driver - Socket error
node >> PTZ Driver - Socket closed
node >> PTZ Driver - Reconnecting after error
node >> PTZ Driver connecting to 127.0.0.1:8089
node >> PTZ Driver - Socket error
node >> PTZ Driver - Socket closed
node >> device_service started
node >> Starting rtsp server
node >> media_service started
node >> imaging_service started
node >> 

node Error Stream: 
node >>  : 1.0728836059570312e-05
    0.0001590251922607422

After Ctrl-C and restart:

node Returned Object Type : <subprocess.Popen object at 0x7613c1f0>
node Process ID : 2521
node Return Code : None

node Output Stream : 
node >> Read IP address 192.168.0.120 from eth0
node >> Manufacturer : Raspberry Pi
node >> Model : 3 B+
node >> HardwareId : SAI
node >> SerialNumber : 000000002537ede4
node >> FirmwareVersion : 2.1.0
node >> PTZ Driver connecting to 127.0.0.1:8089
node >> PTZ Driver connecting to 127.0.0.1:8089
node >> Starting camera settings webserver on http://192.168.0.120:8082/
node >> Could not retrieve Controlvalue 'brightness'
node >> Could not retrieve Controlvalue 'contrast'
node >> Could not retrieve Controlvalue 'saturation'
node >> Could not retrieve Controlvalue 'red_balance'
node >> Could not retrieve Controlvalue 'blue_balance'
node >> Could not retrieve Controlvalue 'horizontal_flip'
node >> Could not retrieve Controlvalue 'vertical_flip'
node >> Could not retrieve Controlvalue 'power_line_frequency'
node >> Could not retrieve Controlvalue 'sharpness'
node >> Could not retrieve Controlvalue 'color_effects'
node >> Could not retrieve Controlvalue 'rotate'
node >> Could not retrieve Controlvalue 'color_effects_cbcr'
node >> Could not retrieve Controlvalue 'video_bitrate_mode'
node >> Could not retrieve Controlvalue 'video_bitrate'
node >> Could not retrieve Controlvalue 'repeat_sequence_header'
node >> Could not retrieve Controlvalue 'h264_i_frame_period'
node >> Could not retrieve Controlvalue 'h264_level'
node >> Could not retrieve Controlvalue 'h264_profile'
node >> Could not retrieve Controlvalue 'auto_exposure'
node >> Could not retrieve Controlvalue 'exposure_time_absolute'
node >> Could not retrieve Controlvalue 'exposure_dynamic_framerate'
node >> Could not retrieve Controlvalue 'auto_exposure_bias'
node >> Could not retrieve Controlvalue 'white_balance_auto_preset'
node >> Could not retrieve Controlvalue 'image_stabilization'
node >> Could not retrieve Controlvalue 'iso_sensitivity'
node >> Could not retrieve Controlvalue 'exposure_metering_mode'
node >> Could not retrieve Controlvalue 'scene_mode'
node >> Could not retrieve Controlvalue 'compression_quality'
node >> Binding DeviceService to http://192.168.0.120:8082/onvif/device_service
node >> Binding MediaService to http://192.168.0.120:8082/onvif/media_service
node >> Binding PTZService to http://192.168.0.120:8082/onvif/ptz_service
node >> Binding ImagingService to http://192.168.0.120:8082/onvif/imaging_service
node >> discovery_service started
node >> PTZ Driver - Socket error
node >> PTZ Driver - Socket closed
node >> PTZ Driver - Reconnecting after error
node >> PTZ Driver connecting to 127.0.0.1:8089
node >> PTZ Driver - Socket error
node >> PTZ Driver - Socket closed
node >> PTZ Driver - Reconnecting after error
node >> PTZ Driver connecting to 127.0.0.1:8089
node >> PTZ Driver - Socket error
node >> PTZ Driver - Socket closed
node >> device_service started
node >> ptz_service started
node >> imaging_service started
node >> 

node Error Stream: 
node >>  : 9.059906005859375e-06
    0.00010418891906738281

rposConfig.json is

{
  "NetworkAdapters" : ["awdl0","eth0", "wlan0", "en0"], 
  "IpAddress" : "192.168.0.7",
  "ServicePort" : 8082,
  "Username" : "admin",
  "Password" : "pass",
  "CameraType" : "filesrc",
  "CameraDevice" : "/home/pi/rpos/test.jpg",
  "RTSPAddress" : "", "//":"Normally left blank. Used to set RTSP Server Address",
  "RTSPPort" : 8554,
  "RTSPName" : "h264",
  "MulticastEnabled"  : false, "MulticastEnabledComment" : "## Multicast is not supported for USB camera",
  "RTSPMulticastName" : "h264m",
  "MulticastAddress"  : "224.0.0.1",
  "MulticastPort"     : "10001",
  "RTSPServer" : 3, "RtspServerComment" : "## Select RTSP Server > 1:RPOS RTSP Server 2:V4L2 RTSP Server by mpromonet (auto selected if MulticastEnabled=true)",
  "PTZDriver" : "rposascii", "test ascii drv": "## valid values are none,tenx,pelcod,visca and pan-tilt-hat",
  "PTZOutput" : "tcp", "test tcp out": "## values are none (eg Tenx), serial and tcp",
  "PTZSerialPort" : "",
  "PTZSerialPortSettings" : { "baudRate":2400, "dataBits":8, "parity":"none", "stopBits":1 },
  "PTZOutputURL": "127.0.0.1:8089",
  "PTZCameraAddress": 1,
  "DeviceInformation" : {
    "Manufacturer" : "Raspberry Pi",
    "Model" : "3 B+",
    "HardwareId" : "SAI"
  },
  "logLevel" : 3, "logLevelComment": "## LogLevels are > 1:Error 2:Warning 3:Info 4:Debug",
  "logSoapCalls" : false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant