Tuesday, March 19, 2019

Recovering damaged videos with untrunc

This is more for personal reference but I know someone somewhere will need this and I want to have it here as a light house because this was a pain to figure out.

There is an application called untrunc which can help recover a damaged video file as long as you have another file that was produced by the same device, in my case I am recording playthroughs and this is happening because the hard drive is giving out on me for random reasons, I can't ask much from a hard drive that has been in use for more than 8 years.

untrunc can be found here: https://github.com/ponchio/untrunc in its original form and an improved version here: https://github.com/anthwlock/untrunc

The one from anthwlock is the one that worked for me, the one from ponchio would not compile no matter what I did, for reference this was done both in Debian 9 and 10.

Once I followed the steps from anthwlock I had it installed, I added it to /usr/bin and I ran first the following command:

untrunc -v (good video) (bad video) because as it was the thing would not go through, I did not understand why though so -v told me that there was an issue with consistency, because the first video was larger than the second, how did I go around this? By using -a and -s so it looks something like this:

untrunc -a -s (good video) (bad video)

You may get a ton of prompts telling you if it's OK to continue, go ahead and from there you should be able to recover the damn thing, go at it, edit it and have fun!

Installing OSSEC 3.7.0 on Debian 11 (Bullseye) How-To

Now that version 3.7.0 has been released I took another deep dive into how this is compiled from Source, as usual I brought this onto me bec...