Friday, August 21, 2026

Fixing corrupted mp4 files

 I went to grab some files from my Rexing dashcam, but they wouldn't play. It seems there's an issue when the dashcam powers off with the engine. So I went down the rabbit hole to see if I could recover them. Of course, most options didn't work, and some seem to be scams.

These are the files I'm working with

MediaInfo details

454295552B S2026_0817_153842_007.MP4 - simple repair

319029248B S2026_0817_165138_001.MP4 - hard repair

565644598B S2026_0817_174309_001.MP4 - reference file

Kind of worked

Clever Online Video Repair recovered the more difficult S2026_0817_165138_001.MP4 file. It recovered 314244981 bytes for $6.72, including tax. On S2026_0817_153842_007.MP4, it recovered 448,217,987 bytes for $7.35, including tax. You should be able to sign up for better pricing, but it requires sending you emails, which it seems unable to do. The video looks good, and they appear to be full-length, but the audio was not good at all. Fortunately, I did not want the audio anyway. The previews looked good, but I waited to look at the others before paying for the repaired files since I really wanted an app.


Repaired S2026_0817_165138_001.MP4


EaseUS Fixo Video Repair app appears to work from the previews, but you need to sign up for $49.95/year to get the actual files. But if you go through the app, the price is higher; then it offers 40% off if you decline the first offer. That felt scammy to me, so I didn't pay them. The interface looks more polished than Stellar's, at least.


Did not work at all

Paid

Stellar Repair for Video online chugs for a while and shows you a thumbnail that looks like it works, but then wants you to sign up for a $9.99/month subscription to get the video, or optionally buy and download the software for $ 49.99. Since it was the top-rated option I found, I bought the app that claims to fix photos as well for $59,99. It did not work on either file. A total waste of money, and buying the software doesn't get you off the "free" level online. The refund request link says it sends a code, but it didn't work for me. The interface is pretty sad too. You can't even resize the window. I'll be watching PayPal for any more charges.

Free

Untrunc free app. Did not work for either file. Its GUI is about as primitive as Stellar's. It is resizable but closes as soon as it is done so you can not see the output. 


The end of the output from the command line is:

Info: Found 7980 packets ( mp4a: 4509 avc1: 3471 avc1-keyframes: 289 )

Info: Duration of mp4a: 2min 24s 288ms  (144288 ms)

Info: Duration of avc1: 2min 24s 625ms  (144625 ms)

Warning: Unknown sequences: 11

Warning: Bytes NOT matched: 3.26MiB (0.7517%)

Warning: Skipped atoms in mdat: 290 -> 5.66MiB total

Info: saving F:\CARDV\Movie\S2026_0817_153842_007.MP4_fixed-s1-k.MP4

src/atom.cpp:479: void BufferedAtom::write(FileWrite&, bool): Assertion `end - start == new_length' failed.

VLC Media Player: Rename mp4 to avi. Open VLC Media Player, go to Tools > Preferences > Input/Codecs, set "Damaged or incomplete AVI file" to Always fix, then try playing your MP4 (or rename it to .avi). You can also use VLC’s Convert / Save tool to re-mux the file. Neither way worked.

FFmpeg: Run the command ffmpeg -i corrupted.mp4 -c copy repaired.mp4 in your terminal or command prompt to quickly re-wrap broken headers without re-encoding. Choked when opening the files. Output:

[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b2ed85adc0] moov atom not found

[in#0 @ 000001b2ed876c40] Error opening input: Invalid data found when processing input

Error opening input file S2026_0817_153842_007.MP4.

Error opening input files: Invalid data found when processing input




No comments:

Post a Comment