Opened 8 years ago

Closed 2 years ago

#12625 closed Bug Report - General (Trac EOL)

Mythweb: Streaming from slave backends

Reported by: Stefan Enzinger <mindoms@…> Owned by: Stuart Auchterlonie
Priority: minor Milestone: needs_triage
Component: Plugin - MythWeb Version: 0.27-fixes
Severity: medium Keywords: mythweb stream slave
Cc: Ticket locked: no

Description

I did write up some patch for mythweb to enable streaming of recordings from slave backends.

My system is mythtv .27 on ubuntu 14.04.3

caveats:

  • requires libwww-perl (was installed on my clean ubuntu/mythtv setup)
  • high cpu usage on mythweb host (I'm trying to contact LWP maintainers)

please let me know what you think or if this is the wrong place.

the diff is against git: e56118573fad47a0272631156b2a390128a5c8ba

but I did only test it on my current ubuntu setup with mythweb: 2:0.27.0+fixes.20140324.8ee257c-0ubuntu3

stefan

Attachments (2)

remotestream.patch (4.1 KB) - added by Stefan Enzinger <mindoms@…> 8 years ago.
the patch
remotestreamperf.patch (4.7 KB) - added by Stefan Enzinger <mindoms@…> 8 years ago.
Fixed high cpu usage

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by Stefan Enzinger <mindoms@…>

Attachment: remotestream.patch added

the patch

comment:1 Changed 8 years ago by Karl Egly

Component: MythTV - Web FrontendPlugin - MythWeb
Owner: changed from stuartm to Rob Smith

Changed 8 years ago by Stefan Enzinger <mindoms@…>

Attachment: remotestreamperf.patch added

Fixed high cpu usage

comment:2 Changed 8 years ago by Stefan Enzinger <mindoms@…>

Lowered cpu usage and increased throughput by increasing a buffer size. Size defaulted to 4k. Small changes didn't make a difference so I increased it to 4M.

I had to copy and modify the code for getprint from https://github.com/libwww-perl/libwww-perl/blob/c1006d428cef2290d1b41e4a9cb7b2981262caf6/lib/LWP/Simple.pm#L61

comment:3 Changed 4 years ago by Stuart Auchterlonie

Owner: changed from Rob Smith to Stuart Auchterlonie
Status: newassigned

comment:4 Changed 4 years ago by Stuart Auchterlonie

Milestone: unknownneeds_triage

comment:5 Changed 2 years ago by Stuart Auchterlonie

Resolution: Trac EOL
Status: assignedclosed

We have moved all bug tracking to github [1]

If you continue to have this issue, please open a new issue at github, referencing this ticket.

[1] - https://github.com/MythTV/mythtv/issues

Note: See TracTickets for help on using tickets.