slitaz-tools rev 366
Burnbox: gui changes, help file and other improvements
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Jul 22 13:26:31 2009 +0000 (2009-07-22) |
parents | 6192ed1f3eb4 |
children | a54075776256 |
files | rootfs/usr/share/doc/burnbox/burnbox.html tinyutils/burnbox |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rootfs/usr/share/doc/burnbox/burnbox.html Wed Jul 22 13:26:31 2009 +0000 1.3 @@ -0,0 +1,140 @@ 1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 1.5 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1.6 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 1.7 + 1.8 +<head> 1.9 + <title>Burnbox Manual</title> 1.10 + <meta http-equiv="content-type" content="text/html;charset=utf-8" /> 1.11 + <style type="text/css"><!-- 1.12 + body { font: 90% sans-serif, vernada, arial; margin: 0; } 1.13 + #header { background: #f0ba08; color: black; height: 50px; 1.14 + border-top: 1px solid black; border-bottom: 1px solid black; } 1.15 + #content { margin: 0px 50px 26px 50px; } 1.16 + h1 { margin: 14px 0px 0px 16px; color: #3e1220; } 1.17 + h3 { color: #6c0023; } 1.18 + li { line-height: 1.4em; } 1.19 + pre { padding: 5px; color: black; background: #e1e0b0; } 1.20 + pre.script { padding: 10px; color: black; background: #e8e8e8; 1.21 + border: 1px inset #333333; } 1.22 + code { font-size: 100%; color: #669900; background: transparent; } 1.23 + hr { color: white; background: white; height: 1px; border: 0; } 1.24 + --></style> 1.25 +</head> 1.26 + 1.27 +<body> 1.28 + 1.29 +<div id="header"> 1.30 +<h1>SliTaz Burnbox Manual</h1> 1.31 +</div> 1.32 + 1.33 +<!-- Start content --> 1.34 +<div id="content"> 1.35 + 1.36 +<h3>About</h3> 1.37 +<p> 1.38 +Burnbox supports: 1.39 +<ul> 1.40 + <li>iso burning </li> 1.41 + <li>backup of data and audio CD </li> 1.42 + <li>data CD/DVD burning (DVD burn requires an optional package: dvd+rw-tools)</li> 1.43 + <li>audio CD burning (MP3 requires an optional package: mpg123)</li> 1.44 + <li>video CD (VCD/SVCD) burning ( requires packages: vcdimager, ffmpeg)</li> 1.45 +</ul> 1.46 + 1.47 +</p> 1.48 + 1.49 +<h3>General Device Settings</h3> 1.50 +<p> 1.51 +In the first tab, make sure cdrom settings are correct (Device:/dev/cdrom ; Speed (auto-detected): 48 ; Options: ) . 1.52 +Input is taken from the DEVICE settings. 1.53 +</p> 1.54 + 1.55 +<h3>Blank CD/DVD-RW</h3> 1.56 +<p> 1.57 +Use blank disk to erase contents and prepare for burning. 1.58 +</p> 1.59 + 1.60 +<h3>Iso Burning</h3> 1.61 +<p> 1.62 +This is supported in the second tab. 1.63 +<ul> 1.64 + <li>Press button <code> Browse</code> to specify the iso file path </li> 1.65 + <li>Press button <code> Burn ISO</code></li> 1.66 +</ul> 1.67 +You can also create or manipulate ISO images with ISO Master utility 1.68 +</p> 1.69 + 1.70 +<h3>Backup of data and audio CD</h3> 1.71 +<p> 1.72 +This is supported in the second tab. Optional package: cdrkit-isoinfo may help to improve burn speed. 1.73 +<ul> 1.74 + <li>Insert CD</li> 1.75 + <li>Select backup option: "Save backup on Hard disk" (default) or "Backup on CD disc"</li> 1.76 + <li>If backup option is "Save backup on Hard disk" (default), then specify the folder to do "CD/DVD backup"</li> 1.77 + <li>Press button <code> Backup DataCD</code></li> 1.78 +</ul> 1.79 +Audio CD ripping is supported using asunder package. 1.80 + 1.81 +</p> 1.82 + 1.83 +<h3>Data CD/DVD burning</h3> 1.84 +<p> 1.85 +This is supported in the third tab. In the third tab, one can specify the burn type before adding files. 1.86 +Depending upon the burn type, the files are decoded on fly. 1.87 +One can remove the added files by simply double-clicking on the file in the tree view. 1.88 +Total track size shows the CD/DVD space occupied. 1.89 + 1.90 +<ul> 1.91 + <li>Select data-cd in Burn Type</li> 1.92 + <li>Specify file/folder or <code> Browse</code> </li> 1.93 + <li>Press button <code> Add</code> </li> 1.94 + <li>Press button <code> Burn Disc</code></li> 1.95 +</ul> 1.96 + 1.97 + 1.98 +</p> 1.99 + 1.100 +<h3>Audio CD burning</h3> 1.101 +<p> 1.102 +This is supported in the third tab. WAV, OGG, MP3 files are supported. 1.103 +OGG, MP3 are automatically converted into uncompressed WAV format for burning. 1.104 +<ul> 1.105 + <li>Select audio-cd in Burn Type</li> 1.106 + <li>Specify file/folder or <code> Browse</code></li> 1.107 + <li>Press button <code> Add</code> to auto-decode to uncompressed WAV (OGG, MP3 are decoded)</li> 1.108 + <li>Press button <code> Burn Disc</code></li> 1.109 +</ul> 1.110 + 1.111 +</p> 1.112 + 1.113 +<h3>video CD (VCD/SVCD) burning</h3> 1.114 +<p> 1.115 +This is supported in the third tab. Only burning mpg video format is supported directly. MPEG-1 video for vcd and MPEG-2 for svcd and dvd. 1.116 +AVI, MOV, FLV, WMV videos are automatically converted into a VCD/SVCD/DVD compatible mpg video format 1.117 +<ul> 1.118 + <li>select data-cd in Burn Type</li> 1.119 + <li>Specify file/folder or <code> Browse</code></li> 1.120 + <li>Press button <code> Add</code> to auto-decode to MPG files (AVI, FLV, MOV, WMV are decoded)</li> 1.121 + <li>Press button <code> Burn Disc</code></li> 1.122 +</ul> 1.123 + 1.124 +</p> 1.125 + 1.126 +<h3>Common Problems</h3> 1.127 +<p> 1.128 +<ul> 1.129 + <li> Burnbox works as root but not for a user. This happens when the user is not added to "cdrom" group <pre> addgroup tux cdrom</pre> </li> 1.130 + <li> Cdrom not readable / writable: Make sure the user has proper permissions and is added to "cdrom" group</li> 1.131 + <li> MP3 audio burn does not work: Check if you have installed: mpg123 </li> 1.132 + <li> VCD option does not work: Check if you have installed: vcdimager </li> 1.133 + <li> AVI, FLV, WMV files are not decoded to MPG: Check if you have installed: ffmpeg </li> 1.134 + <li> DVD burn does not work: Check if you have installed: dvd+rw-tools </li> 1.135 +</ul> 1.136 + 1.137 +</p> 1.138 + 1.139 +<!-- End content --> 1.140 +</div> 1.141 + 1.142 +</body> 1.143 +</html>
2.1 --- a/tinyutils/burnbox Sun Jun 28 18:02:32 2009 +0000 2.2 +++ b/tinyutils/burnbox Wed Jul 22 13:26:31 2009 +0000 2.3 @@ -8,10 +8,9 @@ 2.4 # Authors : Christophe Lincoln <pankso@slitaz.org> 2.5 # Rohit Joshi <jozee@slitaz.org> 2.6 # 2.7 -VERSION=20090504 2.8 +VERSION=20090529 2.9 TMPDIR="/tmp/burn-cd" 2.10 2.11 - 2.12 chk_install() 2.13 { 2.14 for pkg in $@ 2.15 @@ -26,6 +25,21 @@ 2.16 fi 2.17 } 2.18 2.19 + 2.20 +# Check read write permission for device. 2.21 +chk_rw_permissions() 2.22 +{ 2.23 + xterm -bg gray93 -fg black -geometry 80x16 -title "Check Permission" \ 2.24 + -e ' 2.25 + if [ ! -r "$DEVICE" -o ! -w "$DEVICE" ]; then 2.26 + echo "you dont have read write permission for $DEVICE; trying adding yourself to group cdrom." 2.27 + else 2.28 + echo "you have read write permission for $DEVICE. You can proceed to burn." 2.29 + fi 2.30 + sleep 3; 2.31 + ' 2.32 +} 2.33 + 2.34 # Display audio cd size. 2.35 audio_cd_stats() 2.36 { 2.37 @@ -35,13 +49,14 @@ 2.38 } 2.39 2.40 # Display cd/dvd size. 2.41 -disk_stats() 2.42 +disc_stats() 2.43 { 2.44 - DISK_SIZE=`du -m $TMPDIR | awk '{print $1}'` 2.45 + DISC_SIZE=`du -m $TMPDIR | awk '{print $1}'` 2.46 TRACK_NB=`ls -1 $TMPDIR | wc -l` 2.47 - echo -n "Total size: $DISK_SIZE Mb" 2.48 + echo -n "Total size: $DISC_SIZE Mb" 2.49 } 2.50 2.51 + 2.52 decode_ogg() 2.53 { 2.54 if ls $TMPDIR | grep -q .ogg; then 2.55 @@ -188,7 +203,8 @@ 2.56 burn_iso() 2.57 { 2.58 xterm -bg gray93 -fg black -geometry 80x16 -title "Wodim" \ 2.59 - -e "wodim -v speed=$SPEED dev=$DEVICE $OPTIONS $ISO_IMAGE; sleep 4" 2.60 + -e "wodim -v speed=$SPEED dev=$DEVICE $OPTIONS $ISO_IMAGE; sleep 4 2.61 + " 2.62 } 2.63 # =====AUDIO===== 2.64 # Use -pad to avoid file size error. 2.65 @@ -199,7 +215,8 @@ 2.66 if [ "$UNINSTALLED" = "" ] ; then 2.67 xterm -bg gray93 -fg black -geometry 80x16 -title "Wodim:AUDIO" \ 2.68 -e " echo \"BURN TYPE SELECTED = $BURN_MODE \"; sleep 1; 2.69 - wodim -v speed=$SPEED dev=$DEVICE $OPTIONS -pad -dao -audio $TMPDIR/*.wav; sleep 4 2.70 + wodim -v speed=$SPEED dev=$DEVICE $OPTIONS -pad -dao -audio $TMPDIR/*.wav; sleep 4 2.71 + 2.72 " 2.73 fi 2.74 } 2.75 @@ -211,13 +228,16 @@ 2.76 if [ "$UNINSTALLED" = "" ] ; then 2.77 xterm -bg gray93 -fg black -geometry 80x16 -title "Wodim:CD DATA" \ 2.78 -e " echo \"BURN TYPE SELECTED = $BURN_MODE \"; sleep 1; 2.79 - wodim -v speed=$SPEED dev=$DEVICE $OPTIONS -pad -dao -data $TMPDIR/*; sleep 4 2.80 + wodim -v speed=$SPEED dev=$DEVICE $OPTIONS -pad -dao -data $TMPDIR/*; sleep 4 2.81 + 2.82 " 2.83 - fi 2.84 + fi 2.85 + 2.86 } 2.87 2.88 burn_dvddata() 2.89 { 2.90 + # For multisession support, remove --dvd-compat option 2.91 UNINSTALLED="" 2.92 chk_install "dvd+rw-tools" 2.93 if [ "$UNINSTALLED" = "" ] ; then 2.94 @@ -243,6 +263,7 @@ 2.95 " 2.96 fi 2.97 } 2.98 + 2.99 burn_vcd() 2.100 { 2.101 UNINSTALLED="" 2.102 @@ -275,33 +296,37 @@ 2.103 } 2.104 2.105 # =====CLONE===== 2.106 + 2.107 rip_disc() 2.108 { 2.109 SUGGESTED="cdrkit-isoinfo" 2.110 if ! "$CHECKBOX_FOLDER" ; then SAVE_DISC="/tmp/burn-cd" ; fi 2.111 if [ -d /var/lib/tazpkg/installed/${SUGGESTED} ]; then 2.112 xterm -bg gray93 -fg black -geometry 80x16 -title "dd" \ 2.113 - -e ' echo "RIPPING DISK AT $SAVE_DISC..." 2.114 + -e ' echo "RIPPING DISC $DEVICE AT $SAVE_DISC..." 2.115 COUNT=`isoinfo -d -i $DEVICE | grep "^Volume size is:" | cut -d " " -f 4` 2.116 BLOCK=`isoinfo -d -i $DEVICE | grep "^Logical block size is:" | cut -d " " -f 5` 2.117 dd if=$DEVICE of=$SAVE_DISC/image.iso bs=$BLOCK count=$COUNT; sleep 4 2.118 - sleep 2;' 2.119 + sleep 2; 2.120 + # eject ; 2.121 + ' 2.122 else 2.123 xterm -bg gray93 -fg black -geometry 80x16 -title "dd" \ 2.124 - -e ' echo " Though you dont have the cdrkit-extras package installed, \ 2.125 + -e ' echo " Though you dont have the cdrkit-isoinfo package installed, \ 2.126 you can still rip but it may be slower" 2.127 echo -n "would you like to continue (y/N)? : "; read ans 2.128 if [ "$ans" = "y" ]; then 2.129 - echo "RIPPING DISK AT $SAVE_DISC...." 2.130 + echo "RIPPING DISC $DEVICE AT $SAVE_DISC...." 2.131 dd if=$DEVICE of=$SAVE_DISC/image.iso; 2.132 sleep 2; 2.133 + #eject ; 2.134 fi 2.135 - ' 2.136 + ' 2.137 fi 2.138 if ! "$CHECKBOX_FOLDER" ; then 2.139 ISO_IMAGE="/tmp/burn-cd/image.iso" 2.140 xterm -bg gray93 -fg black -geometry 80x16 -title "dd" \ 2.141 - -e ' echo -e " ---Please insert EMPTY DISK at $DEVICE ---\n ---press ENTER to continue..." && read close;' 2.142 + -e ' echo -e " ---Please insert EMPTY DISC at $DEVICE ---\n ---press ENTER to continue..." && read close;' 2.143 burn_iso 2.144 fi 2.145 } 2.146 @@ -330,27 +355,42 @@ 2.147 esac 2.148 2.149 } 2.150 + 2.151 # Main GTK interface 2.152 MAIN_DIALOG=' 2.153 <window title="SliTaz - Burnbox" icon-name="drive-optical"> 2.154 <vbox> 2.155 2.156 - <notebook labels="General|ISO image or rip| Burn CD/DVD (Audio,Video,Data)"> 2.157 + <notebook labels="General|Burn ISO or Backup Disc| Burn CD/DVD (Audio,Video,Data)"> 2.158 2.159 <vbox> 2.160 <frame Information> 2.161 - <text> 2.162 + 2.163 + <text width_request="250" use-markup="true"> 2.164 <label> 2.165 -"Burn CD, Video CD and DVD using Wodim, Vcdimager and Growisofs. 2.166 - 2.167 -Audio CD use uncompressed WAV (OGG, MP3 are decoded). 2.168 -VCD/SVCD use MPG files (AVI, FLV, MOV, WMV are decoded). 2.169 - 2.170 -Before burning, please verify device writer settings or add options if needed." 2.171 - </label> 2.172 +"Burns iso, backs up CD/DVD, burns data CD/DVD, audio CD, video CD (VCD/SVCD) 2.173 +" 2.174 + </label> 2.175 </text> 2.176 + <hbox> 2.177 + <text use-markup="true"> 2.178 + <label> "<b> Please consult HELP file if needed: </b>" </label> 2.179 + </text> 2.180 + <button> 2.181 + <input file icon="help"></input> 2.182 + <action> firefox /usr/share/doc/burnbox/burnbox.html </action> 2.183 + </button> 2.184 + </hbox> 2.185 + 2.186 </frame> 2.187 <frame Settings> 2.188 + <text> 2.189 + <label> 2.190 +" Before burning, please verify/change device writer settings below if needed. 2.191 +" 2.192 + </label> 2.193 + </text> 2.194 + 2.195 <hbox> 2.196 <text use-markup="true"> 2.197 <label>"<b>Device: </b>"</label> 2.198 @@ -381,7 +421,16 @@ 2.199 <input file icon="help"></input> 2.200 <action>xterm -sb -bg gray93 -fg black -geometry 95x25 -title "wodim help" -e "wodim --help ; echo -e \"----\nENTER to continue...\" && read close"</action> 2.201 </button> 2.202 - </hbox> 2.203 + </hbox> 2.204 + <hbox> 2.205 + <text use-markup="true"> 2.206 + <label> "<b>Check Permission for Device: </b>" </label> 2.207 + </text>' 2.208 + MAIN_DIALOG=${MAIN_DIALOG}" <button> 2.209 + <input file icon=\"dialog-information\"></input> 2.210 + <action>$0 chk_rw_permissions</action> 2.211 + </button> " 2.212 + MAIN_DIALOG=${MAIN_DIALOG}'</hbox> 2.213 </frame> 2.214 <frame Blank CD/DVD-RW> 2.215 <hbox> 2.216 @@ -397,7 +446,7 @@ 2.217 <action>xterm -bg gray93 -fg black -geometry 80x15 -title "wodim blank=help" -e "wodim blank=help ; echo -e \"----\nENTER to continue...\" && read close"</action> 2.218 </button> 2.219 <button> 2.220 - <label>Blank disk</label> 2.221 + <label>Blank disc</label> 2.222 <input file icon="forward"></input> 2.223 <action>xterm -bg gray93 -fg black -title "Wodim" -e "wodim -v -blank=$BLANK_OPTS dev=$DEVICE; sleep 2"</action> 2.224 </button> 2.225 @@ -406,18 +455,13 @@ 2.226 </vbox> 2.227 2.228 <vbox> 2.229 - <frame Select ISO and burn> 2.230 - 2.231 - <text> 2.232 - <label> 2.233 -" 2.234 -You can create or manipulate ISO images with ISO Master utility 2.235 -or use genisoimage from the command line. 2.236 -" 2.237 - </label> 2.238 - </text> 2.239 - 2.240 - <hbox> 2.241 + <frame Select ISO and burn> 2.242 + <hbox> 2.243 + <text> 2.244 + <label> 2.245 + " " 2.246 + </label> 2.247 + </text> 2.248 <text use-markup="true"> 2.249 <label>"<b>ISO path:</b>"</label> 2.250 </text> 2.251 @@ -425,15 +469,15 @@ 2.252 <variable>ISO_IMAGE</variable> 2.253 </entry> 2.254 <button> 2.255 - <input file stock="gtk-cdrom"></input> 2.256 + <label>Browse</label> 2.257 + <input file stock="gtk-open"></input> 2.258 <action type="fileselect">ISO_IMAGE</action> 2.259 </button> 2.260 - </hbox>' 2.261 + ' 2.262 # Burn iso button. 2.263 MAIN_DIALOG=${MAIN_DIALOG}" 2.264 - <hbox> 2.265 <button> 2.266 - <label>Burn disk</label> 2.267 + <label>Burn ISO</label> 2.268 <input file icon=\"forward\"></input> 2.269 <action>$0 burn_iso</action> 2.270 </button> 2.271 @@ -441,15 +485,15 @@ 2.272 # Backup CD 2.273 MAIN_DIALOG=${MAIN_DIALOG}' 2.274 </frame> 2.275 - <frame Select CD/DVD-RW and rip> 2.276 - <text> 2.277 - <label> 2.278 -"You can also clone or rip a CD/DVD. Just specify the path and click rip disk or use dd from the command line. Input is taken from the DEVICE settings 2.279 -" 2.280 - </label> 2.281 - </text> 2.282 + 2.283 + <frame Data CD/DVD backup > 2.284 + <text> 2.285 + <label> 2.286 + " " 2.287 + </label> 2.288 + </text> 2.289 <checkbox> 2.290 - <label>Save output in folder (Unselect to backup on disc) </label> 2.291 + <label>Save backup on Hard disk (Unselect to backup on CD disc) </label> 2.292 <variable>CHECKBOX_FOLDER</variable> 2.293 <default>true</default> 2.294 <action>if true enable:SAVE_DISC</action> 2.295 @@ -459,30 +503,43 @@ 2.296 </checkbox> 2.297 <hbox> 2.298 <text use-markup="true"> 2.299 - <label>"<b>Output CD/DVD rip at:</b>"</label> 2.300 + <label>"<b> Backup folder:</b>"</label> 2.301 </text> 2.302 <entry accept="directory"> 2.303 - <label>Select a folder to save cloned disk to</label> 2.304 + <label>Select a folder to save cloned disc to</label> 2.305 <variable>SAVE_DISC</variable> 2.306 </entry> 2.307 <button> 2.308 + <label>Browse</label> 2.309 <input file stock="gtk-open"></input> 2.310 <variable>OPENBUTTON</variable> 2.311 <action type="fileselect">SAVE_DISC</action> 2.312 - </button> 2.313 - </hbox> 2.314 + </button> 2.315 ' 2.316 # Burn backup button. 2.317 MAIN_DIALOG=${MAIN_DIALOG}" 2.318 - <hbox> 2.319 - <button> 2.320 - <label>Rip disk</label> 2.321 + <button> 2.322 + <label>Backup DataCD</label> 2.323 + <variable>DATA_RIP</variable> 2.324 <input file icon=\"forward\"></input> 2.325 <action>$0 rip_disc</action> 2.326 </button> 2.327 </hbox>" 2.328 MAIN_DIALOG=${MAIN_DIALOG}' 2.329 </frame> 2.330 + <frame Audio CD backup> 2.331 + <hbox> 2.332 + <text> 2.333 + <label> " audio CD clone using asunder " </label> 2.334 + </text> 2.335 + <button> 2.336 + <label> Backup AudioCD</label> 2.337 + <variable>AUDIO_RIP</variable> 2.338 + <input file icon="forward"></input> 2.339 + <action>asunder</action> 2.340 + </button> 2.341 + </hbox> 2.342 + </frame> 2.343 2.344 </vbox> 2.345 <vbox> 2.346 @@ -500,7 +557,7 @@ 2.347 <frame> 2.348 <hbox> 2.349 <text> 2.350 - <label> Burn type: </label> 2.351 + <label> Select Burn type: </label> 2.352 </text> 2.353 <combobox>' 2.354 tmp2="${MAIN_DIALOG}" 2.355 @@ -529,6 +586,7 @@ 2.356 <variable>NEW_TRACK</variable> 2.357 </entry> 2.358 <button> 2.359 + <label>Browse</label> 2.360 <input file stock=\"gtk-open\"></input> 2.361 <action type=\"fileselect\">NEW_TRACK</action> 2.362 </button> 2.363 @@ -549,6 +607,7 @@ 2.364 <variable>NEW_DIR</variable> 2.365 </entry> 2.366 <button> 2.367 + <label>Browse</label> 2.368 <input file stock=\"gtk-open\"></input> 2.369 <action type=\"fileselect\">NEW_DIR</action> 2.370 </button> 2.371 @@ -578,7 +637,7 @@ 2.372 <action>clear:NEW_DIR</action> 2.373 </button> 2.374 <button> 2.375 - <label>Burn disk</label> 2.376 + <label>Burn disc</label> 2.377 <input file icon=\"forward\"></input> 2.378 <action>$0 burn_disc</action> 2.379 </button>