maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Recover corrupted video after phone reboot during recording (https://talk.maemo.org/showthread.php?t=84800)

denisx 2012-06-10 11:03

Recover corrupted video after phone reboot during recording
 
Hello,
was wondering if someone could help in recovering a corrupted video recorded on my Nokia n900. The phone did a random reboot during recording and now I'm stuck with a video file that is not playable(tried mpc, vlc ...).

I tried recovering using some tools i found on the internet but none of them worked.

From what I could gather, the video is lacking the moov segment at the end of the file, but I have no idea how to restore it or if it is even possible.

The file is a mp4 video with the following header information:
ftyp: mp42
isom:3gp6

I'd be grateful for any help (links to relevant info? maybe someone had to do this in the past?).

Thanks.

zimon 2012-06-10 11:27

Re: Recover corrupted video after phone reboot during recording
 
Have you tried to play with mplayer?

You could try to fix with mencoder:
Code:

mencoder -forceidx -oac copy -ovc copy /tmp/src.mp4 -o /tmp/dst.avi

qwazix 2012-06-10 11:27

Re: Recover corrupted video after phone reboot during recording
 
maybe use a commandline video splitter that will split the file without needing to display it first. That way maybe you end up with a playable and a non playable part.

Estel 2012-06-10 11:29

Re: Recover corrupted video after phone reboot during recording
 
I had to do (almost) exactly same thing, some time ago. I was able to recover video, although, results were not very satisfying - audio/video sync was PITA to repair (more precisely, frames per second on video), and somehow, keyframes were messed up - i don't know how it's possible in already recorder stream, but it looked like all keyframes stacked up together, so, periodically, You've had perfect picture for a few seconds, going gradually worse and worse... to the point of awful quality, then, PONG! awesome quality again, going gradually worse and worse... Everything over the same period of time (7-8 seconds), rinse and repeat.

Finding a tool was also a PITA - to my knowledge, there is only one freeware tool capable of doing so, and, to make things worse, company producing it made it payware starting from some version number, and carefully deleted prior version from almost everywhere. Newer version doesn't have any better functionality, and it's perfectly legal to use older, freeware version, but - no idea how they achieved that - links for downloading it doesn't seem to exist *anywhere*.

fortunately, I was able to get in contact with someone who used it during times of freeware, and wrote on his blog about it - he still had program on his hard drive, and was kind enough to send it to me.
---

So, here You have it:
Videorepair 1.5

I don't remember usage instructions, but, it was quite straightforward. After all, you can always check their website - new payware version uses same procedure, IIRC.

/Estel

denisx 2012-06-10 11:36

Re: Recover corrupted video after phone reboot during recording
 
Quote:

Originally Posted by zimon (Post 1220124)
Have you tried to play with mplayer?

You could try to fix with mencoder:
Code:

mencoder -forceidx -oac copy -ovc copy /tmp/src.mp4 -o /tmp/dst.avi

Yes i did try playing it with both media player and media player classic.

This is the error message that I get:
Code:

Media Type 0:
--------------------------
Unknown

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: Unknown GUID Name {08E22ADA-B715-45ED-9D20-7B87750301D4}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0


Media Type 1:
--------------------------
Unknown

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0


denisx 2012-06-10 12:23

Re: Recover corrupted video after phone reboot during recording
 
Quote:

Originally Posted by Estel (Post 1220126)
I had to do (almost) exactly same thing, some time ago. I was able to recover video, although, results were not very satisfying - audio/video sync was PITA to repair (more precisely, frames per second on video), and somehow, keyframes were messed up - i don't know how it's possible in already recorder stream, but it looked like all keyframes stacked up together, so, periodically, You've had perfect picture for a few seconds, going gradually worse and worse... to the point of awful quality, then, PONG! awesome quality again, going gradually worse and worse... Everything over the same period of time (7-8 seconds), rinse and repeat.

Finding a tool was also a PITA - to my knowledge, there is only one freeware tool capable of doing so, and, to make things worse, company producing it made it payware starting from some version number, and carefully deleted prior version from almost everywhere. Newer version doesn't have any better functionality, and it's perfectly legal to use older, freeware version, but - no idea how they achieved that - links for downloading it doesn't seem to exist *anywhere*.

fortunately, I was able to get in contact with someone who used it during times of freeware, and wrote on his blog about it - he still had program on his hard drive, and was kind enough to send it to me.
---

So, here You have it:
Videorepair 1.5

I don't remember usage instructions, but, it was quite straightforward. After all, you can always check their website - new payware version uses same procedure, IIRC.

/Estel

The link you provided has a damaged archive. I'll try and find another copy on the net.

Thanks for the reply.

Estel 2012-06-10 12:34

Re: Recover corrupted video after phone reboot during recording
 
No, it doesn't (just downloaded it myself). try downloading it another time - I think you might have started downloading it, while I was still uploading (and as a result, got only part of file).

As for searching anywhere else, of course, You may, but I really doubt You'll be able to.

/Estel

denisx 2012-06-10 12:45

Re: Recover corrupted video after phone reboot during recording
 
Quote:

Originally Posted by zimon (Post 1220124)
Have you tried to play with mplayer?

You could try to fix with mencoder:
Code:

mencoder -forceidx -oac copy -ovc copy /tmp/src.mp4 -o /tmp/dst.avi

Hi zimon,
I tried what you have sugested and this is what I get.

Code:

enis@ubuntu:/media/Nokia N900/DCIM$ mencoder -forceidx -oac copy -ovc copy 20120606_045.mp4 -o copy.avi
MEncoder svn r34540 (Ubuntu), built with gcc-4.6 (C) 2000-2012 MPlayer Team
success: format: 0  data: 0x0 - 0x7300000
libavformat version 53.21.0 (external)
Mismatching header version 53.19.0
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f091eb4d940]moov atom not found
LAVF_header: av_open_input_stream() failed
ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f091eb4d940]moov atom not found
LAVF_header: av_open_input_stream() failed
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.

