Fix for transtreamproxy high CPU usage in BH 2.1.1

EnF70

Vu+ Newbie
If you are bothered by the high CPU usage in BH 2.1.1 while transcoding and streaming you can try this file. Install manually by replacing the existing file "/usr/bin/transtreamproxy".

I don't have any contacts in the Vu+ dev team, if you know someone PM me so I can send them the fix.
(patch file containing the fix is attached).
 

Attachments

Thank you! Tested it on the latest Vix and I am seeing less than 2% CPU. Cheers!

Code:
  1  [|||||||||                                                                            9.4%]     Tasks: 21, 37 thr; 1 running
  2  [||||                                                                                 3.8%]     Load average: 0.40 0.25 0.11
  Mem[|||||||||||||                                                                  121/1375MB]     Uptime: 00:04:20
  Swp[                                                                                    0/0MB]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
  627 root       20   0  302M 76220 12304 S  9.8  5.4  0:41.03 /usr/bin/enigma2
  667 root       20   0  302M 76220 12304 S  2.9  5.4  0:00.86 /usr/bin/enigma2
  628 root     20   0  302M 76220 12304 S  2.4  5.4  0:02.81 /usr/bin/enigma2
  660 root     20   0  302M 76220 12304 S  2.4  5.4  0:00.65 /usr/bin/enigma2
  740 root     20   0  4012  1968  1144 R  1.5  0.1  0:01.83 htop
  665 root     20   0  302M 76220 12304 S  1.0  5.4  0:00.74 /usr/bin/enigma2
  742 root     20   0 20440  1572  1300 S  0.5  0.1  0:00.28 transtreamproxy
  744 root     20   0 20440  1572  1300 S  0.5  0.1  0:00.20 transtreamproxy
  745 root     20   0 20440  1572  1300 S  0.5  0.1  0:00.05 transtreamproxy
 
If you are bothered by the high CPU usage in BH 2.1.1 while transcoding and streaming you can try this file. Install manually by replacing the existing file "/usr/bin/transtreamproxy".

I don't have any contacts in the Vu+ dev team, if you know someone PM me so I can send them the fix.
(patch file containing the fix is attached).

www.vuplus.com -> Report Bugs
 
Made a couple of more changes:
- changed retry count to 3 to improve file seek when transcoding
- changed logic to move data between input and output only if output is ready for writing (both threads)
- moved logic to stop transcoder in the source (encoder) thread as the stream thread blocks during write

Hopefully the transcoder will be more stable now.
Please report if you still find transtreamproxy process hanging with 99% CPU usage.
 

Attachments

The latest patch doesn't load video for me at all in VLC using the default transcoding settings on VIX. It does however, work on my iOS device.

Media info from VLC attached.
 

Attachments

  • Screen Shot 2014-10-28 at 12.48.44.png
    Screen Shot 2014-10-28 at 12.48.44.png
    71.2 KB · Views: 28
Back
Top