Corrupted mp4 file fix in Puppy?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
vtpup
Posts: 745
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 171 times
Contact:

Corrupted mp4 file fix in Puppy?

Post 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!

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
ThruHammer
Posts: 257
Joined: Sun Jul 12, 2020 1:08 am
Location: Ray Brook, NY
Been thanked: 14 times

Re: Corrupted mp4 file fix in Puppy?

Post 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!

puppyuser22222
Posts: 2
Joined: Tue Nov 21, 2023 5:15 am

Re: Corrupted mp4 file fix in Puppy?

Post 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?

User avatar
bigpup
Moderator
Posts: 6985
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 906 times
Been thanked: 1522 times

Re: Corrupted mp4 file fix in Puppy?

Post by bigpup »

vtpup,

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

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

puppyuser22222
Posts: 2
Joined: Tue Nov 21, 2023 5:15 am

Re: Corrupted mp4 file fix in Puppy?

Post 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.

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: Corrupted mp4 file fix in Puppy?

Post 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

User avatar
rockedge
Site Admin
Posts: 6540
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2748 times
Been thanked: 2620 times
Contact:

Re: Corrupted mp4 file fix in Puppy?

Post 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 497 times
Attachments
untrunc.pet
(111.68 KiB) Downloaded 22 times
Post Reply

Return to “Users”