Exiting...

Any sugestions?

denisx 2012-06-10 12:47

Re: Recover corrupted video after phone reboot during recording
 
Quote:

Originally Posted by Estel (Post 1220146)
No, it doesn't (just downloaded it myself). try downloading it another time - I think you might have started downloading it, while I was still uploading (and as a result, got only part of file).

As for searching anywhere else, of course, You may, but I really doubt You'll be able to.

/Estel

Yep, tried again and it downloaded fine.
I'll give it a go.

mihneasim 2013-02-21 09:07

Re: Recover corrupted video after phone reboot during recording
 
Quote:

Originally Posted by Estel (Post 1220126)

So, here You have it:
Videorepair 1.5

/Estel

Just registered to .. Thank you a million, Estel!! It worked flawlessly!! The secret is to start is as Administrator (Windows 7) and choose a healthy file as a reference file, recorded with the same device.

My iPhone 4 shut off exactly when saving the movie after recording it - low battery and very cold outside. I tried many ways to recover it, none worked until I tried your suggestion! Great job sharing this!!

Estel 2013-02-21 10:21

Re: Recover corrupted video after phone reboot during recording
 
I'm glad it helped you - I remember going through real PITA when trying to find solution. BTW, hosting I've used is quite OK, but, nevertheless, may disappear one day - as program developers made quite huge effort to make sure, that freeware version disappear from every download page (despite it being perfectly legal), I suggest mirroring it somewhere.

Quite a life saver, for videos recorder by N900 (or other devices, using same format).

/Estel

Daniela.mollie 2013-03-25 05:35

Re: Recover corrupted video after phone reboot during recording
 
Hello:),
Its quite difficult but can be repaired easily:confused:. First, stop experimenting with that video file of your Nokia, it may worsen the situation. I would suggest you to use Video Repair utility, that could fix your corrupt video file on your Nokia. even if the video is severely corrupt it easily fixes the file. one important point is this tool does not edit or harm the source file. it just extracts the contents from it and saves it in a new file:). I feel, this tool would be the best solution for your worries about how to fix corrupted mpeg video files? first, you can go for trial version, then use purchase the software.Just give a try, Hope it works fine.

Best of luck.:cool:

Estel 2013-03-27 18:11

Re: Recover corrupted video after phone reboot during recording
 
Why purchase, if there is a freeware version with *same* capabilities, available legally? I've posted it, few pages back.

/Estel

michaaa62 2013-03-27 18:44

Re: Recover corrupted video after phone reboot during recording
 
@Estel: I would think this is pure advertisement, nothing more, nothing less!
Really thought about reporting, but you already mentioned it years ago :), so i did not.

marmistrz 2013-07-24 11:31

Re: Recover corrupted video after phone reboot during recording
 
Quote:

Originally Posted by Estel (Post 1220126)
I had to do (almost) exactly same thing, some time ago. I was able to recover video, although, results were not very satisfying - audio/video sync was PITA to repair (more precisely, frames per second on video), and somehow, keyframes were messed up - i don't know how it's possible in already recorder stream, but it looked like all keyframes stacked up together, so, periodically, You've had perfect picture for a few seconds, going gradually worse and worse... to the point of awful quality, then, PONG! awesome quality again, going gradually worse and worse... Everything over the same period of time (7-8 seconds), rinse and repeat.

