Configuring FFMPEG type with PTZ control

Forum for questions and support relating to the 1.25.x releases only.
Locked
cgprasad
Posts: 37
Joined: Tue May 24, 2011 7:59 am

Configuring FFMPEG type with PTZ control

Post by cgprasad »

Hi All
Has any body configured an IP cam ( H.264) using source type "ffmpeg" and not "remote"?

If yes, have you got any idea , about controlling the PTZ function, from the control type drop-down list.?

I've not been able to see any control type in the drop down list, while configuring the IP camera ( h.264) using ffmpeg as source type. Although I can see the drop down list , if i configure the same camera by using "remote" in the source type. But since the cam is h264 ( not mjpg) i'm unable to configure the remote host path.

Weird situation.
Hope somebody can help.

Regards
Prasad
oltas
Posts: 3
Joined: Fri Feb 17, 2012 8:32 am

Re: Configuring FFMPEG type with PTZ control

Post by oltas »

Hello,

I did it with a Foscam 9280W.
Create a new Monitor with source type remote and select the control type for this camera. Check if you can control the camera. If it works ok.
Open the ZM database with phpmyadmin and find the value of controlid for the remote monitor. Put this number in the controlid field of the ffmpeg monitor.
It's dirty but it works here.
It would better if somebody is able to change the config part of ZM, that it would be possible to select a control type with ffmpeg.

Regards
oltas
cgprasad
Posts: 37
Joined: Tue May 24, 2011 7:59 am

Re: Configuring FFMPEG type with PTZ control

Post by cgprasad »

Thanks a ton Oltas
Will surely try this out and revert.

Regards
Prasad
cgprasad
Posts: 37
Joined: Tue May 24, 2011 7:59 am

Re: Configuring FFMPEG type with PTZ control

Post by cgprasad »

oltas wrote:Hello,

I did it with a Foscam 9280W.
Create a new Monitor with source type remote and select the control type for this camera. Check if you can control the camera. If it works ok.
Open the ZM database with phpmyadmin and find the value of controlid for the remote monitor. Put this number in the controlid field of the ffmpeg monitor.
It's dirty but it works here.
It would better if somebody is able to change the config part of ZM, that it would be possible to select a control type with ffmpeg.

Regards
oltas

Hi Oltas.
By "controlid" field in the ffmpeg monitor, you mean the "control devide" field. Hope i'm correct.

Thanks
Prasad
cgprasad
Posts: 37
Joined: Tue May 24, 2011 7:59 am

Re: Configuring FFMPEG type with PTZ control

Post by cgprasad »

cgprasad wrote:
oltas wrote:Hello,

I did it with a Foscam 9280W.
Create a new Monitor with source type remote and select the control type for this camera. Check if you can control the camera. If it works ok.
Open the ZM database with phpmyadmin and find the value of controlid for the remote monitor. Put this number in the controlid field of the ffmpeg monitor.
It's dirty but it works here.
It would better if somebody is able to change the config part of ZM, that it would be possible to select a control type with ffmpeg.

Regards
oltas

Hi Oltas.
By "controlid" field in the ffmpeg monitor, you mean the "control devide" field. Hope i'm correct.

Thanks
Prasad
Hi again

One more issue that i face, especially with FI8620 is that, this a pure H.264 camera. So i cannot configure it with "remote" option , as I don't know what to put in the "remote host path" option.
With ffmpeg, the source path of "rtsp://user:pass@ip/11" works well.
So even if i get the "remote" option selected, without providing proper "remote host path" I am not able to see the cam view, although i get the controls enabled ( i use pelco-D as mentioned by FOSCAM guys). So i can't test whether the controls works, in case i select the "remote" option.

Neverthless I found out the "controlid" in the ZM database, for the camera configured using "remote" and the control field as "pelco-d" . The controlid shown is "1" .

I then configured "ffmpeg" and in the ZM-monitor database for the ffmpeg-configured monitor, i inserted "controlid" as "1".
The controld were visible, but the control clicks weren't functioning. Also i observed that ZM console takes lot of time to give output for any click. It just keeps spinning the wheel on the menubar. I mean response it very very slow.

Hope you can guide further.

Thanks & Regards
Prasad
oltas
Posts: 3
Joined: Fri Feb 17, 2012 8:32 am

Re: Configuring FFMPEG type with PTZ control

Post by oltas »

Hello,

I modified the Axis control, give it the name "FoscamV2.pm" and put it in /usr/share/perl5/ZoneMinder/Control/ where the others pm modules are in my sytem (debian/sid).

Rename the file to FoscamV2.pm
oltas
Posts: 3
Joined: Fri Feb 17, 2012 8:32 am

Re: Configuring FFMPEG type with PTZ control

Post by oltas »

I am not able to upload the file. Send me an PM the I will send you the file via email.

Regards

oltas
cgprasad
Posts: 37
Joined: Tue May 24, 2011 7:59 am

Re: Configuring FFMPEG type with PTZ control

Post by cgprasad »

Hi Oltas

Thanks for that script and guidance.
I copied the same in the /usr/share/perl5/ZoneMinder/Control path.
Configured two monitors namely one with "remote" option selecting the FoscamV2.pm as the control device and another monitor with "ffmpeg" .
Found out the "controlid" of the "remote" monitor to be "15" from the "zm" database.
Configured the same in the "ffmpeg" zm database.

First of all I checked with the "remote" configured monitor. I could not get the view because the FI8620 cam doesn't support mjpeg streaming. But the controls were visble from the monitor window.
Similarly I checked with the "ffmpeg" configured monitor. I could see the live view, but when i clicked on the control tab, I could see all the controls , but could not move any of the buttons.

This happened only for that very first time. Sometime later , entire ZM gets freezed. None of the windows opens. Even the logout window takes lot of time.

Don't know whats the trouble.

Regards
Prasad
cgprasad
Posts: 37
Joined: Tue May 24, 2011 7:59 am

Re: Configuring FFMPEG type with PTZ control

Post by cgprasad »

oltas wrote:I am not able to upload the file. Send me an PM the I will send you the file via email.

Regards

oltas

HI Oltas
Now i get this message whenever i click on any of the control. I quote the message

"Control response was status = undefined
message = /usr/bin/zmcontrol.pl --autostop --command=moveConUp --id=10=>"

CAn you debug that.

Regards
Prasad
JonatanGarces
Posts: 3
Joined: Sun Feb 16, 2014 10:28 pm

Re: Configuring FFMPEG type with PTZ control

Post by JonatanGarces »

Hi! I'm configuring a hikvision speed dome camera and the source i tried with are remote rtp/rtsp and ffmpeg with success,
but the ptz won't work , so i connect the camera rs485 to the usb port of my laptop ( between them a usb to serial cable a rs232 to a rs485 converter )
how can i make it work a local control device , with the source ffmpeg or remote?
can both be mixed?
THANKS!
Locked