How do I recover a partially recorded AVI file?

Somewhere to ask questions about the best way to use SharpCap
Forum rules


If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
Post Reply
PReadertor
Posts: 4
Joined: Mon Dec 06, 2021 9:45 pm

How do I recover a partially recorded AVI file?

#1

Post by PReadertor »

Good evening,

My laptop battery died before I could complete recording of a video file. I have seen that it is possible to recover the data by running an AVI recovery tool coded by one of the SC admins (viewtopic.php?t=625). I was able to download and run the tool described but I am guessing the video settings were different from mine.

Is there a more versatile version of this tool available for my video?

Best wishes,

Peter
Attachments
21_07_14.CameraSettings.txt
(775 Bytes) Downloaded 38 times
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: How do I recover a partially recorded AVI file?

#2

Post by admin »

Hi Peter,

I keep meaning to make a more flexible tool, but have never quite got around to it. The tool needs to know how many bytes of data are in each frame - for your settings (640x480xI420) that works out to be 460800 (I think), so it will not match the settings in the downloadable version.

Please can you share your broken AVI file with me (for instance via dropbox or google drive link)? I will test the recovery and use it as an opportunity to finally write a flexible version of the tool.

thanks,

Robin
PReadertor
Posts: 4
Joined: Mon Dec 06, 2021 9:45 pm

Re: How do I recover a partially recorded AVI file?

#3

Post by PReadertor »

Hi Robin,

Thanks for your quick response and I appreciate your willingness to help.

Here is the file: https://drive.google.com/file/d/11NJ8lg ... sp=sharing

Best wishes,

Peter
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: How do I recover a partially recorded AVI file?

#4

Post by admin »

Hi Peter

try this

https://downloads.sharpcap.co.uk/tools/AviRescue.zip

Unzip the AviResuce executable somewhere then run it from the command line

Code: Select all

AviRescue.exe 640x480x3 <path to>\21_07_14.avi
The first parameter is a combination of width, height and bytes per pixel of the AVI. For most SharpCap written AVI files that will be 3 for colour and 1 for monochrome (as I remembered when digging further, the I420 colour space doesn't matter in modern versions of SharpCap, at least not as far as the size/format of the AVI file goes).

cheers,

Robin
PReadertor
Posts: 4
Joined: Mon Dec 06, 2021 9:45 pm

Re: How do I recover a partially recorded AVI file?

#5

Post by PReadertor »

Hi Robin,

I get the following error:
Attachments
1.png
1.png (131.25 KiB) Viewed 564 times
User avatar
admin
Site Admin
Posts: 13177
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: How do I recover a partially recorded AVI file?

#6

Post by admin »

Hi Peter,

oops, try this...

Copy the following two files from the SharpCap 4.0 32-bit install folder (C:\Program Files (x86)\SharpCap 4.0) to the same folder as the AviRescue.exe program

Code: Select all

FrameFlt.dll
FrameFlt.dll.manifest
I think that should fix the problem. I will update the zip too.

cheers,

Robin
PReadertor
Posts: 4
Joined: Mon Dec 06, 2021 9:45 pm

Re: How do I recover a partially recorded AVI file?

#7

Post by PReadertor »

You Sir are a genius and a gentleman. Thank you
Post Reply