Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 2 years ago

Closed 2 years ago

#10174 closed Patch - Feature (fixed)

MythZoneminder - Mapped memory - Patch

Reported by: Argus <pthorn-mythd@…> Owned by: paulh
Priority: minor Milestone: 0.25
Component: Plugin - MythZoneminder Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Mythzmserver doesn't support memory mapped Zoneminder installations, which have become the default in recent releases (1.24.4). For instance, after an upgrade to Ubuntu Oneiric, the zoneminder apt package is compiled with mmap support by default, which no longer interoperates with mythzmserver out of the box.

As a workaround, the Mythzoneminder wiki entry is clear about this and suggests the recompile and installation of Zoneminder from source using shared memory options, which should work fine.

Instead, I'd like to suggest the attached patch to make mythzmserver compatible with the memory mapping method, while maintaining the original shmget() functionality as a failover.

Tested using branch fixes/0.24 and Zoneminder 1.24.4 (Ubuntu repository packages).

MythTV Version : v0.24.1-107-g088335b
MythTV Branch : fixes/0.24
Network Protocol : 63
Library API : 0.24.20110505-1
QT Version : 4.7.4
Options compiled in:

linux release using_oss using_backend using_bindings_perl using_bindings_python using_dvb using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv using_joystick_menu using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11 using_bindings_perl using_bindings_python using_mythtranscode using_opengl using_ffmpeg_threads using_live using_mheg

Attachments (1)

zmserver-mmap.patch (5.1 KB) - added by Argus <pthorn-mythd@…> 2 years ago.
Mapped memory patch - MythZoneminder?

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by Argus <pthorn-mythd@…>

Mapped memory patch - MythZoneminder?

comment:1 Changed 2 years ago by paulh

  • Milestone changed from unknown to 0.25
  • Status changed from new to accepted
  • Type changed from Patch - Bug Fix to Patch - Feature
  • Version changed from 0.24-fixes to Trunk Head

comment:2 Changed 2 years ago by Github

  • Resolution set to fixed
  • Status changed from accepted to closed

mythzoneminder: Add support for mmap

Newer versions of ZoneMinder? can use both shm and mmap for it's inter process
shared memory this updates mythzmserver to be able to read the live camera
images and status using both methods. Closes #10174.

Note: Only tested to make sure shm still works.
Signed-off-by: Paul Harrison <pharrison@…>

Branch: master
Changeset: ab02583b3efe4921e5eb02d43409ac9a04b622e6

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.