Hi, I am new to this forum and this is my first post. I have an issue with a 32gb .mp4 file (Here is the codec info of the working file that it is similar to the corrupted one: https://files.videohelp.com/u/303693/Working%20clip%20codec%20info.jpg). Camera ran out of battery before recording was stopped. An .rsv file was created instead of an .mp4 file. I tried fixing it with recover_mp4, but after all the steps I get a glitchy file (https://files.videohelp.com/u/303693/video%20error.jpg) that has at the top 25% of the screen always a glitch or artifact.
The steps I followed are this:
When I analyze it it detects file and format: recover_mp4.exe good.mp4 --analyze
--------------------------------------------------
Video statistics:
Sample Size: Min 0x67ac, Avg 0x13ded, Max 0xc1a25
Samples Per Chunk: Min 24, Avg 24, Max 24
Sound statistics:
Sample Size: Min 0x4, Avg 0x4, Max 0x4
Samples Per Chunk: Min 23040, Avg 23040, Max 23040
Fixed Chunk Size: 0x16800
Now run the following command to start recovering:
recover_mp4.exe corrupted_file result.h264 result.wav --sony --pcmfix 16800
Then use ffmpeg to mux the final file:
ffmpeg.exe -r 50.000 -i result.h264 -i result.wav -c:v copy -c:a copy result.mov
---------------------------------------------
So I assume it is detecting the working file properly. Then I try to recover the file using: recover_mp4.exe bad.rsv result.h264 result.wav --sony --pcmfix 16800. And this is the output:
-----------------------------------------------------
%100.000
Complete!
H264 IDR NAL unit size: Min 0xF3, Avg 0x1A20D, Max 0x331C2
H264 non-IDR NAL unit size: Min 0x2, Avg 0x466D, Max 0x33269
Audio frame size: Min 0x16800, Avg 0x16800, Max 0x16800
Skipped=4001,297,142092,12838670
Skipped 4001 blocks: Min 0x129, Avg 0x22B0C, Max 0xC3E70E
WARNING: The current max AVC NAL unit (IDR) size 0x3328B.
WARNING: The current max AVC NAL unit (non IDR) size 0xACCCC.
Try to change it adding parameter --avcidrmax 2DFFB and/or --avcxmax 2E091
Video=85.073
'result.h264' created, size 29116545195 (85.073%)
Audio=2.894
'result.wav' created, size 990351360 (2.894%)
----------------------------------------------------------------------
Even if I try adding the parameters suggested (--avcidrmax 2DFFB and/or --avcxmax 2E091) I get the same skipped blocks and warnings. Sound file it is working fine, and I get an H.264 file that it is around 3Gb smaller than the original (I assume the smaller file it is for the missing information in the final file?).
Then if I use ffmpeg to mux the final file: ffmpeg.exe -r 50.000 -i result.h264 -i result.wav -c:v copy -c:a copy result.mov (I tried result.mp4 also and I get same result of course). And in this step, I also get this errors that I assume are coming from the previous step: https://files.videohelp.com/u/303693/ffmpeg%20error.jpg
Any idea what am I doing wrong? Or how I could fix this? I feel like I am pretty close since I get a working file except that is a 25% glitchy) Any idea or orientation helps. Thanks in advance!
+ Reply to Thread
Results 1 to 8 of 8
-
-
*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
-
You can try an online version of this tool - restore.media. It's an upgraded tool with GUI, so you don't have to run all those commands. It's not free, but has a video preview, so you can check if it can fix the video without the glitch. Also, my guess is that you're using a wrong sample file. E.g. if it has some different settings, like frame rate, vertical/horizontal recording, etc., then the resulting video may have such glitches.
-
Thank you very much for replying! The video was really useful because I believe that the file was not finalized properly. I tried several times to copy a chunk of the info from the end of the working file https://files.videohelp.com/u/303693/good%20file%20end.jpg to the end of corrupted file https://files.videohelp.com/u/303693/Bad%20file%20ending.jpg, but so fat I had no luck. Also the beginning of both files (the good https://files.videohelp.com/u/303693/Good%20file%20beginning.jpg and the bad https://files.videohelp.com/u/303693/Bad%20file%20beginning.jpgone) are different so I am not sure what is going on with that either.
Unfortunately I have 0 experience with Hex Editing.
Any further guidance will be appreciated. It is weird because I feel I am very close to fix it since the repaired file it has the same lenght and plays properly, only it has those glitches that makes it useless.
Thanks again for your help! I really appreciate it! -
Doesnt the camera itself have a tool to finalise these files while it's still
in the device? -
Hello! Thank you very much for replying! I will try to upload it to restore.media to see if they are able to fix it without the glitch. Since this was a low budget project, I am trying to save every dime, even thou the fee might be low (considering a video of over an hour in length), I am from Argentina, and the cost of a fee in dollars it is very high since our currency it is very devaluated. Regarding the sample file I will try to get another one and check again even thou I believe the settings were the same but I might be wrong (fingers crossed). But it is true, it feels that it is very close, maybe some settings are different and since I do not have a lot of experience with recovering files I do not know how fixed files with different settings looks like
Thanks for your time! -
Try this software otherwise: Wondershare Repairit. (i've used sucessfully on a couple of videos)
same principle but automated and if it fails it has an advance mode that'll pop up where you provide a good sample video (same codec, frame size etc..) and it'll try to fix your bad video*** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
Similar Threads
-
I need help error: cannot open input file (video.mp4) -4
By Ghostmariachi in forum Video Streaming DownloadingReplies: 6Last Post: 1st Nov 2021, 20:33 -
Need help recovering mp4 files
By aruwin in forum RestorationReplies: 10Last Post: 24th Dec 2020, 05:05 -
Help by recovering broken mp4
By Tobey in forum RestorationReplies: 4Last Post: 9th Aug 2019, 10:15 -
Corrupted MP4?
By Juni745 in forum Video Streaming DownloadingReplies: 6Last Post: 28th Jun 2019, 08:58 -
Recover_mp4 Error: Unsupported video format
By DChosid in forum Video ConversionReplies: 9Last Post: 15th Jun 2018, 11:34