zigford.org/burning-a-dvd-video-on-gentoo.html
2020-07-21 06:49:32 +10:00

79 lines
3.2 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="main.css" type="text/css" />
<link rel="stylesheet" href="blog.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="Subscribe to this page..." href="feed.rss" />
<title>Burning a DVD Video on Gentoo</title>
</head><body>
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="http://zigford.org/index.html">zigford.org</a></h1>
<div id="description"><a href="about.html">About</a><a href="links.html"> | Links</a><a href="scripts.html"> | Scripts</a><br>Sharing linux/windows scripts and tips</br></div>
</div></div></div>
<div id="divbody"><div class="content">
<!-- entry begin -->
<h3><a class="ablack" href="burning-a-dvd-video-on-gentoo.html">
Burning a DVD Video on Gentoo
</a></h3>
<!-- bashblog_timestamp: #201805151427.11# -->
<div class="subtitle">May 15, 2018 &mdash;
Jesse Harris
</div>
<!-- text begin -->
<p>Quick note for my future self</p>
<hr />
<h1 id="overview">Overview</h1>
<ol>
<li>Convert media to dvd compatible format</li>
<li>Author DVD title</li>
<li>Author DVD Table of Contents</li>
<li>Convert DVD folder to ISO</li>
<li>(Optional) Loopback mount ISO and test.</li>
<li>Burn ISO to DVD</li>
</ol>
<h1 id="packages-required">Packages Required</h1>
<p>media-video/ffmpeg<br />
media-video/dvdauthor<br />
app-cdr/dvd+rw-tools</p>
<h1 id="commands">Commands</h1>
<p>Start by using ffmpeg to convert the media to a dvd compatible format:</p>
<pre><code> ffmpeg -i Big\ Buck\ Bunny.mp4 -target pal-dvd BigBuckBunny.mpg
</code></pre>
<p>Now use dvdauthor to author a title</p>
<pre><code> dvdauthor -t -o dvd --video=pal -f BigBuckBunny.mpg
</code></pre>
<p>Add a table of contents</p>
<pre><code> dvdauthor -T -o dvd
</code></pre>
<p>Create the ISO file</p>
<pre><code> mkisofs -dvd-video -o BigBuckBunny.iso dvd/
</code></pre>
<p>(Optional) Mount to a loopback for testing</p>
<pre><code> mkdir mount
mount -o loop BigBuckBunny.iso mount/
</code></pre>
<p>Play the video using VLC or some other tool to check it, then unmount</p>
<pre><code> umount mount/
</code></pre>
<p>Burn to a disc</p>
<pre><code> growisofs -dvd-compat -Z /dev/sr0=BigBuckBunny.iso
</code></pre>
<p>Credit to <a href="https://ubuntuforums.org/showthread.php?t=2121309">andrew.46 over at the ubuntuforums</a></p>
<p>Tags: <a href='tag_burn-a-dvd.html'>burn-a-dvd</a>, <a href='tag_gentoo.html'>gentoo</a>, <a href='tag_ffmpeg.html'>ffmpeg</a>, <a href='tag_linux.html'>linux</a></p>
<!-- text end -->
<!-- entry end -->
</div>
<div id="footer">&copy <a href="http://twitter.com/zigford_org">Jesse Harris</a> &mdash; <a href="mailto:jesse&#64;zigford&#46;org">jesse&#64;zigford&#46;org</a><br/>
Generated with <a href="https://github.com/cfenollosa/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
</div></div>
</body></html>