View previous topic :: View next topic |
Author |
Message |
nutbar21 Apprentice
Joined: 05 Dec 2004 Posts: 205 Location: USA
|
Posted: Mon May 12, 2008 12:45 am Post subject: Can't ogmrip/shrip run multiple threads? [SOLVED] |
|
|
Hi all,
I'm running shrip (the CLI version of ogmrip) to rip a DVD, but it only utilizes one of my CPU cores (I have a dual core CPU) even though I have the --threads option set to 2 (setting it to 3 or 4 doesn't change anything, as you might expect). This would really be nice to get working since it would speed up the encoding process significantly. Does anyone with some experience with this software know what I'm doing wrong?
Thanks,
nutbar _________________ "Your voice is like the sound of sirens to a house on fire..." -The Alkaline Trio
Last edited by nutbar21 on Mon May 12, 2008 9:53 pm; edited 1 time in total |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Mon May 12, 2008 7:46 am Post subject: |
|
|
Neither ogmrip nor shrip are multithreaded, only the codecs they use may be multithreaded (lavc, xvid, x264 for instance). shrip will then never run on multiple cores, but mplayer/mencoder should. |
|
Back to top |
|
|
nutbar21 Apprentice
Joined: 05 Dec 2004 Posts: 205 Location: USA
|
Posted: Mon May 12, 2008 12:02 pm Post subject: |
|
|
That's what I meant to say, I guess I just didn't get it out properly. I'm using x264 but once it reaches the video encoding part I see mencoder taking 100% of one core and leaving the other core alone regardless of what I put in --threads=<num>. Is there another way to reach the x264 threads option? Running on only one core with the current settings takes nearly 10 hours to rip a 90 minute DVD. _________________ "Your voice is like the sound of sirens to a house on fire..." -The Alkaline Trio |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
Posted: Mon May 12, 2008 5:12 pm Post subject: |
|
|
I don't know shrip, but using mencoder directly should work. _________________ "Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF |
|
Back to top |
|
|
nutbar21 Apprentice
Joined: 05 Dec 2004 Posts: 205 Location: USA
|
Posted: Mon May 12, 2008 5:38 pm Post subject: |
|
|
yngwin wrote: | I don't know shrip, but using mencoder directly should work. |
It does indeed.
I've been looking through the code for shrip and ogmrip. It seems ogmrip does the threading function just fine, but shrip seems to ignore it (the function call which actually takes the --threads parameter and uses it is missing). I just made a quick patch to fix this so my custom version of shrip (with just one line added to permit the --threads param to be used) runs just fine with multiple threads. The problem was that shrip ignored the --threads param and therefore had nothing to place in the call to mencoder after -x264encopts for the threads option so mencoder defaulted to 1.
I'm going to head over to sourceforge and see if I can find the ogmrip/shrip project to submit this patch to. _________________ "Your voice is like the sound of sirens to a house on fire..." -The Alkaline Trio |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Mon May 12, 2008 6:54 pm Post subject: |
|
|
Patch commited, thanks a lot ! |
|
Back to top |
|
|
nutbar21 Apprentice
Joined: 05 Dec 2004 Posts: 205 Location: USA
|
Posted: Mon May 12, 2008 9:52 pm Post subject: |
|
|
Oh, you're the developer! Cool
It's a great piece of software I recently discovered - and now with threading in shrip I can use it the way I need!
Do you also handle the ebuild in Portage? _________________ "Your voice is like the sound of sirens to a house on fire..." -The Alkaline Trio |
|
Back to top |
|
|
bi3l Apprentice
Joined: 06 Feb 2003 Posts: 268 Location: France
|
Posted: Mon May 12, 2008 10:07 pm Post subject: |
|
|
nutbar21 wrote: | Do you also handle the ebuild in Portage? |
I'd say yes even though I'm not a gentoo developper. |
|
Back to top |
|
|
|