DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Repair MP4 video  (Read 5,062 times)

sphere

  • Participant
  • Joined in 2018
  • *
  • Posts: 179
Repair MP4 video
« on: July 20, 2020, 05:27 PM »
I was recording a video to MP4 using OBS and the system shut down unexpectedly.  I have a 40omb file that will not play.  I tried to use VLC to convert it, but it will not work. Does anyone know of any tricks?
https://www.makeuseof.com/tag/fix-corrupt-videos/
Have not tried Video Repair from Grau GmbH for Windows yet.  Seems like there might be better options.

Any recommendations?

sphere

  • Participant
  • Joined in 2018
  • *
  • Posts: 179
Re: Repair MP4 video
« Reply #1 on: July 20, 2020, 05:46 PM »
This seems to be a complete list.
I have heard of wondershare's oterh products.
https://www.stellarinfo.com/article/best-video-repair-software.php

sphere

  • Participant
  • Joined in 2018
  • *
  • Posts: 179
Re: Repair MP4 video
« Reply #2 on: July 20, 2020, 07:04 PM »
To Update...  I tried using ffmpeg.

The video is about 20 minutes long. It recovered the first half of the audio and most of the video, though at the beginning the audio and the video were not in sync.  I am more interested in the audio.  I might look into a way to extract all the audio.
The way this process works is that it an analyzes a working file and compares it to the broken mp4.  The only working file I had from the same session was 10 minutes long. So I wonder if that was what cause it to stop working at the end.


recover_mp4 ▶ https://www.videohelp.com/software/re...
FFmpeg ▶ https://ffmpeg.zeranoe.com/builds/



4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Repair MP4 video
« Reply #3 on: July 20, 2020, 10:28 PM »
Grab AVIDemux and create a 20 minute video by appending the 10 minute video to itself and saving.

http://avidemux.sourceforge.net/download.html

Or you can use ffmpeg to concat the video:

Code: (text)
ffmpeg -i "concat:input1.mp4|input1.mp4" -c copy output.mp4

If you've got access to Linux, (or use WSL), then you can also try untrunc.


BTW, it mentions that if the 'good' sample video was from the same device/source as the 'bad' video, then you'll have a higher degree of success.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903
« Last Edit: July 21, 2020, 06:18 AM by 4wd »

Original address: https://www.donationcoder.com/forum/index.php?topic=50176.0