Page 1 of 1

Corrupted mp4 file fix in Puppy?

Posted: Fri May 07, 2021 7:20 pm
by vtpup

I've got a corrupted video file in mp4 format.

I get a "moov atom not found" error message in ffmpeg when I try to fix it using one online suggestion using the ffmpeg faststart command like this:

Code: Select all

ffmpeg -i input_video_file.mp4 -vcodec copy -acodec copy -movflags faststart output_video_file.mp4.

Other suggestions mention something called "untrunc" to fix the moov atom problem but I can't find that in the Tahrpup repository.

I do have another video file shot by the same camera at the same settings and format, and from what I've read, untrunc can use that uncorrupted file to reconstruct the needed metadata for the corrupted file.

Has anybody found or used "untrunc" with puppylinux? Any help would be appreciated!


Re: Corrupted mp4 file fix in Puppy?

Posted: Fri May 07, 2021 8:35 pm
by ThruHammer

vt Mate, how big is your file? Got a Win box handy?

GitHub lists @ least two devs supplying untrunc src pkgs.

If you'd like to take a crack @ recovery on your system, make sure:

./untrunc --help

Lists its usage and doesn't throw an error.

Then proceed with these instructions:

You need both the broken video and an example working video (ideally from the same camera, if not the chances to fix it are slim).

Run this command in the folder where you have unzipped and compiled untrunc but replace the /path/to/... bits with your 2 video files:

./untrunc /path/to/working-video.m4v /path/to/broken-video.m4v

Then it should churn away and hopefully produce a playable file called broken-video_fixed.m4v.

That's it you're done!

I pm'd you a dwnld link. The binary is 63mbs unpacked.

Good luck!


Re: Corrupted mp4 file fix in Puppy?

Posted: Tue Nov 21, 2023 5:17 am
by puppyuser22222
ThruHammer wrote: Fri May 07, 2021 8:35 pm

I pm'd you a dwnld link. The binary is 63mbs unpacked.

Can I have one for fossapup too?


Re: Corrupted mp4 file fix in Puppy?

Posted: Tue Nov 21, 2023 2:13 pm
by bigpup

vtpup,

What exact full name of the Puppy version you are using?


Re: Corrupted mp4 file fix in Puppy?

Posted: Tue Nov 21, 2023 4:15 pm
by puppyuser22222
bigpup wrote: Tue Nov 21, 2023 2:13 pm

vtpup,

What exact full name of the Puppy version you are using?

I know you asked OP, but mine is fossapup64 Linux 5.4.53, and I have the same issue as OP. I can't find untrunc binaries anywhere.


Re: Corrupted mp4 file fix in Puppy?

Posted: Wed Nov 22, 2023 7:44 am
by Jasper

Not sure what you are trying to achieve but maybe this mp4v2 toolkit might help?

MP4v2 - A C/C++ library to create, modify and read MP4 files

You might find it in your PPM or alternatively you will have to compile/build it yourself for TahrPup.

https://github.com/enzo1982/mp4v2


Re: Corrupted mp4 file fix in Puppy?

Posted: Fri Nov 24, 2023 2:33 pm
by rockedge

@puppyuser22222,
I have compiled untrunc in F96-CE_4 (from https://github.com/ponchio/untrunc) and have made a PET package supplying it. This should be okay in Fossapup64.
The PET will place untrunc in /usr/bin

If anyone tries it out please let me know if it works! :ugeek:

In my system I have it in /usr/local/bin

Screenshot(62).jpg
Screenshot(62).jpg (53.18 KiB) Viewed 494 times