Finding a tool was also a PITA - to my knowledge, there is only one freeware tool capable of doing so, and, to make things worse, company producing it made it payware starting from some version number, and carefully deleted prior version from almost everywhere. Newer version doesn't have any better functionality, and it's perfectly legal to use older, freeware version, but - no idea how they achieved that - links for downloading it doesn't seem to exist *anywhere*.

fortunately, I was able to get in contact with someone who used it during times of freeware, and wrote on his blog about it - he still had program on his hard drive, and was kind enough to send it to me.
---

So, here You have it:
Videorepair 1.5

I don't remember usage instructions, but, it was quite straightforward. After all, you can always check their website - new payware version uses same procedure, IIRC.

/Estel

Is it possible to run it somehow natively on Linux or do I have to use wine/win?

Estel 2013-07-24 20:05

Re: Recover corrupted video after phone reboot during recording
 
closed source windows freeware, so what do you expect? At least, they have really written it themselves, not just ripped some FOSS project (sadly, there is no FOSS project able to recover our videos in such case).

Anyway, wine *is* native. It wouldn't be native, if you would had to emulate something (like, cpu - but of course, I got what you meant, anyway, so mentioning it just for the record).

/Estel

marmistrz 2013-07-25 09:37

Re: Recover corrupted video after phone reboot during recording
 
There are closed source apps for Linux - e.g. smartsvn ;)

marmistrz 2013-10-14 10:00

Re: Recover corrupted video after phone reboot during recording
 
Hi,

I'm trying to repair a movie from N900 but I have a problem. movdump.exe crashes in each environment: winxp, win7, wine. Any ideas why it's happening? Used 720p recording by fmg on latest cssu testing cameraui

Thanks

Code:

CMD="E:\Downloads\videorepair1.5\videorepair\movdump.exe" -i "F:\MEDIA\foto\2013\wycieczka-paryz\video\20131009_285.mp4" -o "F:\MEDIA\foto\2013\wycieczka-paryz\video\repaired\20131009_285.mp4" -nfd  >> "F:\MEDIA\foto\2013\wycieczka-paryz\video\repaired\movdump.txt" 
CMD="E:\Downloads\videorepair1.5\videorepair\movdump.exe" -i "F:\MEDIA\foto\2013\wycieczka-paryz\video\20131009_285.mp4" -o "F:\MEDIA\foto\2013\wycieczka-paryz\video\repaired\20131009_285.mp4" -nfd  >> "F:\MEDIA\foto\2013\wycieczka-paryz\video\repaired\movdump.txt" 
CMD="Z:\home\marcin\Downloads\videorepair1.5\videorepair\movdump.exe" -i "Z:\media\marcin\MEDIA\foto\2013\wycieczka-paryz\video\20131009_285.mp4" -o "Z:\media\marcin\MEDIA\foto\2013\wycieczka-paryz\video\repaired\20131009_285.mp4" -nfd  >> "Z:\media\marcin\MEDIA\foto\2013\wycieczka-paryz\video\repaired\movdump.txt" 
input: Z:\media\marcin\MEDIA\foto\2013\wycieczka-paryz\video\20131009_285.mp4
output: Z:\media\marcin\MEDIA\foto\2013\wycieczka-paryz\video\repaired\20131009_285.mp4
warning: using input file as reference!
---------reffile parameters----------
---------------- QTDump -------------
movietimescale: 0 Hz
 movieduration: 0 timescales (=0 sec)
    trackcount: 0
---------reffile analyse (chunks)----------
trkcount=0
------------------------
videocodec: 
videoclass: 
fps: 29.969999
dim: 0 x 0
videosamplesperchunk: 0
videosamplesizemax: 0
videosamplesizemin: 0
 
audiocodec: 
audiotracks: 1
audiochannels: 2
audiosamplerate: 48000
audiosamplesize: 16
audiosamplesperchunk: 0
audiochunksizealltracks: 96200
audiochunksizepertrack: 0
audiochunkstopgap: 0
aacfilter: 0
pcmfilter: 0
pcmmaxvalue: 32768
 
Unhandled exception: page fault on read access to 0x0000407c in 32-bit code (0x004063b0).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:004063b0 ESP:00db3d10 EBP:00db3dd8 EFLAGS:00010206(  R- --  I  - -P- )
 EAX:00000000 EBX:00f2be40 ECX:00000040 EDX:0000ac00
 ESI:00006710 EDI:00f35a80
