KoynovStas / onvif_srvd

ONVIF Device(IP camera) Service server (Linux daemon)
GNU General Public License v2.0
277 stars 115 forks source link

Add other parameters... #5

Open alezdakidd opened 6 years ago

alezdakidd commented 6 years ago

Hi, I have devices that need "frame rate" and "quality" and "birate" fields. Without these fields do not work ... :( Is there a possibility to add thi fields? Thanks

KoynovStas commented 6 years ago

Hey. This daemon is the minimal implementation for the JPEG format. Most ONVIF customers are "hammered" by these parameters !.

But you can easily add it. You need to add this functionality to the function: StreamProfile::get_video_enc_cfg

See how I add parameters for the type or name. you will need to add quality. "frame rate" is a bit more complicated, see enc_cfg->RateControl = soap_new_req_tt__VideoRateControl (soap, 0, 0, 0); you will need to create a tt__VideoRateControlwith the parameters you need. These parameters can also be added via cmd.