Opened 4 years ago

Last modified 4 years ago

#12625 new Bug Report - General

Mythweb: Streaming from slave backends

Reported by: Stefan Enzinger <mindoms@…> Owned by: Rob Smith
Priority: minor Milestone: unknown
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@…> 4 years ago.
the patch
remotestreamperf.patch (4.7 KB) - added by Stefan Enzinger <mindoms@…> 4 years ago.
Fixed high cpu usage

Download all attachments as: .zip

Change History (4)

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

Attachment: remotestream.patch added

the patch

comment:1 Changed 4 years ago by Karl Egly

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

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

Attachment: remotestreamperf.patch added

Fixed high cpu usage

comment:2 Changed 4 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

Note: See TracTickets for help on using tickets.