DPReview.com is closing April 10th - Find out more

NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Started Oct 28, 2016 | Discussions
Jefbak
Jefbak Forum Member • Posts: 55
NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

For the first time I have a corrupted .MP4 video file from my Samsung NX1 that I can't view or convert. All the rest of the files from the shoot work and there is nothing special or different about this file: It is a 1920x1080 23.98 (FHD) Pro Quality setting file. I've tried converting it with both the Samsung movie converter, and Adobe Media Encoder. I've tried copying the file off the card and converting from the card directly. No luck. Only the first frame of the file is available in preview and only the audio is kept when converted with the Samsung converter (nothing gets converted with media encoder).

I always initialize my SD card before a shoot, it is plenty fast and as I said - all the other files converted just fine (one was even larger at 6GB).

I am on a mac and I was hoping to at least recover part of the file. Being 3GB I know the video is there somewhere, I just can't get to it.

Samsung NX1
If you believe there are incorrect tags, please send us this post using our feedback form.
Alex Karahalios
Alex Karahalios Regular Member • Posts: 103
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?
2

I would recommend trying iffmpeg (http://www.iffmpeg.com) which is a video converter GUI front end for ffmpeg. They have a free trial period. You can use ffmpeg (available for free) on the command line also, but it’s much simpler to use iffmpeg and see if you can convert the video.

As a quick test, you can also use MPV (https://mpv.io), which is a free video player that uses ffmpeg to play h.265 (and other) videos. This would give you a quick check to see if the video is playable. If it’s playable, then iffmpeg can be used to convert it. If it’s not playable, I would still give iffmpeg a try since it has a lot of options that can be selected.

 Alex Karahalios's gear list:Alex Karahalios's gear list
Sony FE 90mm F2.8 macro Sony FE 12-24mm F2.8 GM Sony a1 Sony FE 24-70mm F2.8 GM Sony FE 50mm F1.2 GM +3 more
Jefbak
OP Jefbak Forum Member • Posts: 55
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Thanks, I installed ffmpeg using homebrew method but I can't figure out where to tell iffmpeg where ffmpeg is. Ugh.

Alex Karahalios
Alex Karahalios Regular Member • Posts: 103
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?
1

Just drag the ffmpeg binary directly on top of iffmpeg. It will then prompt you to copy it to it's magic location (or use it in place). Or use Preferences->FFmpeg Manager and specify the binary.

There is also a link on the iffmpeg site (http://www.iffmpeg.com/ffmpeg-info.html) which directs you to several websites to download the ffmpeg binary directly. That's what I use, since they update that binary very frequently. The website I use is http://evermeet.cx/ffmpeg/

 Alex Karahalios's gear list:Alex Karahalios's gear list
Sony FE 90mm F2.8 macro Sony FE 12-24mm F2.8 GM Sony a1 Sony FE 24-70mm F2.8 GM Sony FE 50mm F1.2 GM +3 more
Jefbak
OP Jefbak Forum Member • Posts: 55
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Thanks got iffmpeg running now. I imported a the bad file and a working file to compare. The bad file is showing the wrong frame rate of 29.97 fps (it was 23.98) and no preview image.

I ran the prores and .h264 presets but I just get audio. Not sure what else I can do to try get any working part out of  it yet.

Jefbak
OP Jefbak Forum Member • Posts: 55
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Okay well I checked the finished when shortest stream ends box in iffmpeg settings and converted it to an .h264 file that is readable by MPEG Streamclip but not Quicktime, VLC, FCPX or Adobe Media Encoder CC (so crazy!).

Now I am trying to export using MPEG Streamclip to Prores 422 but it is going very slow. I do see the video preview window updating however, so that is a good sign. I might save this file yet thanks to you, Alex!

Alex Karahalios
Alex Karahalios Regular Member • Posts: 103
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?
1

I'm glad it worked for you.

As a side note, you can view the ffmpeg command that was generated by going into Preferences->Convert and checking "Enable FFmpeg command line editing". Before the process begins, you get a pop up box that will show you the ffmpeg command (which you can edit if you want). I use this often to copy the command line so I can make my own batch scripts.

 Alex Karahalios's gear list:Alex Karahalios's gear list
Sony FE 90mm F2.8 macro Sony FE 12-24mm F2.8 GM Sony a1 Sony FE 24-70mm F2.8 GM Sony FE 50mm F1.2 GM +3 more
Kisaha Senior Member • Posts: 2,300
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Let us know how it went. So, is there any certain way to fix corrupted H265 files? I am on PC.

RiccoT Forum Member • Posts: 94
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?
1

another way to fix your hevc file: http://slydiman.me/eng/mmedia/recover_mp4.htm

i was really happy to see, he finally added hevc support!

edit: sorry, i didn't see you are using a mac. this solution only works on windows 

 RiccoT's gear list:RiccoT's gear list
Panasonic Lumix DC-S1R Sigma 14-24mm F2.8 DG DN Panasonic Lumix S 20-60mm F3.5-5.6 Sigma 100-400mm F5-6.3 DG DN OS Sigma 85mm F1.4 DG GN +1 more
Kisaha Senior Member • Posts: 2,300
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?
1

RiccoT wrote:

another way to fix your hevc file: http://slydiman.me/eng/mmedia/recover_mp4.htm

i was really happy to see, he finally added hevc support!

I do not know the guy, but I have contacted him before for the same reason (H265 implementation), he helped mea lot, while he was on vacation (!), I did a small donation as well even before he helped me, because he is worth it. he is a really good guy and does a lot of work for the benefit of the community, we should help these people.

Kisaha Senior Member • Posts: 2,300
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Jefbak wrote:

Okay well I checked the finished when shortest stream ends box in iffmpeg settings and converted it to an .h264 file that is readable by MPEG Streamclip but not Quicktime, VLC, FCPX or Adobe Media Encoder CC (so crazy!).

Now I am trying to export using MPEG Streamclip to Prores 422 but it is going very slow. I do see the video preview window updating however, so that is a good sign. I might save this file yet thanks to you, Alex!

How it went?

Jefbak
OP Jefbak Forum Member • Posts: 55
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?
2

Iffmpeg in combination with MPEG Streamclip did manage to restore the file to a usable form. There may have been other ffmpeg options that I didn't know about that might have saved me step but this is how it went.

I tried a basic ffmpeg container copy first with no luck. The file still would only play audio in any tool I tried.

iffmpeg was not able to convert the file to a working prores or hevc format but it did out a .h264 high profile version that only one of my video tools would play (mpegstreamclip). This was lucky bacause compressor, media encoder, VLC and QuickTime could not play converted file. So I converted to Prores using mpeg strramclip and imported that file into FCPX and was able to continue on with the project.

Ill probably but a new memory card to be on the safe side and I greatly appreciate Alex's advice!

Isaacarte New Member • Posts: 2
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

I had the same problem with some of my H265 files, which suddenly would show in Premiere Pro Windows 10 as "missing media". When I tried to link them, only the audio would link. When I tried importing them again into a different project, they would not import. So I brought them over into a Mac. I was able to open them in Quicktime and export them as H264, and now I'm a happy camper. Except I'm giving up on H265. Back to H264 for me. I'm considering converting my current project from H265 to H265 to avoid further problems.

markyboy81 Veteran Member • Posts: 4,778
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Isaacarte wrote:

I had the same problem with some of my H265 files, which suddenly would show in Premiere Pro Windows 10 as "missing media". When I tried to link them, only the audio would link. When I tried importing them again into a different project, they would not import. So I brought them over into a Mac. I was able to open them in Quicktime and export them as H264, and now I'm a happy camper. Except I'm giving up on H265. Back to H264 for me. I'm considering converting my current project from H265 to H265 to avoid further problems.

There was an issue with windows 10 where after an update the h265 codec was removed and you had to pay to get it back! Something to do with licensing I think. Anyway, what a cheek! Was only £1 or so though..

 markyboy81's gear list:markyboy81's gear list
Sony ZV-1 Samsung NX1000 Samsung NX3000 Samsung NX1 Samsung NX500 +9 more
Isaacarte New Member • Posts: 2
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Isaacarte wrote:

I had the same problem with some of my H265 files, which suddenly would show in Premiere Pro Windows 10 as "missing media". When I tried to link them, only the audio would link. When I tried importing them again into a different project, they would not import. So I brought them over into a Mac. I was able to open them in Quicktime and export them as H264, and now I'm a happy camper. Except I'm giving up on H265. Back to H264 for me. I'm considering converting my current project from H265 to H265 to avoid further problems.

I meant convert it to H264, but I don't think that's a possibility without losing resolution, so I'm going to have to convert everything to ProRes, which takes so much more space than H264.

markyboy81 Veteran Member • Posts: 4,778
Re: NX1 .h265 HEVC Corrupt .MP4 Video File Recovery Possible?

Isaacarte wrote:

Isaacarte wrote:

I had the same problem with some of my H265 files, which suddenly would show in Premiere Pro Windows 10 as "missing media". When I tried to link them, only the audio would link. When I tried importing them again into a different project, they would not import. So I brought them over into a Mac. I was able to open them in Quicktime and export them as H264, and now I'm a happy camper. Except I'm giving up on H265. Back to H264 for me. I'm considering converting my current project from H265 to H265 to avoid further problems.

I meant convert it to H264, but I don't think that's a possibility without losing resolution, so I'm going to have to convert everything to ProRes, which takes so much more space than H264.

Converting to h264 doesn't change the resolution, it's just a less efficient codec that requires a higher bitrate.

 markyboy81's gear list:markyboy81's gear list
Sony ZV-1 Samsung NX1000 Samsung NX3000 Samsung NX1 Samsung NX500 +9 more
Keyboard shortcuts:
FForum MMy threads