TEXT   71
How to use cdrtools to correctly write
Guest on 10th February 2023 01:28:59 AM


  1. How to use cdrtools to correctly write the AUDIO_TS folder to a disc.
  2.  
  3. The recording process consists of two steps:
  4. A) Creating an ISO disk image from the AUDIO_TS/VIDEO_TS folders using cdrtools/mkisofs.
  5. B) Burn ISO image to DVD+/-R or DVD+/-RW.
  6.  
  7. Step A. Create an ISO image.
  8. Warning.
  9.  
  10. This method does not create fully standard DVD-A discs, but should be readable on most general purpose DVD-Video/DVD-Audio players. If it is not readable on your player, then you are out of luck, your player is too sensitive to the requirements of the standard.
  11.  
  12. Unfortunately, the method of creating an image using cdrtools described below does not work with Sonic DVD-Audio Creator 3.0.05 - discs are not read correctly.
  13.  
  14.  
  15. It is explained at http://dvd-audio.sourceforge.net/ that most combined audio/video DVD players read the disc as files that must physically be placed on the disc in a specific order. And only some "clean" DVD-A players (cars, for example) can have problems with this, because. the standard prescribes not only that the files must be located in a certain order, but also located in certain sectors. Since cdrtools cannot provide the last condition, such "sensitive" players have a problem with reading.
  16.  
  17. Here is the quote:
  18. The only absolute sector pointers in a DVD-Audio image are those in the AUDIO_PP.IFO file. All other pointers are relative. Therefore there are two steps required to burning an AUDIO_TS directory to DVD - setting the pointers correctly in the AUDIO_PP.IFO file, and ensuring that the files are written contiguously in the correct order. It is probably possible to have padding between sets of files (eg between the AMG and the first ATS), but in practice there is no need to take account of that situation.
  19. Experiments have shown that a "smart" DVD-Audio player (ie a combined Audio/Video player) does not appear to use the AUDIO_PP.IFO file for playback. ie an AUDIO_TS directory can be relocated (without modification) to any part of the disk and still be playable in a hardware player - as long as the files are written contiguously and in the correct order.
  20.  
  21. What needs to be done before starting to burn a disc in cdrtools?
  22.  
  23. 1. Disc authoring must be completed and the AUDIO_TS folder must be created. If the disk is supposed to be made hybrid, i.e. containing both DVD-Audio and DVD-Video, the authoring of the DVD-Video part must also be completed and a VIDEO_TS folder created.
  24. Next, you need to put AUDIO_TS and VIDEO_TS into one folder. In our case, for example, let's call it DVD_A.
  25. 2. Download cdrtools. For Win32 - http://www.geoshock.com/cdrtools/. For MacOSX - http://fink.sourceforge.net/ Directly to make a disk image from this package, you only need mkisofs.
  26.  
  27. Step 1. Creating a sort file.
  28.  
  29. The success of our seemingly hopeless DVD-Audio disc creation entirely depends on how correctly the sorting file is created.
  30.  
  31. The Sort.txt file is a plain text file, it consists of lines with the following format:
  32.  
  33. [Path]/[File Name] [weight]
  34.  
  35. By default, all files and folders have a weight of "0" and will be written to disk in alphabetical order. However, we need a different sequence defined by the standard. Thus, by distributing the weight coefficients to the files, we will set the correct recording sequence. The weighting factor can be an integer from -2147483647 to +2147483647.
  36.  
  37. There must be either one space or one tab between the file name and the weighting factor. There should be nothing after the weight coefficient.
  38.  
  39. The path is the path to the folder where the files are located. If, for example, the mkisofs program, which will be used to create a disk image, is in our working folder, i.e. the same folder as the DVD_A folder (recall, this is the folder in which, in turn, AUDIO_TS and VIDEO_TS are located), then the path will be "DVD / AUDIO_TS /"
  40.  
  41. ------Example file Sort.txt-------
  42. DVD_A/AUDIO_TS/AUDIO_PP.IFO 8003
  43. DVD_A/AUDIO_TS/AUDIO_TS.IFO 8002
  44. DVD_A/AUDIO_TS/AUDIO_TS.BUP 8001
  45. DVD_A/AUDIO_TS/ATS_01_0.IFO 8000
  46. DVD_A/AUDIO_TS/ATS_01_1.AOB 0
  47. DVD_A/AUDIO_TS/ATS_01_0.BUP -8000
  48. --------------------------------
  49.  
  50. Example for sequence of files on disc (sequence from a real commercial DVD-Audio disc containing AUDIO_TS and VIDEO_TS, borrowed from http://dvd-audio.sourceforge.net)
  51. ---------------------
  52. AUDIO_TS/DVDAUDIO.MKB
  53. AUDIO_TS/AUDIO_PP.IFO
  54. AUDIO_TS/AUDIO_TS.IFO
  55. AUDIO_TS/AUDIO_TS.VOB
  56. AUDIO_TS/AUDIO_TS.BUP
  57. AUDIO_TS/AUDIO_SV.IFO
  58. AUDIO_TS/AUDIO_SV.VOB
  59. AUDIO_TS/AUDIO_SV.BUP
  60. AUDIO_TS/ATS_01_0.IFO
  61. AUDIO_TS/ATS_01_1.AOB
  62. AUDIO_TS/ATS_01_2.AOB
  63. AUDIO_TS/ATS_01_3.AOB
  64. AUDIO_TS/ATS_01_0.BUP
  65. AUDIO_TS/ATS_02_0.IFO
  66. AUDIO_TS/ATS_02_0.BUP
  67. AUDIO_TS/ATS_03_0.IFO
  68. AUDIO_TS/ATS_03_0.BUP
  69. AUDIO_TS/ATS_04_0.IFO
  70. AUDIO_TS/ATS_04_0.BUP
  71. AUDIO_TS/ATS_05_0.IFO
  72. AUDIO_TS/ATS_05_0.BUP
  73. AUDIO_TS/ATS_06_0.IFO
  74. AUDIO_TS/ATS_06_0.BUP
  75. AUDIO_TS/DVDAUDIO.BUP
  76.        
  77. VIDEO_TS/VIDEO_TS.IFO
  78. VIDEO_TS/VIDEO_TS.VOB
  79. VIDEO_TS/VIDEO_TS.BUP
  80. VIDEO_TS/VTS_01_0.IFO
  81. VIDEO_TS/VTS_01_2.VOB
  82. VIDEO_TS/VTS_01_0.BUP
  83. VIDEO_TS/VTS_02_0.IFO
  84. VIDEO_TS/VTS_02_0.VOB
  85. VIDEO_TS/VTS_02_1.VOB
  86. VIDEO_TS/VTS_02_0.BUP
  87. VIDEO_TS/VTS_03_0.IFO
  88. VIDEO_TS/VTS_03_0.VOB
  89. VIDEO_TS/VTS_03_1.VOB
  90. VIDEO_TS/VTS_03_0.BUP
  91. VIDEO_TS/VTS_04_0.IFO
  92. VIDEO_TS/VTS_04_0.VOB
  93. VIDEO_TS/VTS_04_1.VOB
  94. VIDEO_TS/VTS_04_0.BUP
  95. VIDEO_TS/VTS_05_0.IFO
  96. VIDEO_TS/VTS_05_0.VOB
  97. VIDEO_TS/VTS_05_1.VOB
  98. VIDEO_TS/VTS_05_0.BUP
  99. ---------------------
  100.  
  101. Note: If you are creating a disc containing AUDIO_TS and VIDEO_TS, then in the Sort.txt file you need to set the weights of the AUDIO_TS and VIDEO_TS folders with the following lines:
  102. DVD_A/AUDIO_TS 10000
  103. DVD_A/VIDEO_TS 9000
  104.  
  105. It is better to put them at the very beginning, set the weight of AUDIO_TS to be greater than the weight of VIDEO_TS, which, in turn, is greater than the weights of all other files. In principle, the weights of the folders are probably not important, because. they will be changed in the next lines, but this point has not yet been studied exactly.
  106.  
  107. You can read more about the sort file here: http://docs.rage.net/system/mkisofs-2.0/README.sort
  108.  
  109. Step 2. Create an ISO image.
  110.  
  111. In order not to rack your brains over the paths, add the cygwin1.dll and mkisofs.exe files from the cdrtools kit to the same folder where DVD_A is located, put Sort.txt there. Next, either create a file in NotePad with the following content:
  112. -------------------- RUN.bat file example--------------------------------- -
  113. start "mkisofs" mkisofs.exe -o image.iso -sort sort.txt -udf DVD_A
  114. -------------------------------------------------- ----------------
  115. rename it to RUN.bat and run it. Or in FAR Manager type:
  116. mkisofs.exe -o image.iso -sort sort.txt -udf DVD_A
  117.  
  118. Next, the percentage of completion of the ISO image creation operation should appear, after which image.iso will be in the working folder.
  119. Step 3. Validation.
  120.  
  121. If you are creating a sort file for the first time and are not sure that you created it correctly, then it is advisable to check the correct location of the files by sectors in the image. This can be done in different ways. One option is to use the ISOBuster program (http://www.isobuster.com/) to check the LBA order in the resulting ISO image with the one you created in the Sort.txt file.
  122. The second option is the isoinfo utility from the same cdrtools package. Put it in a working folder and type in FAR Manager:
  123. isoinfo -i image.iso -l
  124. A number of lines will appear with the following content:
  125. ---------- 0 0 0 131072 Mar 18 2005 [ 284 00] AUDIO_PP.IFO;1
  126. In square brackets - sector number. Check that files with a larger weight have a lower sector number.
  127.  
  128. If the order of the files in the image is correct, then you can proceed to the final operation.
  129.  
  130. Stage B. Burning an ISO image.
  131.  
  132. You can burn an ISO image in any program that is suitable and convenient for you, for example, Nero or DVDDecrypter.

Raw Paste

Login or Register to edit or fork this paste. It's free.