Best way to use lirc to get pip of security camera

Support and queries relating to all previous versions of ZoneMinder
Locked
ketsu
Posts: 12
Joined: Mon Jan 12, 2009 5:43 am

Best way to use lirc to get pip of security camera

Post by ketsu »

I have managed to add zoneminder (1.23.3) to my current (ubuntu intrepid) mythtv (0.21) box.

I want to push a button on my remote control and bring up a small viewer of my zoneminder camera(s). Lirc is currently working fine with mythtv. I am planning on using irexec to run the command to bring up the viewer. I use my mythtv box in my workspace, and am usualy playing music or videos. when I hear a sound outside or the doorbell rings, I would like to have a quick way to check it out. Mythtv does have a zoneminder plugin, but it only works when watching live tv. I built my mythtv box so I wouldn't have to watch live tv.

The problem is the xlib_shm brings up a full screen view. I would like to have the viewer be smaller and the video playing still be visable.

xlib_raw seemed to bring up a box like what I want, like a small Mplayer window. But it doesn't seem to work with 1.23.3 (only black screen)

I have a harmony 880 remote with lots of extra buttons I could use for different views. At this time I only have 1 camera but am looking to add more.

What would be the best way to bring up a small viewer of my camera from my remote while still being able to see what is playing on the TV?

Thank you for your time.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You would likely need to create a new app or modify xlib_shm to get the behavior you want.
Might want to shoot a note to the developer for mythzm plugin as I would think they would have already had similar functionality regardless of whether your watching live or recorded shows.
ketsu
Posts: 12
Joined: Mon Jan 12, 2009 5:43 am

Post by ketsu »

Apparently, and I could be wrong here at any time, the mythtv plugin is more for viewing and dealing with events. Which is pretty cool. It also offers a "live" view from within mythtv, but not while viewing other video (music would be possible).

To get the PIP to work, you set up the camera as an input and use the PIP in mythtv, not the plugin. (which only works while watching live tv)

Could I open a small firefox window with the camera view without it just going to the normal console that comes up?

Maybe I should just suck it up and set it up with xlib_shm now, and maybe down the road try to figure out how to change it to get the view I want.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You could do it in firefox, I would also think it's might slightly be possible with xlib but done drastically different.

Code: Select all

firefox -width 320 -height 240 http://localhost/cgi-bin/nph-zms?mode=jpeg&monitor=1&scale=50&maxfps=5
Where with xlib you I think if you can't use the scaling as described in the readme you can force the size in x though I could not even begin to recall the syntax to do it, :lol:
Locked