Results 1 to 8 of 8

Thread: reapiring a video file (.avi)

  1. #1
    Join Date
    Aug 2007
    Beans
    92
    Distro
    Ubuntu

    repairing a video file (.avi)

    Hi,

    I've been using a casio exilim camera, and while on holiday it completely spazzed on me. - It said it had a full memory card, and all of my photos were black and unreadable...

    I downloaded a great program called photorec (part of testdisk) and it recovered all but two of my photos!

    One video, however, is broken. In Nautilus, it sees it as 115meg, but only the first 15 seconds of the video plays.

    Its a .avi file, but I'm pretty sure the camera is recording in mp4.

    I downloaded DivFix++ 0.26 for Ubuntu, and that recovered all of the audio, but lost even the first 15seconds of video.

    I'm writing to find out if anyone has any suggestions for programs that I could try in order to recover the rest of the video.

    Thanks
    P
    Last edited by skiwithpete; October 3rd, 2008 at 09:28 PM.

  2. #2
    Join Date
    Dec 2004
    Location
    Atlanta, GA USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: reapiring a video file (.avi)

    in the past, i have had vlc ask me if i wanted to repair a broken avi when i right clicked it and open with vlc.

  3. #3
    Join Date
    Aug 2007
    Beans
    92
    Distro
    Ubuntu

    Re: reapiring a video file (.avi)

    Quote Originally Posted by wolfen69 View Post
    in the past, i have had vlc ask me if i wanted to repair a broken avi when i right clicked it and open with vlc.
    I have done that, and VLC also plays only the first 15 seconds. I really need a program that will inspect each part of the file to see where the error has occurred and repair it.
    Last edited by skiwithpete; October 3rd, 2008 at 09:28 PM.

  4. #4
    Join Date
    Sep 2006
    Beans
    3,170
    Distro
    Ubuntu Karmic Koala (testing)

    Re: reapiring a video file (.avi)

    re-index the video with mplayer, vlc or with following command :

    mencoder -forceidx -oac copy -ovc copy before.avi -o after.avi

  5. #5
    Join Date
    Oct 2007
    Beans
    42

    Re: reapiring a video file (.avi)

    binbash's solution worked great for me, thanks!

    My situation wasn't as drastic, VLC would prompt to fix the file, fix it, and then play it just fine. Problem was that it wouldn't stay fixed, had to keep re-indexing the file. Anyway, this did the trick permanently.

  6. #6
    Join Date
    Jun 2007
    Location
    Toronto
    Beans
    76

    Re: reapiring a video file (.avi)

    Thanks binbash. It also worked perfectly for me.

  7. #7
    Join Date
    Aug 2009
    Beans
    16

    Re: reapiring a video file (.avi)

    Sorry, I know this is an oldish thread. But I tried BinBash's method, and it makes the avi playable, but the fixed file only consists of the first 20-odd seconds of the film. The same happened for two separate broken AVIs.

    Any ideas?

  8. #8
    Join Date
    Feb 2012
    Beans
    1

    Re: reapiring a video file (.avi)

    AVI video files can get corrupted in several situations. If you have a corrupted AVI video file then repair the file using advance avi repair tool. It is pretty sure that after repairing the file, you will become able to view the contents of the file and you can easily play this file on your media playing application.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •