Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Blackmagic Design MJPEG AVI file corrupted – how to repair?

  • MJPEG AVI file corrupted – how to repair?

    Posted by Paul Randall on November 3, 2014 at 12:48 am

    Hi all,
    I have a situation where during a live recording via Media Express the PC lost power so I was left with a non completed AVI Motion-JPEG file (1080i50 – 290GB file size). I can see and copy the file but cannot play it. Can anybody please tell me what utility or tool should I use to fix the file?

    I have tried so far:
    VLC: Does not even think there is a problem it and just won’t play it so I cannot use the fix avi feature.
    VirtualDubMod: Also does the same, opens the file but cannot play it or resave it.
    Remo Repair Avi: As the file size is 290GB the program cannot fix it.

    What happened:

    The UPS tripped out due to a large voltage spike on the main power lines outside the building causing the video switcher (and all recorders to power off). It happened during a live recording at a venue (so recapture is impossible) and to make things worse all the ISO recording from the cameras were also lost/damaged so a real disaster. We also lost various lighting and sound equipment with the voltage spike during the show including the projectors which when black and locked up.

    Thanks Paul

    Paul Randall replied 11 years, 6 months ago 4 Members · 12 Replies
  • 12 Replies
  • James Brooks

    November 3, 2014 at 2:12 am

    Hi Paul

    It is possible to write a program to search out the MJPG frames and save them off to another container, but I don’t know of an ‘off the shelf tool’ that will do that.

    Cheers, James

  • Chad Pearson

    November 3, 2014 at 8:15 pm

    I vaguely remember using a program called VirtualDub that could parse through a video file and extract out the good frames. It’s also a good transcoder software too.

  • Paul Randall

    November 3, 2014 at 10:08 pm

    I did try VirtualDubMod but it did not work. I did a “Create sparse AVI” file then did a “Expand sparse AVI” file but the Expand sparse AVI was about 15GB smaller but still did not play. I am not sure if what I did was correct so any advise on using the program is appreciated

    FYI when I try and play the file from Media Express the display says “Media Offline”

  • Paul Randall

    November 3, 2014 at 10:09 pm

    Have you got any ideas on where I can find such a program?

  • Russ Froze

    November 13, 2014 at 10:20 am

    Hello,
    Have you tried Avidemux? Or what does Davinci Resolve have to say about it?
    https://avidemux.sourceforge.net/
    Let me know if this resolves your problem or not. For I am keenly interested for but for the grace of God, there go I.
    Russ Froze

  • Paul Randall

    November 13, 2014 at 8:47 pm

    Avidemux says “Attempt to open video.avi failed!”

    DaVinci Resolve lite 11.1.1 – I have not used this software before. I tried to add some different MP4 and AVI video files to the media bin but it would not take them. I am not sure if I am doing this correctly – any suggestions?

  • Russ Froze

    November 13, 2014 at 11:29 pm

    Yea Da Vinci is a real pain to set up and for some reason my instal has quit working. I doubt it would open the file anyway but it is a close cousin of Media Express so I thought maybe. Anyway try this
    https://sourceforge.net/projects/divfixpp/files/DivFix%2B%2B/v0.34/

    Warning do not click on anything after you click on the DivFix++_v0.34-Win64.zip link. It will take you to another page instantly and confuse you into installing something else. If using Chrome wait for the download the open in download folder. After that you can handle the zip file and extract tit where you like. Do make a copy of the original file(s) and work with the copies not the original.

    Let me know of success or failure.
    Russ froze

  • Paul Randall

    November 14, 2014 at 8:40 am

    OK DivFix++ gave a lot of errors like:

    Processing file : Rage P2.avi
    Four CC is : MJPG
    Warning: Frame size is too big! Dropped
    Error detected at byte: 9870
    Skipped 1228240 bytes.
    Warning: Frame size is too big! Dropped
    Error detected at byte: 1238118
    Skipped 1228170 bytes.

    So did not work.

    I did try Digital Video Repair V2.2.4 from https://www.risingreasearch.com

    It did actually go right through but at the end WMP could not play it but VLC sort of did after “Fixing AVI index file” but only played about 40 min but should have been about 5 hours long. So not sure what to do now as Adobe Premiere still cannot use the “fixed” file anyway.

  • Russ Froze

    November 14, 2014 at 3:04 pm

    Now use VLC or avisynth to render it out, choose an appropriate codec for the job. Again I know nothing about the camera or codec used so that decision will be up to you. I know there is a few hours of the file missing but for now have a look at what’s there and find a codec combination the NLE can work with it.

    Now back to DivFix, did you try strip index?
    Russ Froze

  • Paul Randall

    November 15, 2014 at 2:39 am

    Tried DivFix++ but got the following error:

    Striping index at file: Rage P2.avi
    Error: File cannot truncate at 999931730
    Error occurred at striping index

    VLC did export out the 44 minutes as a MP4 but as big chunks of video was missing it is not much good. The 44 minutes is a bit like a highlights video from the 5 1/2 hours – with the audio going in an out of sync.

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy