SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
dvd-handler and the dvd+rw-tools patch
Author Message
Post dvd-handler and the dvd+rw-tools patch 
I was wondering if it was possible to rewrite a part of dvd-handler to
use dvd+rw-mediainfo instead of growisofs to grab the freespace on a DVD
media.

That is, because I didn't find a patch for dvd+rw-tools 7.0 (which I
have installed), and also, if we can use dvd+rw-mediainfo, we would need
no patch!

Is the information here good to extract the 'appendableness' and
free-space of a DVD medium ?

Also, mediainfo is called already by dvd-handler (although perhaps not
at the same moment ?)

thanks

Alexandre Bourget

dvd+rw-mediainfo outputs follow

####
#### That's the output I get on a full disk (with DVD video on it):
####
INQUIRY: [TSSTcorp][CD/DVDW SH-S162L][LC02]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: MCC 03RG20
Current Write Speed: 16.0x1385=22160KB/s
Write Speed #0: 16.0x1385=22160KB/s
Write Speed #1: 12.0x1385=16620KB/s
Write Speed #2: 8.0x1385=11080KB/s
Write Speed #3: 4.0x1385=5540KB/s
GET [CURRENT] PERFORMANCE:
Write Performance: 16.0x1385=22160KB/s < at > [0 -> 2298496]
Speed Descriptor#0: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 16.0x1385=22160KB/s
Speed Descriptor#1: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 12.0x1385=16620KB/s
Speed Descriptor#2: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 8.0x1385=11080KB/s
Speed Descriptor#3: 00/2297887 R < at > 12.0x1385=16620KB/s
W < at > 4.0x1385=5540KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 00h, DVD-ROM book [revision 0]
Legacy lead-out at: 2298496*2KB=4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2045*2KB=4188160
READ DISC INFORMATION:
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: complete incremental
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 1398048*2KB
Last Recorded Address: 1398047*2KB
FABRICATED TOC:
Track#1 : 14 < at > 0
Track#AA : 17 < at > 1398048
Multi-session Info: #1 < at > 0
READ CAPACITY: 1398048*2048=2863202304

####
#### On a blank disk
####
INQUIRY: [TSSTcorp][CD/DVDW SH-S162L][LC02]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: MCC 03RG20
Current Write Speed: 16.0x1385=22160KB/s
Write Speed #0: 16.0x1385=22160KB/s
Write Speed #1: 12.0x1385=16620KB/s
Write Speed #2: 8.0x1385=11080KB/s
Write Speed #3: 4.0x1385=5540KB/s
GET [CURRENT] PERFORMANCE:
Write Performance: 16.0x1385=22160KB/s < at > [0 -> 2298496]
Speed Descriptor#0: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 16.0x1385=22160KB/s
Speed Descriptor#1: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 12.0x1385=16620KB/s
Speed Descriptor#2: 08/2297887 R < at > 12.0x1385=16620KB/s
W < at > 8.0x1385=11080KB/s
Speed Descriptor#3: 00/2297887 R < at > 12.0x1385=16620KB/s
W < at > 4.0x1385=5540KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 00h, DVD-ROM book [revision 0]
Legacy lead-out at: 2298496*2KB=4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2045*2KB=4188160
READ DISC INFORMATION:
Disc status: blank
Number of Sessions: 1
State of Last Session: empty
"Next" Track: 1
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: blank
Track Start Address: 0*2KB
Next Writable Address: 0*2KB
Free Blocks: 2298496*2KB
Track Size: 2298496*2KB
READ CAPACITY: 0*2048=0

