Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, does anyone know which program can read and show the DVD's media code? You know, kind of like the ATIP of the CDR, DVD has the code on the disk showing the manufacturer and info "RICOHJPNW11".
I mean, when I use K3b, the debug window shows that cdrecord display the ATIP code, but when I burn DVD using K3b or growisofs, they don't show the media code.
Thanks. Didn't know that cdrecord works for DVD also. But when I tried the command, it gives me information on CD-R, but for DVD-R or DVD+R, cdrecord would always said unknown dye:
Code:
Disk type: unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
I guess it is trying to look up a table of the existing manufacturer and disk type. Is there some way to make cdrecord print the original code, like how people post the result from DVDInfoPro/DVDIdentifier (both Windows programs) on videohelp.com? Example:
I am including the following information in case someone else is interested:
After many days/weeks of search, when I stopped looking for the answer, I stumbled upon it. The package dvd+rw-tools comes with a program called "dvd+rw-mediainfo", which print out some information about the DVD media code, although not in the raw format.
With some media dvd+rw-mediainfo returns the media code, but with some cheap media it doesn't. It would help if the raw text could be extracted somehow.
Looking at the source code for dvd+rw-mediainfo - If you pass more than one argument it will print all the raw data in hex.
I wrote a small script to make it more readable:
Code:
#!/usr/bin/python
import re, sys, codecs
data = sys.stdin.read()
rep_data = re.sub(r'( [0-9a-fA-F][0-9a-fA-F])\s*\n\s*([0-9a-fA-F][0-9a-fA-F] )',r'\1 \2',data)
lines = rep_data.split('\n')
for s in lines:
r = re.compile('(.*:[^0-9a-fA-F]*)(([0-9a-fA-F][0-9a-fA-F]\s+)+)',re.DOTALL).search(s)
if r:
hex = re.sub(r'([0-9a-fA-F][0-9a-fA-F])\s*',r'\x\1',r.group(2))
hex_dec = hex.rstrip().decode("string_escape")
sys.stdout.write(r.group(1)+'\n\033[1;37m')
for x in range((len(hex_dec)/16)+1):
sys.stdout.write(' %08x ' %(x*16))
for i in range(16):
try: sys.stdout.write('%02X '%ord(hex_dec[(x*16)+i]))
except: sys.stdout.write(' ')
for i in range(16):
try:
if ord(hex_dec[(x*16)+i]) < 16:
sys.stdout.write('.')
else:
sys.stdout.write(hex_dec[(x*16)+i])
except: sys.stdout.write(' ')
sys.stdout.write('\n')
sys.stdout.write('\033[0m')
else:
sys.stdout.write(s+'\n')
Just pipe the output of dvd+rw-mediainfo into the script like so:
# dvd+rw-mediainfo /dev/hdb anotherargument | /path/to/decodescript
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.