This forum has been archived. All content is frozen. Please use KDE Discuss instead.

file repair : broken mp4 file what to do

Tags: None
(comma "," separated)
kalimerox
Registered Member
Posts
180
Karma
0
Hi ,

I know this is a little off topic but i m sure i ll find here some knowledge about that:

I recorded with my sony a7s a video file for a documentary project and while recording i accidently changed the battery without switching the cam off, so the file got truncated and is no longer readable.. but its some 3,5 gb of something.. any ideas how i could recover this?

ffmpeg -i file.mp4 gives

Code: Select all
--enable-version3 --enable-x11grab
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
C0017.MP4: Invalid data found when processing input


i tried untrunc and got
Composition time offset atom found. Out of order samples possible.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C0001.MP4':
Metadata:
major_brand : XAVC
minor_version : 16785407
compatible_brands: XAVCmp42iso2
creation_time : 2016-04-18 14:59:07
Duration: 00:01:09.60, start: 0.000000, bitrate: 52055 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 50107 kb/s, 50 fps, 50 tbr, 50k tbn, 100 tbc (default)
Metadata:
creation_time : 2016-04-18 14:59:07
handler_name : Video Media Handler
encoder : AVC Coding
Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
Metadata:
creation_time : 2016-04-18 14:59:07
handler_name : Sound Media Handler
Stream #0:2(und): Data: none (rtmd / 0x646D7472), 409 kb/s (default)
Metadata:
creation_time : 2016-04-18 14:59:07
handler_name : Timed Metadata Media Handler
Failed to parse atoms in truncated file



as it is a documentary project it is a shot that cant be repeated, so any help is very much appreciated!! :)
TheDiveO
Registered Member
Posts
595
Karma
3
OS
Recovering mp4 containers can be difficult, so don't expect much. I had some success with my GoPro Hero 3 which nukes the FAT from time to time. I've written about the tools I used here: http://thediveo-e.blogspot.de/2014/03/f ... d-err.html
kalimerox
Registered Member
Posts
180
Karma
0
Thank you , very nice blog!

So I just downloaded file repair the trial version and it seems to run smoothly under wine,

it scans the file and when i click on repaired movie, the preview image just gets green. so not too sure if this is a problem of wine or of my movie ;(
(edit: i found the output file and it seems to do a good job on repairing, at least i see something :) although the video hangs all vew frames etc..)
there s also some online repair sevices (like aeroquartet) i found last night that are incredible expensive (like 130$ for recovering one file) and seem to target people like me who are desperate to repair their files...


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], Yahoo [Bot]