Answers.Body: <p>Remuxing it will <em>probably</em> help, as the apps are generally smart enough to detect random crap and skip over it, as well as fix the timing information.</p>
  
  <p>You didn't mention if it's a ripped as in copied direct MPEG-2 file or one ripped using HandBrake or something else.</p>
  
  <p>Either way, use ffmpeg, avconv, or mkvmerge to remux them.</p>
  
  <pre><code>  ffmpeg (or avconv) -i source.mpg -codec copy dest.mkv
    mkvmerge -o dest.mkv source.mpg
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-31T10:13:47.843Z
Answers.Text: Will test this at the next occasion!
Answers.UserDisplayName: PetaspeedBeaver
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-05-30T07:10:02.620Z
Answers.LastActivityDate: 2018-05-30T07:10:02.620Z
Answers.UserDisplayName: Steve Dibb
Body: <p>I have some unique footage that I unfortunately only have a corrupted DVD copy of. I have been able to use <code>gddrescue</code> on Linux to extract most of the footage, but when I play the video in <code>vlc</code> it stops playing at certain points, and <code>vlc</code> returns to the playlist view. If I manually skip to the part where <code>vlc</code> stopped playing and skip a little forward, say a few seconds, I can play the file again and it works.</p>
  
  <p><strong>Is there a tool that I can use to automatically cut out the non corrupted parts of the video file so that I can play it without problem?</strong></p>
  
  <hr>
  
  <p>What causes this problem, what's technically wrong with the DVD-files?</p>
  
Tags: <video><dvd>
Title: How to cut out corrupted parts of DVD-video extracted from disc so file can be played?
UserDisplayName: PetaspeedBeaver
ThreadText: # How to cut out corrupted parts of DVD-video extracted from disc so file can be played?
  
  (Asked by: username_0 on 2017-06-28)
  
  I have some unique footage that I unfortunately only have a corrupted DVD copy of. I have been able to use `gddrescue` on Linux to extract most of the footage, but when I play the video in `vlc` it stops playing at certain points, and `vlc` returns to the playlist view. If I manually skip to the part where `vlc` stopped playing and skip a little forward, say a few seconds, I can play the file again and it works.
  
  **Is there a tool that I can use to automatically cut out the non corrupted parts of the video file so that I can play it without problem?**
  
  ---
  
  What causes this problem, what's technically wrong with the DVD-files?
  
  **Tags:** video, dvd
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-05-30. Score: 2 | Accepted answer
  
  Remuxing it will *probably* help, as the apps are generally smart enough to detect random crap and skip over it, as well as fix the timing information.
  
  You didn't mention if it's a ripped as in copied direct MPEG-2 file or one ripped using HandBrake or something else.
  
  Either way, use ffmpeg, avconv, or mkvmerge to remux them.
  
  ```
    ffmpeg (or avconv) -i source.mpg -codec copy dest.mkv
    mkvmerge -o dest.mkv source.mpg
  
  ```
  
  > **Comments:**
  > **username_0**: Will test this at the next occasion!  
  
  ---
  
  