####
#### Output of an already Bacula-written disk:
####
INQUIRY: [TSSTcorp][CD/DVDW TS-H552U][US03]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: PRINCO8X02
Current Write Speed: 8.0x1385=11080KB/s
Write Speed #0: 8.0x1385=11080KB/s
Write Speed #1: 6.0x1385=8310KB/s
Write Speed #2: 4.0x1385=5540KB/s
Write Speed #3: 2.0x1385=2770KB/s
Speed Descriptor#0: 08/2297887 R < at > 8.0x1385=11080KB/s
W < at > 8.0x1385=11080KB/s
Speed Descriptor#1: 08/2297887 R < at > 8.0x1385=11080KB/s
W < at > 6.0x1385=8310KB/s
Speed Descriptor#2: 00/2297887 R < at > 8.0x1385=11080KB/s
W < at > 4.0x1385=5540KB/s
Speed Descriptor#3: 00/2297887 R < at > 8.0x1385=11080KB/s
W < at > 2.0x1385=2770KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 25h, DVD-R book [revision 5]
Legacy lead-out at: 2298496*2KB=4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2176176*2KB=4456808448
READ DISC INFORMATION:
Disc status: appendable
Number of Sessions: 7
State of Last Session: empty
"Next" Track: 7
Number of Tracks: 7
READ TRACK INFORMATION[#1]:
Track State: complete incremental
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 65264*2KB
Last Recorded Address: 175*2KB
READ TRACK INFORMATION[#2]:
Track State: complete incremental
Track Start Address: 93952*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 503727*2KB
READ TRACK INFORMATION[#3]:
Track State: complete incremental
Track Start Address: 509888*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 919663*2KB
READ TRACK INFORMATION[#4]:
Track State: complete incremental
Track Start Address: 927360*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 1337135*2KB
READ TRACK INFORMATION[#5]:
Track State: complete incremental
Track Start Address: 1346880*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 1756655*2KB
READ TRACK INFORMATION[#6]:
Track State: complete incremental
Track Start Address: 1766400*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 2176175*2KB
READ TRACK INFORMATION[#7]:
Track State: invisible incremental
Track Start Address: 2185920*2KB
Next Writable Address: 2185920*2KB
Free Blocks: 111968*2KB
Track Size: 111968*2KB
READ CAPACITY: 2176176*2048=4456808448

Post dvd-handler and the dvd+rw-tools patch 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexandre Bourget wrote:
I was wondering if it was possible to rewrite a part of dvd-handler to
use dvd+rw-mediainfo instead of growisofs to grab the freespace on a DVD
media.

That is, because I didn't find a patch for dvd+rw-tools 7.0 (which I
have installed), and also, if we can use dvd+rw-mediainfo, we would need
no patch!

Debian has dvd+rw-tools v7.0-7 in testing, there must be a patch in
there for it and they distributed them with the patch.

Greetings,
Michel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFGcXMu2Vs+MkscAyURAgkWAKDYnNfDx+YdRDcQ28JXqtTnd3lAdgCgisJz
gJTej3BwW7qPeX5jJLQXwo4=
=VO0e
-----END PGP SIGNATURE-----

Post dvd-handler and the dvd+rw-tools patch 
Attachments: dvd-handler

I've reworked dvd-handler, and it now works without any patch. It uses
dvd+rw-mediainfo to grab information about the space left on a DVD
device.

As someone already pointed, there is no error handling when there is
*no* media in the drive.

See the modified dvd-handler attached (from version 2.0.2).

It might need some testing, but it works here.

thanks for the software,

Alexandre Bourget

Le jeudi 14 juin 2007 =C3=A0 11:22 -0400, Alexandre Bourget a =C3=A9crit :
I was wondering if it was possible to rewrite a part of dvd-handler to
use dvd+rw-mediainfo instead of growisofs to grab the freespace on a DVD
media.
=20
That is, because I didn't find a patch for dvd+rw-tools 7.0 (which I
have installed), and also, if we can use dvd+rw-mediainfo, we would need
no patch!
=20
Is the information here good to extract the 'appendableness' and
free-space of a DVD medium ?
=20
Also, mediainfo is called already by dvd-handler (although perhaps not
at the same moment ?)
=20
=20
thanks
=20
Alexandre Bourget
=20
dvd+rw-mediainfo outputs follow
=20
=20
=20
=20
=20
####
#### That's the output I get on a full disk (with DVD video on it):
####
INQUIRY: [TSSTcorp][CD/DVDW SH-S162L][LC02]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: MCC 03RG20
Current Write Speed: 16.0x1385=3D22160KB/s
Write Speed #0: 16.0x1385=3D22160KB/s
Write Speed #1: 12.0x1385=3D16620KB/s
Write Speed #2: 8.0x1385=3D11080KB/s
Write Speed #3: 4.0x1385=3D5540KB/s
GET [CURRENT] PERFORMANCE:
Write Performance: 16.0x1385=3D22160KB/s < at > [0 -> 2298496]
Speed Descriptor#0: 08/2297887 R < at > 12.0x1385=3D16620KB/s
W < at > 16.0x1385=3D22160KB/s
Speed Descriptor#1: 08/2297887 R < at > 12.0x1385=3D16620KB/s
W < at > 12.0x1385=3D16620KB/s
Speed Descriptor#2: 08/2297887 R < at > 12.0x1385=3D16620KB/s
W < at > 8.0x1385=3D11080KB/s
Speed Descriptor#3: 00/2297887 R < at > 12.0x1385=3D16620KB/s
W < at > 4.0x1385=3D5540KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 00h, DVD-ROM book [revision 0]
Legacy lead-out at: 2298496*2KB=3D4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2045*2KB=3D4188160
READ DISC INFORMATION:
Disc status: complete
Number of Sessions: 1
State of Last Session: complete
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: complete incremental
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 1398048*2KB
Last Recorded Address: 1398047*2KB
FABRICATED TOC:
Track#1 : 14 < at > 0
Track#AA : 17 < at > 1398048
Multi-session Info: #1 < at > 0
READ CAPACITY: 1398048*2048=3D2863202304
=20
=20
=20
=20
=20
####
#### On a blank disk
####
INQUIRY: [TSSTcorp][CD/DVDW SH-S162L][LC02]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: MCC 03RG20
Current Write Speed: 16.0x1385=3D22160KB/s
Write Speed #0: 16.0x1385=3D22160KB/s
Write Speed #1: 12.0x1385=3D16620KB/s
Write Speed #2: 8.0x1385=3D11080KB/s
Write Speed #3: 4.0x1385=3D5540KB/s
GET [CURRENT] PERFORMANCE:
Write Performance: 16.0x1385=3D22160KB/s < at > [0 -> 2298496]
Speed Descriptor#0: 08/2297887 R < at > 12.0x1385=3D16620KB/s
W < at > 16.0x1385=3D22160KB/s
Speed Descriptor#1: 08/2297887 R < at > 12.0x1385=3D16620KB/s
W < at > 12.0x1385=3D16620KB/s
Speed Descriptor#2: 08/2297887 R < at > 12.0x1385=3D16620KB/s
W < at > 8.0x1385=3D11080KB/s
Speed Descriptor#3: 00/2297887 R < at > 12.0x1385=3D16620KB/s
W < at > 4.0x1385=3D5540KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 00h, DVD-ROM book [revision 0]
Legacy lead-out at: 2298496*2KB=3D4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2045*2KB=3D4188160
READ DISC INFORMATION:
Disc status: blank
Number of Sessions: 1
State of Last Session: empty
"Next" Track: 1
Number of Tracks: 1
READ TRACK INFORMATION[#1]:
Track State: blank
Track Start Address: 0*2KB
Next Writable Address: 0*2KB
Free Blocks: 2298496*2KB
Track Size: 2298496*2KB
READ CAPACITY: 0*2048=3D0
=20
=20
=20
=20
####
#### Output of an already Bacula-written disk:
####
INQUIRY: [TSSTcorp][CD/DVDW TS-H552U][US03]
GET [CURRENT] CONFIGURATION:
Mounted Media: 11h, DVD-R Sequential
Media ID: PRINCO8X02
Current Write Speed: 8.0x1385=3D11080KB/s
Write Speed #0: 8.0x1385=3D11080KB/s
Write Speed #1: 6.0x1385=3D8310KB/s
Write Speed #2: 4.0x1385=3D5540KB/s
Write Speed #3: 2.0x1385=3D2770KB/s
Speed Descriptor#0: 08/2297887 R < at > 8.0x1385=3D11080KB/s
W < at > 8.0x1385=3D11080KB/s
Speed Descriptor#1: 08/2297887 R < at > 8.0x1385=3D11080KB/s
W < at > 6.0x1385=3D8310KB/s
Speed Descriptor#2: 00/2297887 R < at > 8.0x1385=3D11080KB/s
W < at > 4.0x1385=3D5540KB/s
Speed Descriptor#3: 00/2297887 R < at > 8.0x1385=3D11080KB/s
W < at > 2.0x1385=3D2770KB/s
READ DVD STRUCTURE[#10h]:
Media Book Type: 25h, DVD-R book [revision 5]
Legacy lead-out at: 2298496*2KB=3D4707319808
READ DVD STRUCTURE[#0h]:
Media Book Type: 25h, DVD-R book [revision 5]
Last border-out at: 2176176*2KB=3D4456808448
READ DISC INFORMATION:
Disc status: appendable
Number of Sessions: 7
State of Last Session: empty
"Next" Track: 7
Number of Tracks: 7
READ TRACK INFORMATION[#1]:
Track State: complete incremental
Track Start Address: 0*2KB
Free Blocks: 0*2KB
Track Size: 65264*2KB
Last Recorded Address: 175*2KB
READ TRACK INFORMATION[#2]:
Track State: complete incremental
Track Start Address: 93952*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 503727*2KB
READ TRACK INFORMATION[#3]:
Track State: complete incremental
Track Start Address: 509888*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 919663*2KB
READ TRACK INFORMATION[#4]:
Track State: complete incremental
Track Start Address: 927360*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 1337135*2KB
READ TRACK INFORMATION[#5]:
Track State: complete incremental
Track Start Address: 1346880*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 1756655*2KB
READ TRACK INFORMATION[#6]:
Track State: complete incremental
Track Start Address: 1766400*2KB
Free Blocks: 0*2KB
Track Size: 409776*2KB
Last Recorded Address: 2176175*2KB
READ TRACK INFORMATION[#7]:
Track State: invisible incremental
Track Start Address: 2185920*2KB
Next Writable Address: 2185920*2KB
Free Blocks: 111968*2KB
Track Size: 111968*2KB
READ CAPACITY: 2176176*2048=3D4456808448
=20
=20
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users < at > li...
https://lists.sourceforge.net/lists/listinfo/bacula-users
=20
=20

Post dvd-handler and the dvd+rw-tools patch 
Hello,

Concerning your email below. Please send your email to the bacula-devel list
with your patch in diff -u format as an attachment. We see your email, but
your patch is not available to the developers when sent to the bacula-users
list.

Thanks,

Kern

============================

Date: Thu, 14 Jun 2007 17:16:00 -0400
From: Alexandre Bourget <alex < at > bo...>
Subject: Re: [Bacula-users] dvd-handler and the dvd+rw-tools patch
To: bacula-users < at > li...
Message-ID: <1181855760.31322.10.camel < at > instrument>
Content-Type: text/plain; charset="utf-8"

I've reworked dvd-handler, and it now works without any patch. It uses
dvd+rw-mediainfo to grab information about the space left on a DVD
device.

As someone already pointed, there is no error handling when there is
*no* media in the drive.

See the modified dvd-handler attached (from version 2.0.2).

It might need some testing, but it works here.

thanks for the software,

Alexandre Bourget

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB