VideoHelp Forum




+ Reply to Thread
Results 1 to 27 of 27
  1. Hello
    Recently, I accidentally deleted a video that I needed from the recycle bin. I used recuva to retrieve the video. However the video is now missing its index block and I can't edit it in any editing software. Also, I can't go forward or go to a part of the video in windows media player. I need help repairing this avi file.
    Video specs:
    1920x1080
    Recorded at 60 fps.
    The file is around 31 Gigabytes.
    It was recorded with fraps.

    Thanks!
    Quote Quote  
  2. Try ffmpeg:
    Code:
    "c:\path\to\ffmpeg.exe" -i "input file" -codec copy "output file"
    If that fails, try to re-encode the file with VirtualDub. If that fails (and you are desperate), more suggestions are found here.

    In the future, enable the Fraps "split movie every 4 GB" option. This will limit your losses in case of file corruption.
    Quote Quote  
  3. I downloaded ffmpeg. However, I don't know what to do. What do I do with that code?
    Quote Quote  
  4. Originally Posted by Nawaffles View Post
    I downloaded ffmpeg. However, I don't know what to do. What do I do with that code?
    Type (or paste) it into a command line interpreter -- ie, dos box. Be sure to change the ffmpeg path to where it is on your computer.
    Quote Quote  
  5. My avi is on my desktop. It is called 000078. I don't understand. How do I know where the ffmpeg path is?
    Quote Quote  
  6. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    if it's missing the mov atoms it's also probably nothing but garbage inside the file. once deleted, sectors of the file are re-used by windows and no longer contain the video. the recovery program may have gotten all the original sectors re-assembled but they don't contain your video anymore.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  7. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    To easily change your path is go the folder where the file is and click on left click shift,hold it down and right click your mouse and choose 'open command window here'.
    I think,therefore i am a hamster.
    Quote Quote  
  8. Originally Posted by Nawaffles View Post
    How do I know where the ffmpeg path is?
    It's the folder that contains ffmpeg.exe - probably "C:\Program Files (x86)\ffmpeg\bin." If it's not there, you'll have to search your "C:" drive for the location.

    Originally Posted by Nawaffles View Post
    My avi is on my desktop. It is called 000078.
    Just "000078", not "000078.avi" ? Might be a bad sign. Go ahead and rename it to "000078.avi"

    Now, open a command window: in Windows Explorer, shift+right-click the desktop (or wherever the video file is), select Open command window here,

    Type or paste this in the command window:
    Code:
    "C:\Program Files (x86)\ffmpeg\bin\ffmpeg.exe"  -i "000078.avi" -codec copy "000078-fixed.avi"
    (replacing "C:\Program Files (x86)\ffmpeg\bin\ffmpeg.exe" with the actual location) and hit ENTER.

    Good luck! In the event of an error, copy the command output and paste it in your reply.
    Quote Quote  
  9. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    If your video is in another folder go to that folder and highlight the video and left click shift and select 'copy as path' and paste that into the command line where ffmpeg is.
    I think,therefore i am a hamster.
    Quote Quote  
  10. Originally Posted by jagabo View Post
    Not a bad idea. It's easier for someone who doesn't know ffmpeg.
    Quote Quote  
  11. Originally Posted by aedipuss View Post
    if it's missing the mov atoms it's also probably nothing but garbage inside the file. once deleted, sectors of the file are re-used by windows and no longer contain the video. the recovery program may have gotten all the original sectors re-assembled but they don't contain your video anymore.
    Yes, even if the disk wasn't used after deleting the file it's not likely a 31 GB file was contiguous enough for undelete utilities to recover them. Unless the files were defragged lately.
    Quote Quote  
  12. I got the command going, but I get this error, "000078.avi: No such file or directory"
    Quote Quote  
  13. Oh Sorry about that. I just forgot to put the parenthesis as part of the name. The file was (000078).
    Quote Quote  
  14. It has been going perfectly, but I now get this error in the middle of the operation, "Operation not permitted".
    Quote Quote  
  15. I've only got 5 minutes of the 11 minute clip...
    Quote Quote  
  16. Dinosaur Supervisor KarMa's Avatar
    Join Date
    Jul 2015
    Location
    US
    Search Comp PM
    Was this file on the OS drive, or was it on a separate drive. And has this drive been written on since the accidental deletion. As there is better recovery software out there like PhotoRec, but it has to be run through a command promt.
    Quote Quote  
  17. The file was on the OS drive.
    Quote Quote  
  18. I didn't defragment or do anything to the drive.
    Quote Quote  
  19. The ffmpeg is working, but it stopped almost halfway through with the error. "Operation not permitted". If this could be fixed that would be perfect.
    Quote Quote  
  20. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Just a quick reference here... When you use a command line editor (DOS/CMD) when you come to where you want to enter the complete path of a file, just drag and drop the file to the DOS window and it will fill in the path complete with quotes if necessary.

    Example:
    <drag and drop ffmpeg.exe here> -i <drag and drop your video here> -vcodec <whatever you wish> -acodec <whatever one you want> "outputfilename and path and extension"

    and you will get:
    "c:\path to ffmpeg" -i "c:\path to video" -vcodec libx264? -acodec libavaac? "c:\path and name to output"

    Just a note to make it easier.
    Quote Quote  
  21. Originally Posted by Nawaffles View Post
    The ffmpeg is working, but it stopped almost halfway through with the error "Operation not permitted".
    Was that a Windows error or an ffmpeg error? Screenshot please.
    Quote Quote  
  22. Here is a screenshot.
    Click image for larger version

Name:	21.PNG
Views:	128
Size:	40.7 KB
ID:	39825
    Quote Quote  
  23. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    That's a fatal FFmpeg error. Looks like it tripped up on unexpected conditions in the file. If I were you, I would try DivFix++ which is in the software library here..
    Quote Quote  
  24. I agree, for the second time, with the DivFix suggestion. Nawaffles, please try DivFix++.

    For the curious, regarding "Operation not permitted", it's error code EPERM, which is rarely used within ffmpeg, in fact it appears in only three files: concatdec.c, rtsp.c and os_support.h. The last is the likely source: a function called win32_rename. It looks to me like it's a directory write permission problem - but who knows, unexpected conditions in the file (ie the file is damaged/unrecoverable) can cause a lot of strange things to happen.
    Quote Quote  
  25. I tried DivDix and I get the error, Frame size is too big and another error about paramaters.
    Quote Quote  
  26. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Delete the file and give up,too much work to get it back,just save the file you already salvaged.
    I think,therefore i am a hamster.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!