Stack dump:
0x00db3d10:  00187a90 00188360 00db3d40 00511273
0x00db3d20:  00000011 7ebfd2a0 00000000 7eb8f1d8
0x00db3d30:  0000001d 00000000 000018f0 00000000
0x00db3d40:  00000011 7ebfd2a0 00db3d78 7eb8f1d8
0x00db3d50:  00db3d70 00d2d788 00112b8c 00000004
0x00db3d60:  0000001f 00f35a80 00db3d88 00d2d788
Backtrace:
=>0 0x004063b0 in movdump (+0x63b0) (0x00db3dd8)
  1 0x00409a38 in movdump (+0x9a37) (0x00f3fdf8)
  2 0x004010db in movdump (+0x10da) (0x00f3fe40)
  3 0x00401178 in movdump (+0x1177) (0x00f3fe60)
  4 0x7b85f22c call_process_entry+0xb() in kernel32 (0x00f3fe78)
  5 0x7b8604ab in kernel32 (+0x504aa) (0x00f3feb8)
  6 0x7bc791c0 call_thread_func_wrapper+0xb() in ntdll (0x00f3fed8)
  7 0x7bc7c1cd call_thread_func+0x7c() in ntdll (0x00f3ffa8)
  8 0x7bc7919e RtlRaiseException+0x21() in ntdll (0x00f3ffc8)
  9 0x7bc4e45e call_dll_entry_point+0x33d() in ntdll (0x00f3ffe8)
  10 0xf75b376d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  11 0xf75b382b wine_switch_to_stack+0x2a() in libwine.so.1 (0xfff36748)
  12 0x7bc542c0 LdrInitializeThunk+0x3af() in ntdll (0xfff367b8)
  13 0x7b866a82 __wine_kernel_init+0xa21() in kernel32 (0xfff37968)
  14 0x7bc54a7b __wine_process_init+0x25a() in ntdll (0xfff379f8)
  15 0xf75b0ccc wine_init+0x2db() in libwine.so.1 (0xfff37a68)
  16 0x7bf00f43 main+0xf2() in <wine-loader> (0xfff37eb8)
  17 0xf73c9935 __libc_start_main+0xf4() in libc.so.6 (0x00000000)
0x004063b0: movb    0x407c(%eax),%al
Modules:
Module    Address            Debug info    Name (21 modules)
PE      400000-  d33000    COFF            movdump
ELF    7b800000-7ba5b000    Dwarf          kernel32<elf>
  \-PE    7b810000-7ba5b000    \              kernel32
ELF    7bc00000-7bcda000    Dwarf          ntdll<elf>
  \-PE    7bc10000-7bcda000    \              ntdll
ELF    7bf00000-7bf04000    Dwarf          <wine-loader>
ELF    7eb21000-7eb57000    Deferred        ws2_32<elf>
  \-PE    7eb30000-7eb57000    \              ws2_32
ELF    7eb57000-7ebff000    Deferred        msvcrt<elf>
  \-PE    7eb70000-7ebff000    \              msvcrt
ELF    7ebff000-7ec0c000    Deferred        libnss_files.so.2
ELF    7ec0c000-7ec25000    Deferred        libnsl.so.1
ELF    7ef97000-7efda000    Deferred        libm.so.6
ELF    f73a3000-f73af000    Deferred        libnss_nis.so.2
ELF    f73b0000-f7563000    Dwarf          libc.so.6
ELF    f7563000-f7568000    Deferred        libdl.so.2
ELF    f7569000-f7584000    Deferred        libpthread.so.0
ELF    f7587000-f7590000    Deferred        libnss_compat.so.2
ELF    f75a1000-f75aa000    Deferred        librt.so.1
ELF    f75aa000-f7760000    Dwarf          libwine.so.1
ELF    f7762000-f7784000    Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
0000000e services.exe
    0000001e    0
    0000001d    0
    00000014    0
    00000010    0
    0000000f    0
00000012 winedevice.exe
    0000001c    0
    00000019    0
    00000017    0
    00000013    0
0000001a plugplay.exe
    00000020    0
    0000001f    0
    0000001b    0
00000021 explorer.exe
    00000023    0
    00000022    0
00000026 cmd.exe
    00000027    0
00000028 (D) Z:\home\marcin\Downloads\videorepair1.5\videorepair\movdump.exe
    00000029    0 <==


twinkiesmommy2006 2014-02-18 15:40

Re: Recover corrupted video after phone reboot during recording
 
I tried to download the software from the link in this thread but its no longer available on the server. Does anybody have it that wouldn't mind re-posting? I have this problem and would really love to save this video that got corrupted when my phone locked up while it was saving. I know this thread is old but I have to try!!

nieldk 2014-02-18 16:36

Re: Recover corrupted video after phone reboot during recording
 
http://forum.xda-developers.com/show...&postcount=322

MRHdude93 2014-07-11 23:44

Re: Recover corrupted video after phone reboot during recording
 
I went to a concert and was recording my fav band well my phone was kicked by a crowd surfer and my battery popped out now my video is corrupt with no thumbnail please can I get the link to fix it, it means a lot to me please!! lol


All times are GMT. The time now is 02:13.

vBulletin® Version 3.8.8