Answers.Body: <p>I've resorted to using mkisofs to create the ISO image, and this seems to fix the problem. Creating the ISO in another way (e.g. on a Mac with hdiutil, or directly burning it to disc with Finder) creates malfunctioning DVDs. Apparently there are some restrictions on the ISO format for DVDs. If these are not respected, the DVDs have incorrect chapters and might even start in the middle of the video. These restrictions are best explained in mkisofs' man page:</p>
  
  <blockquote>
    <p>-dvd-video
    Generate  DVD-Video compliant UDF file system. This is done by sorting the order of the content of the appropriate files and by
    adding padding between the files if needed.  Note that the sorting
    only works if the  DVD-Video filenames include upper case characters
    only.</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-16T11:16:44.003Z
Answers.LastActivityDate: 2019-10-16T11:16:44.003Z
Answers.UserDisplayName: Thomas De Reyck
Body: <p>I'm trying to create a DVD from a video file. While I've done this in the past and had a method that usually works, it has been a few years. This is my process:</p>
  
  <ol>
  <li>I have ripped an old VHS tape with a video capture device that has generated an MP4 file. This original file plays perfectly in VLC.</li>
  <li>I use ffmpeg to convert to VOB:</li>
  </ol>
  
  <p><code>ffmpeg -i input.mp4 -target pal-dvd -qscale:v 3 output.vob"</code></p>
  
  <p>The resulting file also plays perfectly in VLC.</p>
  
  <ol start="3">
  <li>Next, I set an environment variable to specify the format to be used for dvdauthor:</li>
  </ol>
  
  <p><code>export VIDEO_FORMAT="PAL"</code></p>
  
  <ol start="4">
  <li>Then I create an XML file that describes the DVD for dvdauthor:</li>
  </ol>
  
  <pre><code>&lt;dvdauthor&gt;
      &lt;vmgm /&gt;
      &lt;titleset&gt;
          &lt;titles&gt;
              &lt;video format="pal" aspect="4:3" /&gt;
              &lt;pgc&gt;
                  &lt;vob file="output.vob" /&gt;
             &lt;/pgc&gt;
          &lt;/titles&gt;
      &lt;/titleset&gt;
  &lt;/dvdauthor&gt;
  </code></pre>
  
  <ol start="5">
  <li>Next, I use dvdauthor to generate the DVD file structure:</li>
  </ol>
  
  <pre><code>dvdauthor -o output -x info.xml
  </code></pre>
  
  <p>If I point VLC to play this structure, it works perfectly.</p>
  
  <ol start="6">
  <li>I burn the resulting folders to disk.</li>
  </ol>
  
  <p>For some videos, it seems I can play the DVD on an actual DVD player without any issues</p>
  
  <p>However, for some videos, the DVD starts not at 00:00:00, but further along. One some DVD players I can rewind, on others I cannot. If I use dvdauthor to put multiple files on the disk, the chapters (by default at the beginning of each file) are also not placed correctly.</p>
  
  <p>In such a case, if I create an ISO file instead of an actual DVD, I can also reproduce the issue in VLC when trying to play the ISO file.</p>
  
  <p>My best guess is that the original source video is corrupted in some subtle way, probably something timestamp or framerate related, and needs to be sanitized first in some way. I tried some extra conversions and remuxing, but that doesn't really seem to help.</p>
  
  <p>Does anyone have an idea what is going on here?</p>
  
Tags: <ffmpeg><dvd>
Title: DVD created with ffmpeg and dvdauthor doesn't start at the beginning
UserDisplayName: Thomas De Reyck
ThreadText: # DVD created with ffmpeg and dvdauthor doesn't start at the beginning
  
  (Asked by: username_0 on 2019-10-10)
  
  I'm trying to create a DVD from a video file. While I've done this in the past and had a method that usually works, it has been a few years. This is my process:
  
  1. I have ripped an old VHS tape with a video capture device that has generated an MP4 file. This original file plays perfectly in VLC.
  2. I use ffmpeg to convert to VOB:
  
  `ffmpeg -i input.mp4 -target pal-dvd -qscale:v 3 output.vob"`
  
  The resulting file also plays perfectly in VLC.
  
  3. Next, I set an environment variable to specify the format to be used for dvdauthor:
  
  `export VIDEO_FORMAT="PAL"`
  
  4. Then I create an XML file that describes the DVD for dvdauthor:
  
  ```
  <dvdauthor>
      <vmgm />
      <titleset>
          <titles>
              <video format="pal" aspect="4:3" />
              <pgc>
                  <vob file="output.vob" />
             </pgc>
          </titles>
      </titleset>
  </dvdauthor>
  
  ```
  
  5. Next, I use dvdauthor to generate the DVD file structure:
  
  ```
  dvdauthor -o output -x info.xml
  
  ```
  
  If I point VLC to play this structure, it works perfectly.
  
  6. I burn the resulting folders to disk.
  
  For some videos, it seems I can play the DVD on an actual DVD player without any issues
  
  However, for some videos, the DVD starts not at 00:00:00, but further along. One some DVD players I can rewind, on others I cannot. If I use dvdauthor to put multiple files on the disk, the chapters (by default at the beginning of each file) are also not placed correctly.
  
  In such a case, if I create an ISO file instead of an actual DVD, I can also reproduce the issue in VLC when trying to play the ISO file.
  
  My best guess is that the original source video is corrupted in some subtle way, probably something timestamp or framerate related, and needs to be sanitized first in some way. I tried some extra conversions and remuxing, but that doesn't really seem to help.
  
  Does anyone have an idea what is going on here?
  
  **Tags:** ffmpeg, dvd
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-10-16. Score: 0 | Accepted answer
  
  I've resorted to using mkisofs to create the ISO image, and this seems to fix the problem. Creating the ISO in another way (e.g. on a Mac with hdiutil, or directly burning it to disc with Finder) creates malfunctioning DVDs. Apparently there are some restrictions on the ISO format for DVDs. If these are not respected, the DVDs have incorrect chapters and might even start in the middle of the video. These restrictions are best explained in mkisofs' man page:
  
  > -dvd-video
  > Generate DVD-Video compliant UDF file system. This is done by sorting the order of the content of the appropriate files and by
  > adding padding between the files if needed. Note that the sorting
  > only works if the DVD-Video filenames include upper case characters
  > only.
  
  
  ---
  
  