NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) nDroid v
« Previous 1 2 3 4 5 … 7 Next »
ffmpeg transcoding only utilizing 50% CPU.

 
  • 0 Vote(s) - 0 Average
ffmpeg transcoding only utilizing 50% CPU.
poor_red_neck
Offline

Junior Member

Posts: 12
Threads: 4
Joined: Nov 2013
#1
2013-12-29, 07:06 AM
Hello,

Not sure if this is a NPVR issue or nDroid issue.

When transcoding live TV, ffmpeg seems to only be using 50% CPU. This is a dedicated box that only does PVR and NAS functions. WinXP Pro SP3 32bit, with all non-essential services cut off. CPU is always at 1% or less unless transcoding is taking place for android playback. I have a P4 3.0Ghz dual core (prescott or northwood, not sure which one) with 2GB RAM, and a GeForce210.

Live playback on my local network is... Ok. I've tweaked all the typical registry tcp settings (sendwindow, globalmaxtcp, etc) to get better throughput but I still get the occasional hesitation from time to time. Transcoding 800kbps and under plays back fine, but above and ffmpeg can't keep up. Process monitor shows ffmpeg maxing out at 50% CPU usage with approximately 48% idle CPU.

Is there a setting somewhere to increase how much processing power ffmpeg can use?

Thanks!
Jon aka poor_red_neck
poor_red_neck
Offline

Junior Member

Posts: 12
Threads: 4
Joined: Nov 2013
#2
2013-12-29, 07:27 AM
Found it!

Had a brain fart and remembered seeing ffmpeg options in the config.xml file of NPVR.

For those that may search for this issue, I did the following to fix the issue:

Open config.xml under C:\Documents and Settings\All Users\Application Data\NPVR (C:\Users\All Users\ for Win 7 I'm assuming)

Find "<TranscodeArgs>"
Add -threads X (where X is the number of cores you want ffmpeg to use. Ex: a 4 core CPU could be set to 3 for ffmpeg to utilize 3 cores instead of 1 With my dual core CPU not having any other tasks running i set -threads 2 to use both. Now CPU usage is ~90%)
Not sure where it matters to add the argument but I put it after -bufsize 96

It's made a little bit of a difference, but still not great. Going to try playing with the other settings)
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2013-12-31, 07:30 PM
Sorry for not to having responded - I'm no expert in ffmpeg anyway so probably couldn't have advised. You may want to search the net for a more recent build of ffmpeg (the one that comes with npvr is dated 2009) - they may have improved things.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Transcoding Live TV to Android t^2 21 10,360 2013-12-31, 07:33 PM
Last Post: bgowland
  transcoding level set by network? fuzzweed 1 1,974 2013-12-06, 10:05 PM
Last Post: bgowland
  No audio when transcoding HD channels gEd 15 5,688 2013-04-04, 08:23 PM
Last Post: bgowland
  Transcoding - dont get it Elmo Putney 3 2,249 2013-02-02, 04:48 PM
Last Post: bgowland
  1.8.5 and false Transcoding setting odin 6 3,303 2013-01-26, 04:23 PM
Last Post: bgowland

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode