View previous topic :: View next topic |
Author |
Message |
kekc n00b
Joined: 15 May 2003 Posts: 33 Location: Toronto
|
Posted: Fri Dec 10, 2004 9:51 pm Post subject: Burn DVDs with growisofs with buffering |
|
|
I'm using kernel 2.6.9-nitro4, ide-cd(ATAPI) and the burner is a BenQ DW1620. When I attempt to burn data DVD the burn speed (as indicated by k3b-0.11.17) is usually in the range of 0.5x to 3x, this on a 16x speed drive.
This was caused by the fact that growisofs communicates with the mkisofs program using a standard unix pipe, and on linux the pipe buffer is only 4KB big. This means that when growisofs is busy sending data to the DVD writer, mkisofs can not write more than 4KB to the pipe before it gets stuck. Therefore, mkisofs and growisofs didn't work very much in parallel.
Solution:
You need small program pipebuf
compile it and move to /usr/local/bin:
Code: |
#sh pipebuf.c
#mv pipebuf /usr/local/bin/
|
Then you can burn DVDs at maximum speed:
Code: |
( nice -n -5 mkisofs -r -J -rational-rock -joliet -joliet-long -untranslated-filenames -iso-level 2 \
-ldots -allow-lowercase -allow-multidot -allow-leading-dots -gui -graft-points /PATH_TO_YOUR_DATA ) \
| (nice -n -10 pipebuf -b 32767 -p) \
| (nice -n -10 pipebuf -b 32767 -p) \
| (nice -n -10 pipebuf -b 32767 -p) \
| (nice -n -15 growisofs -dvd-compat -overburn -Z /dev/cdroms/cdrom0=/dev/fd/0 )
|
|
|
Back to top |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Sat Dec 11, 2004 1:30 pm Post subject: |
|
|
Are you using a 90+MB buffer there??
Anyway, I guess you can only use this with programs that accept data from standard input, and not others like cdrecord-ProDVD, right? _________________ Non fa male! Non fa male! |
|
Back to top |
|
|
kekc n00b
Joined: 15 May 2003 Posts: 33 Location: Toronto
|
Posted: Mon Dec 13, 2004 6:09 pm Post subject: |
|
|
mirko_3 wrote: | Are you using a 90+MB buffer there?? |
You can increase/decrease buffer size by adding/removing:
Code: |
| (nice -n -10 pipebuf -b 32767 -p) \
|
mirko_3 wrote: |
Anyway, I guess you can only use this with programs that accept data from standard input, and not others like cdrecord-ProDVD, right? |
I think cdrecord-ProDVD can accept data from standard input. |
|
Back to top |
|
|
Lokheed Veteran
Joined: 12 Jul 2004 Posts: 1295 Location: /usr/src/linux
|
Posted: Tue Dec 14, 2004 8:11 am Post subject: |
|
|
Thats wierd. I have an 8X and I burn 8X (even going up to 8.20X) without problems...
Using the same version of K3b and the latest version of growisofs. |
|
Back to top |
|
|
|