Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[VU+ Duo2] Transtreamproxy CPU

finbarr

Forum Supporter
Donated Member
Joined
Jan 23, 2014
Messages
211
Reaction score
1
Points
0
A friend of mine who is running the latest Black hole image, asked me to see what was my CPU usage during transcoding. His was seeing about 98% on the process 'transtreamproxy'. I tested on the latest VIX image and am seeing similar results.

I realise the problem is likely due to Vu code or drivers, but has anyone else seen this?

we both testing on LAN and WAN
He used VLC, I used Safari on Mac & iOS.
I was using the default transcoding settings in the VIX UI.

PHP:
top - 15:55:59 up  6:03,  3 users,  load average: 1.11, 0.58, 0.28
Tasks:  82 total,   1 running,  81 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.2%us, 52.5%sy,  0.2%ni, 44.6%id,  0.0%wa,  0.0%hi,  0.5%si,  0.0%st
Mem:   1408064k total,   453360k used,   954704k free,     5828k buffers
Swap:        0k total,        0k used,        0k free,   299288k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                           
29051 root      20   0 20460 1596 1324 S   96  0.1   1:17.86 transtreamproxy                    
  621 root      20   0  343m  92m  10m S    5  6.7  13:50.64 enigma2
 
Thats not at all unusual, after all you are taking a live tv stream and re-encoding it to a different frame rate all on the fly, that is going to take a lot of processing power no matter what you do. The LCD alone on a Duo2 two takes up 10 percent of the processors power just to display picons with the LCD4Linux plugin.
 
Fair enough yeah I know what you mean. Just wanted to check if everyone was seeing the same? I presume that's 98% of one core and not them all?
 
Hi,
install and use htop. When I transcode the is changing all the time but both threads/cores are working.

ciao
 
Htop is showing about 60% on each core which seems fine. Thanks for the tip.
 
Thinking about it some more. I would expect high CPU from the Solo2 since that does software transcoding. But the Duo2-it *should* be doing hardware transcoding.
 
Thinking about it some more. I would expect high CPU from the Solo2 since that does software transcoding. But the Duo2-it *should* be doing hardware transcoding.

It's still using raw processing power either way so again I see nothing unusual there in my opinion.
 
Hi,
on the Solo2 side it is also not only software as the CPU has not nearly enough power to do it on their own. On both it must be a combination of software and hardware but the support on Duo2 is better. You can see that hardware is involved when you transcode and listen to the sound over the rca jacks you will always get the sound of the transcoded channel regardless what you watch on your telly.

ciao
 
It's still using raw processing power either way so again I see nothing unusual there in my opinion.

It's hardware encoding, so should not be showing a software cpu usage of over 90%. Anyway, my friend has made a fix for this, and posted it over here. I've just tested it and it works great. Less than 2% CPU streaming BT Sport HD to my mobile.



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
 
finbarr, you are right about the CPU usage.

What fix did you made? Can you please share yours transcoding plugin settings?
 
The fix is to replace the transtreamproxy file in /usr/bin with the one attached to my post above.

I don't take any credit for the fix although I did help QA it. ;-)
 
The fix is to replace the transtreamproxy file in /usr/bin with the one attached to my post above.

I don't take any credit for the fix although I did help QA it. ;-)

Are you sure you attached the file on your previous post?
 
No sorry. It's attached to the post I linked to.
 
Hi,
please attach it here because on the board you linked to we must be a member to be able to download.

ciao
 
Sure. Will do. I'm on the phone now but will attach tomorrow here.
 
Sure. Will do. I'm on the phone now but will attach tomorrow here.

Downloaded and attached - note - I've not tried this yet so anyone that does this is on their own.
If you do try it, I suggest you backup any files before you replace!

View attachment transtreamproxy.tar.gz
View attachment trans_cpufix.patch.gz

Attachments contain the updated binary (transtreamproxy.tar.gz)
and the patch file for the code. (trans_cpufix.patch.gz)

Most people who want to try will just need the transtreamproxy binary
Install manually by replacing the existing file "/usr/bin/transtreamproxy".
 
Last edited:
Thanks pembo.

I would advise checking the permissions of the file also, as mine was wrong after I copied over the file I think. So the steps are:

  1. Backup the original file
    Code:
    cp /usr/bin/transtreamproxy /hdd/
  2. FTP the downloaded file 'transtreamproxy' to /usr/bin
  3. Check the permissions on that file are the same as the previous one you just replaced
    Code:
    ls -l /hdd/transtreamproxy
    ls -l /usr/bin/transtreamproxy
  4. Restart Enigma
 

OpenViX Feeds Status

Back
Top