Log in

View Full Version : Video repair


Nibinear
11th June 2016, 12:56
What is the best piece of software for general purpose video repairs? I've got an mp4 and it won't play. If I load it in VLC it doesn't pick anything up or suggest a repair.

I've tried converting it using AVS video tools but the output file comes out at 4kb or 10kb so that hasn't helped.

There are loads of pieces of software out there but many are filled with viruses or spam so I just wanted to know which is the best.

Nibinear
11th June 2016, 14:04
Never mind, I found a good list. (http://www.videohelp.com/software/sections/video-repair-fix?orderby=Type)

StainlessS
11th June 2016, 17:16
Potplayer (a media player) can play quite badly damaged clips, and it's Video Recorder, will record to uncompressed AVI (I use YV12 raw),
and PCM(Raw) for re-encoding.
I switch off any/all filtering options, and make sure to set system record volume to a central values.

Sections that are too badly corrupt will result in static section that can be later trimmed out using eg VDub.

https://s20.postimg.org/nn03rxcvx/Pot_Rec_zps39p2fdkg.jpg (https://postimg.org/image/slnm6ggop/)

PotPlayer is a bit "Persona non grata" on this site, but is the only software that I'm aware of that is almost bullet proof
when dealing with video corruption.

EDIT: Get recent version from VideoHelp.

Nibinear
11th June 2016, 17:57
Thanks for the recommendation. My research found the following software:

Information
How to Repair Corrupted MP4 Video File Free on PC/Mac (http://www.winxdvd.com/resource/repair-mp4-file-free.htm)

Software
Grau GmbH (http://grauonline.de/cms2/?page_id=5)
All Video Fixer (gave my io errors though and failed to continue) (http://all-video-fixer.software.informer.com/)
MP4Repair.org
(http://mp4repair.org/pwt6/faq2.html#cost)Video LAN VLC (did not detect problems, would not play. (http://www.videolan.org/vlc/download-windows.en_GB.html)
Winx HD Video Converter (gave large report of what went wrong) (http://www.winxdvd.com/hd-video-converter/) Pastebin (http://pastebin.com/70sNtEJx)

Converters
- Format Factory (could not convert my broken video and gave memory error.)
- AVS Video Tools (converted my file to new format but provided an empty file)

I think I will just try ffmpeg as all these tools seem to be based on it anyway.

StainlessS
11th June 2016, 19:02
Try play in current PotPlayer, you will get idea of what would be recoverable.
Current ffmpeg is a lot more error tolerant than old ver$, but still nowhere near as good as PP.
Very few of the 'Video Fixer' type softwares that I have tried were any good at all.

EDIT: ffmpeg will likely do little more than attempt remux, it has more success when converting
to eg UT_Video AVI, pcm audio, but still PP is probably better in all cases.

EDIT: The bitrates shown in previous graphic are not used and so mean nothing (RAW V+A).

Nibinear
11th June 2016, 19:23
Amazingly PotPlayer couldn't play the file so I think there must be more wrong with this than I expected. It didn't give any errors on-screen or anything.

Edited:
I've now tried FFMPEG and got the same errors as with Winx HD Video Converter.
I've discovered that the "Error splitting the input into NAL units" error may be caused by a very recent FFMPEG issue that was reported only last month. So I'll try again with FFMPEG in a few months. I managed to get a file which would play with it but could see nothing.

StainlessS
11th June 2016, 23:29
setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get input file, No terminating Backslash, "." = current directory
set INDIR="."


REM Where to place output file, No terminating Backslash, eg "D:\OUT"
set OUTDIR=".\OUTPUT"


FOR %%A IN (*.wmv *.mpg *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM) DO (
%FFMPEG% -i "%INDIR%\%%A" -vn -acodec pcm_s16le "%OUTDIR%\%%~nxA.WAV"

)

Pause


Above will extract audio to WAV, from files with the mentioned extensions, add whatever else to extensions.
As you got some audio out of it, might like to try above, It might extract whole lot if problems only with video, and thereafter,
disabling any attempt to extract audio, may work better when it does not have to deal with audio.

Below, same for video ONLY files.

setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get input file, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."


REM Where to place output file, No terminating Backslash. "." would be same as .bat file
set OUTDIR=".\OUTPUT"


FOR %%A IN (*.264 *.vob *.wmv *.asf *.mpg *.m2v *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM *.mkv *.TS *.y4m *.yuv *.webm) DO (
%FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -an "%OUTDIR%\%%~nxA.AVI"

)

Pause



And V+A.

setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get input file, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."


REM Where to place output file, No terminating Backslash. "." would be same as .bat file
set OUTDIR=".\OUTPUT"


FOR %%A IN (*.264 *.vob *.wmv *.asf *.mpg *.m2v *.avi *.flv *.mov *.mp4 *.m4v *.RAM *.RM *.mkv *.TS *.y4m *.yuv *.webm) DO (
%FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"

)

Pause


As supplied, copy source into same dir as bat, and create OUTDIR directory for output in same dir as bat.
Outputs video to lossless UT_Video codec.