<?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>CheckThisShitOut.com &#187; dvd</title>
	<atom:link href="http://www.checkthisshitout.com/tag/dvd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.checkthisshitout.com</link>
	<description>ninja adventures in life...</description>
	<lastBuildDate>Sat, 10 Apr 2010 18:25:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mkdvdiso</title>
		<link>http://www.checkthisshitout.com/2008/06/mkdvdiso-2/</link>
		<comments>http://www.checkthisshitout.com/2008/06/mkdvdiso-2/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 17:17:05 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[scripts]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.checkthisshitout.com/?p=109</guid>
		<description><![CDATA[A simple perl script utilizing mkisofs that takes a VIDEO_TS directory full of vobs and creates a dvd iso image.  It needs a bit of further modification to make it more robost, but the basics are there and its fully usable.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/perl
#
# a script to create dvd iso images using mkisofs
# created by: Michael Sutherland, [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-4750042041616020";
/* 468x60, created 3/10/10 */
google_ad_slot = "9509283487";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p><p>A simple perl script utilizing mkisofs that takes a VIDEO_TS directory full of vobs and creates a dvd iso image.  It needs a bit of further modification to make it more robost, but the basics are there and its fully usable.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
</pre></td><td class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># a script to create dvd iso images using mkisofs</span>
<span style="color: #666666; font-style: italic;"># created by: Michael Sutherland, May 22, 2008</span>
<span style="color: #666666; font-style: italic;">#</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">use</span> warnings<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> strict<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">use</span> Getopt<span style="color: #339933;">::</span><span style="color: #006600;">Long</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## variables ##</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$mkisofs</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">'/usr/bin/mkisofs'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$path</span>    <span style="color: #339933;">=</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$iso</span>     <span style="color: #339933;">=</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$title</span>   <span style="color: #339933;">=</span> <span style="color: #ff0000;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$cmd</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## user options ##</span>
&nbsp;
GetOptions<span style="color: #009900;">&#40;</span>
        <span style="color: #ff0000;">&quot;path=s&quot;</span>        <span style="color: #339933;">=&gt;</span>      <span style="color: #0000ff;">\$path</span><span style="color: #339933;">,</span>
        <span style="color: #ff0000;">&quot;iso=s&quot;</span>         <span style="color: #339933;">=&gt;</span>      <span style="color: #0000ff;">\$iso</span><span style="color: #339933;">,</span>
        <span style="color: #ff0000;">&quot;title=s&quot;</span>       <span style="color: #339933;">=&gt;</span>      <span style="color: #0000ff;">\$title</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## sanity checks ##</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #0000ff;">$path</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #0000ff;">$iso</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #0000ff;">$title</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #0000ff;">&amp;usage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #339933;">-</span>f <span style="color: #0000ff;">$mkisofs</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;unable to find mkisofs at $mkisofs<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">exit</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## flush the buffer ##</span>
<span style="color: #0000ff;">$|</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## program start ##</span>
&nbsp;
<span style="color: #0000ff;">$cmd</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;$mkisofs -dvd-video -J -L -r -V $title -o $iso $path 2&gt;&amp;1&quot;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">#print &quot;running: $cmd\n&quot;;</span>
&nbsp;
<span style="color: #000066;">open</span> <span style="color: #009900;">&#40;</span>MKISOFS<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;$cmd |&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009999;">&lt;MKISOFS&gt;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066;">chomp</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$_</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>mkdvdiso: %40s&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$_</span> <span style="color: #b1b100;">if</span> <span style="color: #009966; font-style: italic;">/estimate finish/</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000066;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>mkdvdiso: %40s<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;completed at&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">## subroutines ##</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">sub</span> usage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;mkdvdiso - a quick utility for creating dvd iso images<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;usage:<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>-path<span style="color: #000099; font-weight: bold;">\t</span>path and directory containing the VIDEO_TS 
            &amp; AUDIO_TS folders<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>-iso<span style="color: #000099; font-weight: bold;">\t</span>path and name of iso image to be created<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000066;">print</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>-title<span style="color: #000099; font-weight: bold;">\t</span>title for the dvd iso image<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066;">exit</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.checkthisshitout.com/2008/06/mkdvdiso-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
