<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gHacks technology news &#187; mkisofs</title>
	<atom:link href="http://www.ghacks.net/tag/mkisofs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 23:31:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Create DVDs in Linux with DeVeDe, mkisofs, and K3B</title>
		<link>http://www.ghacks.net/2009/03/20/create-dvds-in-linux-with-devede-mkisofs-and-k3b/</link>
		<comments>http://www.ghacks.net/2009/03/20/create-dvds-in-linux-with-devede-mkisofs-and-k3b/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 02:56:14 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music and Video]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[devede]]></category>
		<category><![CDATA[dvd authoring]]></category>
		<category><![CDATA[K3B]]></category>
		<category><![CDATA[mkisofs]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=11348</guid>
		<description><![CDATA[My wife and I became hooked on the TV show &#8220;Lost&#8221; recently. As we were way behind we caught up by renting seasons 1-4. But then we ran out and fell behind again because the current season was halfway through&#8230;and had yet to be released on DVD yet. My only recourse was to torrent the [...]]]></description>
			<content:encoded><![CDATA[<p>My wife and I became hooked on the TV show &#8220;Lost&#8221; recently. As we were way behind we caught up by renting seasons 1-4. But then we ran out and fell behind again because the current season was halfway through&#8230;and had yet to be released on DVD yet. My only recourse was to torrent the current episodes of Lost and then burn them onto DVD. Of course I use Linux so I knew this might be a bit tricky. At first it was because there were few howtos out there that completed the process without using an infinite amount of command line tools. Not that I might command line tools&#8230;but I knew I would want to report the process here on gHacks. So I set out to find the easiest, most reliable way to create playable DVDs with as few commands as possible.</p>
<p>What I wound up with is a combination of three tools &#8211; only one of which was a command. It&#8217;s not as simple as creating them in Windows, but it&#8217;s free and it&#8217;s reliable (and will also up your geek &#8220;cred&#8221; &#8211; which we all could use.)</p>
<p><span id="more-11348"></span><strong>DeVeDe</strong></p>
<p>This first tool started out to be the most promising &#8211; until it came time to actually burn the DVD. Unfortunately <a title="DeVeDe" href="http://www.rastersoft.com/programas/devede.html" target="_blank">DeVeDe</a> stinks at the process of burning. So what I wound up using this tool for is to create the DVD structure which consists of a directory VIDEO_TS and all necessary files (.IFO, .VOB, and .BUP to be precise.)</p>
<p>Getting and installing DeVeDe is simple because it is found in most common repositories. Fire up your Add/Remove Software utility, do a search for &#8220;devede&#8221; (no quotes) and install the results of the search.</p>
<div id="attachment_11349" class="wp-caption alignleft" style="width: 310px"><a href="http://www.ghacks.net/wp-content/uploads/2009/03/devede_1.png"><img class="size-medium wp-image-11349" src="http://www.ghacks.net/wp-content/uploads/2009/03/devede_1-500x458.png" alt="DeVeDe Main Window" width="300" height="275" /></a><p class="wp-caption-text">DeVeDe Main Window</p></div>
<p>Once it is installed fire it up. The opening window will ask what disk type you want to create. Click &#8220;Video DVD&#8221;. the new window (shown on the left) is where you add your files and configure your options. You can really get creative with creating menus, etc. For the sake of simplicity we will stick with the basics.</p>
<p>Click the Add button under the Files Pane. This is where you will locate the .avi file you want to add to your movie. In the resulting window you can also switch from PAl to NTSC, add audio tracks (if there isn&#8217;t already one), add subtitles, and a number of advanced options.</p>
<p>Once you have added your file click the OK button to come back to the main window. Now, click the Advanced options drop down to reveal a few more options. In this section you want to select the option &#8220;Create Disk Structure&#8221;. Don&#8217;t bother with the iso option &#8211; DeVeDe is as bad at creating the iso as it is at burning.</p>
<p>Now click the Forward button and the process will begin. Depending upon how many files (and how large they are) you might have a long wait.</p>
<p>Once the process is complete you can Quit out of DeVeDe. You are done with that application.</p>
<p><strong>mkisofs</strong></p>
<p>Now you need to locate the directory housing the <strong>VIDEO_TS </strong>directory. You have to run the <em>mkisofs</em> command on that directory like so:</p>
<p><em>mkisofs -dvd-video -o ~/DVD_NAME.iso /path/to/VIDEO_TS</em></p>
<p>Where DVD_NAME is the name you want to give the iso file and where /path/to/ is the absolute path to the VIDEO_TS directory (but leave out the VIDEO_TS portion.) So if VIDEO_TS is located in /home/jlwallen/movie and I want to name the iso <em>lost.iso</em> the command would look like:</p>
<p><em>mkisofs -dvd-video -o /home/jlwallen/lost.iso /home/jlwallen/movie</em></p>
<p>You will want to make sure there is plenty of space on the drive (or directory) you use for this because it can take up some space (how much depends upon the size of the DVD being created.) The results, once the command is finished, will be DVD_NAME.iso (Again where DVD_NAME is the actual name of the iso you created.)</p>
<p><strong>K3B</strong></p>
<p>Now the easy part. Using K3B you will burn this iso image to disk. You can follow the process in my previous article <a title="K3B" href="http://www.ghacks.net/2009/01/11/burn-cd-and-dvd-iso-images-with-k3b/" target="_blank">Burn CD and DVD ISO images with K3B</a>. Once K3B finishes you should have a DVD suited for nearly any home DVD player.</p>
<p><strong>Final Thoughts</strong></p>
<p>Nope&#8230;it&#8217;s not as easy as it should be. But now you can re-create the process fairly quickly with the right tools. Have you found an easier way to create DVDs in Linux? If so let your fellow gHacks readers know.</p>

	Tags: <a href="http://www.ghacks.net/tag/devede/" title="devede" rel="tag">devede</a>, <a href="http://www.ghacks.net/tag/dvd-authoring/" title="dvd authoring" rel="tag">dvd authoring</a>, <a href="http://www.ghacks.net/tag/k3b/" title="K3B" rel="tag">K3B</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/mkisofs/" title="mkisofs" rel="tag">mkisofs</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/01/27/burn-cds-from-command-line/" title="Burn CDs From Command Line (January 27, 2009)">Burn CDs From Command Line</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/01/11/burn-cd-and-dvd-iso-images-with-k3b/" title="Burn CD and DVD ISO Images with K3B (January 11, 2009)">Burn CD and DVD ISO Images with K3B</a> (9)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/10/20/winx-dvd-author-giveaway/" title="WinX DVD Author Giveaway (October 20, 2009)">WinX DVD Author Giveaway</a> (53)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/03/20/create-dvds-in-linux-with-devede-mkisofs-and-k3b/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Burn CDs From Command Line</title>
		<link>http://www.ghacks.net/2009/01/27/burn-cds-from-command-line/</link>
		<comments>http://www.ghacks.net/2009/01/27/burn-cds-from-command-line/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 18:16:07 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music and Video]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[burn cds]]></category>
		<category><![CDATA[cdrecord]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[mkisofs]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=10173</guid>
		<description><![CDATA[Recently I wrote a simple how-to for burning CDs in GNOME (Easy CD Burning in GNOME.) From that article a request came in to illustrate how to burn from the command line. This ability illustrates the flexibility of the Linux operating system. Not only can you burn CDs from an outstanding, and simple, GUI, you [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I wrote a simple how-to for burning CDs in GNOME (<a title="Easy CD Burning in GNOME" href="http://www.ghacks.net/2009/01/26/easy-cd-burning-in-gnome/" target="_blank">Easy CD Burning in GNOME.</a>) From that article a request came in to illustrate how to burn from the command line. This ability illustrates the flexibility of the Linux operating system. Not only can you burn CDs from an outstanding, and simple, GUI, you can burn them from commands.</p>
<p>In this article we will cover the <em>cdrecord</em> and <em>dd </em>commands where we will burn ISO images, data backups, and audio CDs.</p>
<p><span id="more-10173"></span><strong>Installing cdrecord and dd<br />
</strong></p>
<p>By default, <em>cdrecord</em> and <em>dd</em>, should be installed. If not you can find it in your Add/Remove Software utility by searching for &#8220;cdrecord&#8221; and &#8220;dd&#8221;. Once you have installed the applications open up a terminal window and get ready.</p>
<p>The first thing you need to do is to determine where your device is located. To locate your device issue the command <em>cdrecord -scanbus</em>. When the command runs you should see output similar to:</p>
<p><em> 1000,0,0 100000) *<br />
1000,1,0 100001) *<br />
1000,2,0 100002) &#8216;HL-DT-ST&#8217; &#8216;RW/DVD GCC-T10N &#8216; &#8216;1.00&#8242; Removable CD-ROM<br />
1000,3,0 100003) *<br />
1000,4,0 100004) *<br />
1000,5,0 100005) *<br />
1000,6,0 100006) *<br />
1000,7,0 100007) *</em><br />
As you can see above, my device is listed. The listing information I take out of this is 0,2,0. If your scanbus reports the number before the first &#8220;,&#8221; as a 1000 you will only want the last digit &#8211; in my case a 0. If scanbus reports only a 0 before the first &#8220;,&#8221; that will be your first number in your device location. So my device is 0,2,0.</p>
<p>This device address will be plugged into the command for burning in conjunction with the <em>dev=</em> argument.</p>
<p><strong>Burning ISO image</strong></p>
<p>You have data on a CD that you want turned into an ISO image. This could be a Linux distribution or anything. To do this you would issue the command:</p>
<p><em>dd if=/dev/cdrom of=</em><em>ISO_file.iso</em></p>
<p>Where <em>/dev/cdrom </em>is the location of your CD device and <em>ISO_file.iso </em>name of the ISO image you want to create. NOTE: If you are wanting to put the ISO image file in a location other than where you are issuing the command, use the full path to the file name.</p>
<p>You can also make use of the <em>mkisofs</em> command to create ISO images of directories on your hard drive. The command for this would look like:</p>
<p><em>mkisofs -o Directory.iso Directory</em></p>
<p>Now let&#8217;s burn that ISO image to a CD. To do this issue a command similar to:</p>
<p><em>cdrecord dev=0,0,0 -data speed=48 </em><em>ISO_file.iso</em></p>
<p>The above command would put the ISO_file.iso file onto a burnable CD. If you know the actual burning speed of your device you can make adjustments to the command above.</p>
<p><strong>Burn Audio CDs</strong></p>
<p>What everyone has been waiting for. How to burn audio CDs. You could easily burn a directory full of .wav files with the command:</p>
<p>cdrecord dev=0,0,0 -eject speed=48 -pad -audio *.wav</p>
<p>But let&#8217;s take this one step further and create a handy bash script that will do the following:</p>
<p>Convert spaces in file names to underscores.</p>
<p>Convert .mp3 files to .wav files.</p>
<p>Burn all .wav files to cd.</p>
<p>Here is the script:</p>
<p><em>#!/bin/sh</em></p>
<p><em># Convert spaces to underscores<br />
for i in *.mp3; do mv &#8220;$i&#8221; `echo $i | tr &#8216; &#8216; &#8216;_&#8217;`; done</em></p>
<p><em># Convert MP3 files to WAV files<br />
for i in *.mp3; do mpg123 -w `basename $i .mp3`.wav $i; done</em></p>
<p><em># Burn the CD<br />
cdrecord dev=0,0,0 -eject speed=48 -pad -audio *.wav</em></p>
<p>Once you have created the script, make sure you chmod the file so it is executable like this:</p>
<p>chmod u+x burn_script</p>
<p>To run the script first move it into the directory that contains your mp3 files and issue the command .<em>/burn_script</em>. Or you can copy the <em>burn_script</em> to <strong>/usr/bin<em> </em></strong>so it is a global command.</p>
<p><strong>Final Thoughts</strong></p>
<p>Linux is an incredibly flexible operating system. The ability to burn CDs from the command line proves just how flexible it is. Do you have other tricks you like to use along these lines? If so, share them.</p>

	Tags: <a href="http://www.ghacks.net/tag/burn-cds/" title="burn cds" rel="tag">burn cds</a>, <a href="http://www.ghacks.net/tag/cdrecord/" title="cdrecord" rel="tag">cdrecord</a>, <a href="http://www.ghacks.net/tag/command-line/" title="command-line" rel="tag">command-line</a>, <a href="http://www.ghacks.net/tag/dd/" title="dd" rel="tag">dd</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/mkisofs/" title="mkisofs" rel="tag">mkisofs</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/02/13/searching-for-files-in-linux-via-command-line/" title="Searching for Files in Linux via Command Line (February 13, 2009)">Searching for Files in Linux via Command Line</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/02/18/linux-command-line-fu/" title="Linux Command Line Fu (February 18, 2009)">Linux Command Line Fu</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/02/06/get-to-know-linux-gnome-terminal/" title="Get To Know Linux: gnome-terminal (February 6, 2009)">Get To Know Linux: gnome-terminal</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/01/17/dd-the-ultimate-disk-cloning-tool/" title="dd: the ultimate disk cloning tool (January 17, 2009)">dd: the ultimate disk cloning tool</a> (11)</li>
	<li><a href="http://www.ghacks.net/2009/03/20/create-dvds-in-linux-with-devede-mkisofs-and-k3b/" title="Create DVDs in Linux with DeVeDe, mkisofs, and K3B (March 20, 2009)">Create DVDs in Linux with DeVeDe, mkisofs, and K3B</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/01/27/burn-cds-from-command-line/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
