How to RECOVER CORRUPTED MP4 Files for FREE using FFmpeg and recover_mp4
HTML-код
- Опубликовано: 1 окт 2024
- Corrupted or broken MP4 videos is something of the worst most of us have witnessed in their days as creators. But fear not there is a way to recover broken MP4 Containers!
The reason why an MP4 video file can become broken is that it was not finished properly. This means for some reason the recorder was not able to write the end of the file to the storage device. In case of an mp4 container, this is a big deal because mp4 files contain important metadata at the end of the file. So if this piece is missing the entire video cannot be played back!
So to get around this problem we are going to extract the video and Audio Stream of the broken mp4 file which we want to fix. After we extracted the streams we are going to use the FFmpeg encoder to bundle our streams to a fixed mp4 file.
To learn more about how to fix broken or damaged mp4 video files visit the website of the creator of recover_mp4.
Business inquiries ▶ business@coasterpix.com
__
=== Links ===
recover_mp4 ▶ www.videohelp....
FFmpeg ▶ www.videohelp....
More info about revover_mp4 ▶ slydiman.me/eng...
Instagram ▶ / insta.greneey
Twitter ▶ / greneey
Don't click this link ▶ bit.ly/2QoJ708
__
=== Products in this Video (Affiliate links) ===
none, nothing to spend your money on here.
__
=== Clarification ===
Music ▶ artlist.io/
This video is about how to fix corrupted mp4 files using FFmpeg and recover_mp4. MP container can become corrupted when they're not getting finalized properly.
When my daughter was born, I was waiting in the hospital room to hold see her for the first time and hold her in my hands. I had setup my camera to record this moment and it froze while recording after about 5 minutes of recording and the entire file was corrupted. I saved the corrupted file anyway, hoping one day I will be able to find a fix. Today (after nearly 4 years) I found your tutorial and fixed it and watched the video for the first time :) You my friend are earning a lot of good karma here ;) :)
Waw, what a heard warming story. I'm glad I could help to safe and bring back such an important video.
Its not workin help :(
Now run the following command to start recovering:
recover_mp4.exe corrupted_file --novideo --noaudio --ext
@@serialmeelk you realize, you must rewrite the "corrupted_file" with whatever the name of your corrupted file is, right? He did it pretty quick in the video.
@@GreenBoxMedia i downloaded some RUclips videos and videos from websites would this method help me recover them?
@@rwcons1390 most likely not because you would need a working file from the same encoder. And I doubt you just happen to have one.
Actually worked!
I hope so!
worked for me too :) Really didn't expect that.
Brother can you tell which file to download as its showing many files
5 years ago, this man helps me fix a Breath of the Wild playthrough. 5 Years later, hear I am again, fixing a Call of Cthulhu playthrough. I commend you good sir, many thanks and many graces!
Glad I could help, twice
Thank you, this method saved my 1 hour of gameplay recorded using Nvidia Shadowplay. Thanks once again Genius.
Thanks, you really saved me! Especially since I'm not exactly a tech expert and you explained everything you were doing very clearly and still managed to put it into a less than 5 min video.
I am happy to help :) yeah I'm tired of 15 min tutorials where an Indian kid explains his whole life story too. (Nothing against Indians tho.) I try to talk as much as needed and as little as possible. 🤙
Review: thank God it runs, only if you skip it immediately at a certain time it stops for a long time & doesn't run, I haven't tried to see the full video for 1 hour straight
the picture is clear, only the sound is lost and irregular, but it's ok because I need a picture instead of sound🙏🏼😭😭
For sound you could see if rewtore.media can help with this.
@@GreenBoxMedia Using the media player it runs but waits a minute, then I try it on VLC and it runs straight away. Weaknesses: no sound (vague sound)
It might take some tries... For exampel i had a space in my broken files name and so it didnt work. As I closed the space in the title, everything went well and its playing again. You have no idea how much you saved my life! I owe you so much dude
glad it worked for most here. but .... Cannot open file "corrupted_file'.. damn. really hoping i dont' have to pay to fix this file.
you need replace "corrupted_file' with the actual file name +suffix
THIS MAN DESERVES A MEDAL! Literally have spent 2 days trying to fix this and came across this! Thank you so much dude!
Glad I could help!
This one didn't work for me unfortunately. The original file was 3.3Gb and the new repaired filed was only 66mb . When I ran the final command, I kept getting "Error applying bitstream filters to an output packet for stream #0:1.
It almost worked. :(
Sorry to hear that :c
No. We are only interested in the metadata from the working file.
@@GreenBoxMedia any solution to this?
Yes, try restore.media
@@GreenBoxMedia i followed the steps on the video I recovered a file it was supposed to be an hour long video but it was converted to a 9 second video which is like fast forwarded to the maximum level! you deserve a million subs! will subscribe definitely.
After analyzing the broken file i just get this:
Now run the following command to start recovering:
recover_mp4.exe corrupted_file --novideo --noaudio --ext
Then use ffmpeg to mux the final file:
ffmpeg.exe ???
Any idea what commands i could try to start recovering? Thanks
Someone give this guy a medal 🙏🍾Worked!
🎖
Can u please give me fixed a corrupted file
You saved my project so hard.. thank you so much for the tutorial!! Such a lifesaver!!
Happy to help! 👍
unfortunately 🤕didn't work for me: "FATAL ERROR: The file 'broken.mp4' cannot be recovered. The entire file is filled by FF byte!"
same, it says 0bytes. did you find a solution?
Brilliant, brilliant, brilliant! For a full day I struggled looking around for a fix on the internet because I didn't want to pay for fixing a video that cost me nothing to capture, but I didn't want to go to the trouble of going back to recapture it. You're a good teacher!
Either everyone are smart as hell or I am dumb. Because I don't get it.
3:18
We have to tell him? How to tell him?
I just copy that command and "tell him" to do what it suggested me to do.
Saved your ass? Use the THANKS feature and let me know ♥
THANK YOU! THANK YOU! THANK YOU! If you're in LA, I'll give you all the coffee you want!
@@BelievahDahDiva sorry I'm a european potato 🥔
@@GreenBoxMedia tysm brooo i already tried so much method and didnt work but with this method it worked perfectly fine
"Cannot open file 'corrupted_file'" Any idea?
@@steffanthusgaardgraversen4078 replace 'corupted_file' with the actual name of the file including it's suffix (.mp4)
My video corrupted due to power cut off during recording, I tried this way to repair my 50 mins of interview video. However, after recovering it, top part of the video is gray in color & the gray part of it sort of covered part of my subject's head. which means I cant use the footage for my edit. Any help? :(
This sounds like the file is either damaged or the tool could properly recover it due to a metadata mismatch. Best advice is to give restore.media a try if they (same dev) can repair it.
Searching 'mdat' atom in 'ding.mp4'...
Cannot find 'mdat' atom in first 64MB of 'ding.mp4'
FATAL ERROR: The file 'ding.mp4' cannot be recovered. The entire file is filled by 00 byte!
what should i do
You sir, are an absolute legend. Thank you for saving me a hell of a lot of re-recording
Glad to help
@@GreenBoxMedia je x cm v
I've been trying this with some files on my hard drive that got REALLY corrupted. They produce files, but they don't look anything like I expect them to. Any ideas on how to fix something like that?
It's also my case. When I tried to repair it it happened to be a sample of another video -- just the audio -- as if the videos smashed together somehow. I have no idea what to do. They're corrupted really bad. Did you find a solution?
Excellent step by step tutorial. This helped me recover a dash cam video from an accident that I really needed. Thank you so much!
Very happy to help and hopefully help you with that situation!
BRO, I'M GONNA SEND THIS VIDEO LINK TO ANOTHER RUclips CHANNEL WHO TRASH AT THIS THINGS, LEMME HELP YOU
Huh what up?
THANK YOU SOOOO MUCH!! haha
You're welcome!
Did not work for me. It says Cannot open file 'corrupted_file'
If you struggle using the command line give restore.media a shot,
I keep coming back to this video over and over. Such a brilliant tutorial, easily the most useful video I've ever found on the internet!
Didn't work. Followed it step by step but it says something like "it is not internal or external command". Not exactly but something like that.
Didn't work.
Make sure to use CMD and not PowerShell also make sure to change the directory (cd /d command)
@@GreenBoxMedia I am sure I did that. When trying the second time it showed this app can't run, please find version for your pc. (windows 10) It worked fine in the first attempt. Anyways thanks for putting in efforts to make such detailed video.
It just didn't work for me.
Took a second try, but worked marvelously! After watching 3 videos in which it was obvious no real effort was made to fix the files, but rather to sell a software, your solution was satisfying and incredibly easy. much obliged!
Glad to hear I could help!
Hi, the file is wanted to recover was 1.86 gb but the result file was only 9 mb. Also the audio is there but in place of video there are random pixels. Please guide
It recover the file but the audio make me sound like an alien. Any tips? Thank You btw, wouldn’t get the file if not for you :)
Might be that the audio was damaged in more then one way... Maybe try the latest version on restore.media (not sponsored)
Could I transfer the video from laptop to my smartphone?
It's so hard to understand what you're saying bro you need to talk slower.
Use the Playback speed in the RUclips player to slow it down.
For mine, it says "Cannot open file 'good.exe' please help me thank you!
good.exe? Isn't that suppose to read good.mp4?
same
Same awnser for you. Make sure it's the right (and exact) name. Most likely you missed the .mp4
@@GreenBoxMedia dw bout it bro i figured it out its that when i was recording i didnt save is as mp4 i saved it as m4v
you need to right the line " recover_mp4.exe good.mp4.mp4
--analyze"
for anyone struggling, i used this software its free and worked! however, the first time i tried it, and when it asked me for a second reference file, i chose a much smaller one, and it completely worked (after it failed with a larger reference file).. link is below:
www.risingresearch.com/en/dvr
/
Nice I did not know about this software yet! Thanks for sharing!
You are my savior! Your directions are so clear. It recovered as much as it could... the ends of my files cut off and in some files most of the files were cut off because of my phone's storage running out in the middle of recording. If that didn't happen I'm sure the result would have been perfect. Thank you! :)
Awesome to hear I could help! This feedback means a lot to me! ✌️
OMG I love you. I was recording very important moment in our laboratory and suddenly my Redmi stopped working......You are my hero. Thank you
I clicked the ( " Don't click this link" ) in the description. .
People like me just have to. That's when I subscribed.
Gonna give this a try and see if I can do it.
My Micro SD has over 60GB of corrupt MP4's and each one has an MP4-0 , & MP4-1 with it
So each corrupt video is comprised of three files.
I did everything you said, I really checked how I typed the name of my working mp4, and I got in CMD:
Cannot open file 'working.mp4'
So please help!
This means you are not in the same direcotry as your "working" file or the file has a diffrent name then working.mp4
If you struggle with the command line interface, you can give restore.media a try.
Thank you so much!
Great video and great explanation.
Worked perfectly, thank you!
I'm glad I could help!
By his double silver baller guns. Thanks agent
Happy to help!
FATAL ERROR: The file 'broken.mp4' cannot be recovered. The entire file is filled by 00 byte!
I guess its over :(
but thx for your video
same! did you find a solution?
You already save me two times man. Thanks :D
Haha glad to hear 🙌. I feel like I should start selling subscription for returning customers 😂
Cannot open file 'corrupted_file'
You need to replace those placeholders with the actual File-Name including Suffix.
You saved my project TKS!
Happy to help! :)
That's very good information. But when I convert it, the sound comes out, but the video doesn't come out. What's wrong? Help me!
Cannot find 'mdat' atom in first 64MB of 'bad.mp4'
FATAL ERROR: The file 'bad2.mp4' cannot be recovered. The entire file is filled by 00 byte!
what do i do now?
these were the files i recovered from a data recovery software but they ended up being restored but corrupted
same, it says 0bytes. did you find a solution?
hey man i really need your help cuz im seriously losing it, so i was working on a video and i did something stupid on the middle of it and downloaded a plugin for vegas, so this changed my original files to sfk files so i tried your method and it worked well until i got to the recover_mp4.exe broken.mp4 result.h264 result.aac --ext part. it says Cannot open file 'broken.mp4' and im at a lose of what to do now, is there any way to fix this or am i just doomed
The sfk files are only waveforms and complementary. Your mp4 have to be somewhere. However, your error message sounds like you either did not change "broken.mp4" to the name of the actual broken mp4 file or the path specified to the broken.mp4 is wrong.
@@GreenBoxMedia thank you for the reply i actually fixed it although i have no idea how, it just suddenly started working again but seriously i have no idea how
whenever i analyze the good video i have it tells me stats of my video and creates .hdr files but gives me no instructions after that
You migth have a newer h264 flavor this software cant work with. The same dev now runs restore.media which might be able to fix it.
thank you, i firstly had troubles but that was because i skipped the intro and missed the part that i need 1 corrupted file and one example file.
Glad it worked out in the end!
its telling me the same thing as when i open the file on windows media player that it cannot open the file.
Try restore.media instead.
I got mine through him mobtagg on instagram.
After all the stress am trying too..
*But at last only mobtagg showed me joy*
why woulkd i need it if i had the fixed file lmao
Not the fixed file but a working one.
can be ANY file as long as it was shot with the same camera.
someone crashed into my car but the recorded file in my camera is corrupted, i tried this but the result is laggy and blurry, any advice?
give restore.media a try. They can offer pro support.
@@GreenBoxMedia tnx for answering man, i really appreciate it.
Eventually I managed to open the video on the camera👍
I followed the onscreen cmd instructions but the file couldn't be put together without bunch of errors, makes me wonder if the files were really recovered or not
Thank you soo much. I managed to recover the only clip capturing the wedding vows. You've left a mark in my career - and reputation too.
im getting the below error, what to do
Stream #0: not enough frames to estimate rate; consider increasing probesize
Format aac detected only with low score of 1, misdetection possible!
So you need two files, the broken one and the good one. Do they have to be the same clip? Or..
Thank you so much for making this guide! I'm angry that I had to use it TWICE because of other people's mistakes, but eternally grateful, that I have this video to save the day.
BRO THIS WORKED THANK YOU!
You're welcome! Always a pleasure helping fellow content creators!
FOR FILE NOT OPENING ERRORS
Run dir command
And copy paste the name from there
working!! thanks :) Funktioniert bei mir! 2023 September
When re-combining the two streams with ffmpeg, I get 3 error3 at the end saying "Error opening input: End of file Error opening input file result.aac. Error opening input files: End of file" If anyone could help me figure this out, I would greatly appreciate it! I'm trying to recover some lost OBS footage from a very old video of mine
Didnt work for me just says Cannot open file 'video.mp4'
me sale este error Error opening input: No such file or directory
Error opening input file result.h264.
Error opening input files: No such file or directory
Nearly, but not quite :( It played somewhat but with no audio and cuts in and out - guess I need to re-record about 60GB worth of footage! Damn you Canon
ERROR: Unsupported video format mp4v. But my video in format mp4(((
Hello, can you help me I have done this 2 times but made a video with 97% audio And 3% of the video. why?
And my 17 min video be 5 seconds long
You can give restore.media a try
@@GreenBoxMedia Thank but thats not free
@@purplebeamcz This is correct, this video is the only free method I am aware off.
@@GreenBoxMedia Thank you
Omg this actually worked software like Wondershare Repairit are a joke when something like this works for free. Seriously this is the best
¯\_(ツ)_/¯
The ffmpeg not even working
Check restore.media if you have issues with this method.
Man it worked, the video is saved but the sound is really bad. Maybe an option or maybe an error during the process because I have seen some error messages.
i recoded some fpv car footage and the first clip worked fine but idk what happened to the second clip, I managed to almost fully recover it.
non-existing PPS 0 referenced - it gives such an error. the video is restored, but freezes on the first frame, but the sound is there. help me solve the problem.
Hellow.. 03:24 input .. Cannot open file 'corrupted_file' .. what?
unfortunately it doesn't work for me, my command tells me that the number of bands exceeds limit and my final result file is 0ko. I'll try again just to be sure but anyway your explanations are sooooo clear, I'm subscribing anyways!! thanks
Thank you so much for this! I'm a DM and was recording a dnd episode on obs when the power went out. Thank gods for the file still being there, though not playable. Had over 5 hours of audio content saved from the corrupted file, and was able to get it back! It was a pivotal episode too! My players and myself thank you, and their adventure continues still and will be remembered!
@GreenBoxMedia - I have FFmpeg install on my Mac Studio, was wondering if you knew of a Mac version of the recover_mp4.exe script for Mac terminal, that would handle the analysis of the GOOD video, so I can use that to help it determine how to recover my corrupted MP4. Many thanks!
For some reason, its not telling me what to do when i analyze the working file. It just says "Samples Per Chunk..." and file video.hdr created.
Edit: It worked, but it only gave me 23 seconds of it (it was an hour long).
tnx soooooo much man saved me
Happy to help ✌️
Really amazing, thank you.
My videos did not recovered perfectly though. Audio was out of sync (easily manageable) but the top 20% of vertical pixels were all strange and moving, just like old VHS tapes.
Any solution?
If not ... *lav* that the file extension is recover_mp4.exe corrupted_file result.h264 result.aac *--mainconcept* how? I still can't recover it, what conditions does the active video file require?
Hey there if you struggle with the command line interface I can recommend restore.media as an alternative
@@GreenBoxMedia Currently in the world, which software to recover corrupted video files has the highest success rate? Let me know if you know. Thank you.
restore.media will have the highest chance of success in my opinion. As it is the same developer that also created this rstore_mp4 software.
@@GreenBoxMedia I used that software but a lot of videos have horizontal stripes or green screens despite resorting to advanced functionality.
@@ninhandy Have you reached out to their support yet? They might be able to assist.
CMD says can not open corrupted file. I have recovered video file from broken SD card. Looks like there is no hope
I cannot open the ffmpeg folder to copy it... It just asks me to find an app on the Microsoft Store, which never works because it never actually lets me download the app and use it afterwards! My file is lost forever, thanks. 🙄
The audio is a bit off but holy sh*t, thank you man
Thank you Sir God Almighty bless you 😊
bro... am getting an error that "Cannot open file 'corrupted_file'"
for some reasons my mp4 files are folders now
That sounds odd, are there any contents inside the folder? Have you tried to give a folder a .mp4 extension?
@@GreenBoxMedia the folder is called mp4 and no theres nothing inside
I got mine through him mobtagg on instagram.
After all the stress am trying too..
*But at last only mobtagg showed me joy*
This still works now! Thank you so much! managed to recover 4 broken videos using this method!
So I got my video back, but no audio. Any tips on how to get the audio back too?
you've just saved me 60 dollars, i recorded both Rosalia and Charli XCX's presentation at Coachella. 4 hours of recording which i didn't wanted to lose. I figured out there had to be a way when i installed Wondershare Recoverit and i say under it's process's in taskmanager, the only one doing something was some fmmpeg weird name. When i saw the video could be recovered, but it was behind a paywall i decided to look for videos, found this one. Hopefully it'll the same result, now i just gotta wait, a lot of time for it to end, but im hopeful, thx for the video man
WOW! you saved my ass bro! it worked..
Happy to help! :)
@@GreenBoxMedia it didn't work for me :(
ezio bhai big fan yr
ezio bhai big fan yrr
Strangely, the result file type it produced was .mov even though my broken one was .mp4. It recovered the video and audio, but the top 1/3 of the video is greyed out and pixelated. Not sure why.
That's strange. Have you put in .mov at the end of the command?
Because mov most likely contains QuickTime... What I like to do when it won't work first try i check if restore.media can do it.
Cannot open file 'working.mp4'
If you struggle give restore.media a shot!
tried this as whats basically a last resort and the audio cuts off after 1 minute and the video is garbage keeps lagging and cutting out idk why my audio track came to 3 hours but the video was 48 minutes probably because of all the lagging that came with it but anyway i would say dont do this but i really dont know if its fake or not because it technically worked? i guess?
The lesson to learn is some things are just locked behind a paywall, and still end up being garbage.
cmd says cannot open file "pawka" localization is C:\Users\pawka\OneDrive\Desktop "pawka" is my account on win. I ran as administrator. "pawka" folder is also an administrator on my pc
i tried many ways anything can't help.
If you struggle with the command line you might want to give restore.media a shot which is a service to restore files for you.
I just hope this works for mkv files as well...
Coz I got a mkv video file at 360 GB where a Windows update interrupted rendering...
Nope, this is mpeg only. MKV however should not have a problem with getting interrupted. Unless the file by itself got corrupted in which case I got bad News for you.
This worked great. My file wasn't perfect, but it was recovered enough to work with!
Wow this actually works wtf, I had an encounter with a cop (just told me to get off the intersection) while riding my motorized bike but the file was corrupt. lol
Magic 🪄
I don't have a second "working" file. The main recording of my stream got corrupted. it's 26 GB. Will this work or am i just screwed?
Just record a new working file. Can be only seconds long.
My video file got corrupted because my battery went off before i could save the screen recording in my laptop. Its a huge file just doesn't play. Please help. 😥
BROOOOOO!!! IT WORKS YOU GIVE ME BIG SMILE!!! Now I can recover my corrupted porn video lmao hahahaha
Well much fun I guess...
Works for me except that there is no audio. The AAC sounds wrong, just some random clicks.
you can try and see if restore.media is any more successful.