Hello, I have a 4GB video I recorded with CamStudio. Windows Media Player will not play it. Here are the things I've tried to fix it:
Played with VLC: It spends some time repairing it. It says the index file is broken or missing. When I tell it to build the index, it successfully plays the last 1:03 of the video. I have the audio of the video recorded separately in a wav file. It's 33:03 so I want the video ideally to be that long, or at least close to it.
Media Info has the following information:
Format : AVI
Format/Info : Audio Video Interleave
Format settings : BitmapInfoHeader
File size : 4.00 GiB
Duration : 33 min 24 s
Overall bit rate : 17.1 Mb/s
Frame rate : 20.000 FPS
Video
ID : 0
Format : RGB
Codec ID : 0x00000000
Codec ID/Info : Basic Windows bitmap format. 1, 4 and 8 bpp versions are palettised. 16, 24 and 32bpp contain raw RGB samples
Duration : 33 min 24 s
Bit rate : 16.5 Mb/s
Width : 1 920 pixels
Height : 1 008 pixels
Display aspect ratio : 1.905
Frame rate : 20.000 FPS
Color space : RGB
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.425
Stream size : 3.84 GiB (96%)
I opened it in Virtual Dub and it complains about the missing index as well. It has a few warnings and ultimately plays about 14 seconds of video. Interestingly, it's a different 14 seconds.
Recently I found there's a Virtual Dub 2. I tried opening it there. The good news is that it shows it as 33:03. The bad news is it only seems to display one frame, and it's messed up - colors are wrong and it's not centered right. I then told it to ignore the index file and keyframes and it opened correctly - although once again only about 14 seconds of the end. Same as VD1.
[Attachment 74720 - Click to enlarge]
I've tried doing this AVI repair but it doesn't seem to work. https://camstudio.org/forum/discussion/1430/repair-corrupt-camstudio-files-when-camstu...recording.html
The "repair OK" happens but Virtual Dub opens it and it's just a black square.
Also tried Avidemux and GOM Player. They can't open the file.
Does anyone have any ideas?
+ Reply to Thread
Results 1 to 23 of 23
-
-
DivFix++ v.0.34 can help with this! I tested it and it was working! The program is avalible as 32bit and 64bit portable, basicly just unpack the zip file and launch the program, then drag and drop the avi video file onto the program and click Fix. It is possible to select to 'Keep original file' and it will create an new, fixed, copy of the video. The program is free and does not leave any watermarks!
Edit: If the index gets fixed and is able to play in some video players, but not in Windows Media Player you might need an codec to be able to play the video... You could allso convert the video to an other format (or convert into an avi video with an codec supported by Windows Media Player). Sometimes Index Errors get fixed when converting the video.
Edit 2: When using some recorder programs they can give index error on the first recording after changing settings for the recording.Last edited by Swedaniel; 9th Nov 2023 at 07:36.
-
You can try to open it with clever FFmpeg-GUI.
The codec is supported.
If the video loads, click main, click encode video stream, click keep size, leave all settings as the are and click encode.
If finished, you have a new mkv file that can be played with any player.Last edited by ProWo; 9th Nov 2023 at 09:59.
-
Hello, thank you for the answer. The file gave me "seek error on file" and "error 87: the parameter is incorrect." It also said "can't find current position in file."
I tried doing it with "Recover from Key Frames" on and off, in both cases the resulting file was unplayable.
I tried the "strip index" button and it said this: "Error: File cannot truncate at -990587656
Error occured at striping index."Last edited by videohelpneeded; 13th Nov 2023 at 09:30.
-
-
I appreciate the offer but honestly, it's not a video I would want anyone else to have. I would be willing to do anything with any program you recommended but I can't share it, especially on a public forum. I hope you understand. Thanks.
The problem was with CamStudio. Apparently if you recorded too long it would crash when attempting to save. This was a known issue. What I salvaged was the temporary files it created. That's why it's exactly 4GB, it could only save 4GB files maximum iirc. At the end I assume it writes the index/header, only these were never written.
This link describes the situation well:
https://camstudio.org/forum/discussion/1430/repair-corrupt-camstudio-files-when-camstu...recording.html
"Complete AVI files contain a header, a short section of the file which describes the video properties like the codec, resolution, etc. The problem is that the AVI headers are written at the end of the capturing session, so if Camstudio crashes, no header gets written, and this is the reason it cannot be opened in any media player. However, *the data is still there!* We just need to recover it."
The problem is their AVI repair tool doesn't seem to work for me. Maybe I need to make sure the resolution/codec matches better when creating a new AVI file to use for the repair process. -
"Codec ID : 0x00000000
Codec ID/Info : Basic Windows bitmap format. 1, 4 and 8 bpp versions are palettised. 16, 24 and 32bpp contain raw RGB samples"
Does someone know what this codec is? I've tried googling it but I can't find it. Does it go by another name?
EDIT: Downloading the K Lite codec pack made a weirdly colored version appear as a thumbnail for my file, but it did not play any better.Last edited by videohelpneeded; 15th Nov 2023 at 08:56.
-
The last ressort:
Open your video in a hex editor.
If you see all zeros, the file is gone. -
@videohelpneeded, if you open your file with this tool: https://media-analyzer.pro , do you see any headers there? Could you send a screenshot if there are some?
-
Here is what it gave me:
0000000000RIFF Header #0
000000000c'hdrl' AVI Header List #1
0000000018'avih' AVI Main Header #2
0000000058'strl' AVI Stream List #3
0000000064'strh' AVI Stream Header #4
ckID 'strh' (hex 73 74 72 68)
ckSize 56 (0x38)
fccType 'vids' (hex 76 69 64 73)
fccHandler '\00\00\00\00' (hex 0 0 0 0)
dwFlags 0
wPriority 0
wLanguage 0
dwInitialFrames 0
dwScale 1
dwRate 20 (0x14)
dwStart 0
dwLength 40095 (0x9C9F)
dwSuggestedBufferSize 5806080 (0x589800)
dwQuality 0
dwSampleSize 0
rcFrame
left 0
top 0
right 1920 (0x780)
bottom 1008 (0x3F0)
00000000a4'strf' AVI Video Format #5
00000000d4'JUNK' Garbage #6
00000007f4'movi' AVI Movie Data #7
0000000800'Kr<K' AVI Chunk #8
00724b4579RIFF Chunk Alignment #9
00724b457a'\00\00\00\00' AVI Chunk #10
00c4f4d4f8'+:\8' AVI Chunk #11 -
I opened it in Virtual Dub's hex editor. There are some chunks that are just zeroes, and some that are just FF FF FF. But the majority of it looks normal to me (a blend of letters and numbers.) I would say at least half if not more is normal, but yes, there are big chunks of 00 and FF
-
Here is what it gave me
0000000800'Kr<K' AVI Chunk #8
Could you copy the contents of "00000000a4'strf' AVI Video Format " header here?
If you look at the file in HEX editor, can you spot at least a few occurrences of "00dc" or "00db" character groups? (see example in screenshot attached)
[Attachment 74894 - Click to enlarge] -
Could you copy the contents of "00000000a4'strf' AVI Video Format " header here?
[Attachment 74895 - Click to enlarge]
If you look at the file in HEX editor, can you spot at least a few occurrences of "00dc" or "00db" character groups? (see example in screenshot attached)
[Attachment 74896 - Click to enlarge]
[Attachment 74897 - Click to enlarge]
[Attachment 74898 - Click to enlarge]
[Attachment 74899 - Click to enlarge] -
ok, we need some surgery here.
Step 1. At first we need a donor. Could you record (or maybe you have some already) the good file with exactly the same settings (dimensions, codec parameters if any)?. Better if it will be at least several minutes.
Step 2. You need to find the first occurrence of bytes "30 30 64 62 00 98 58 00" in your corrupted file - that would be a start of the first good frame. You need to write down the offset of such occurrence. Let it be, for example, 0x636D28, or just X
Step 3. Make a backup copy of your corrupted file, just in case
Step 4. You need to take first X bytes from your donor, copy them over to the beginning of your corrupted file and save it
If you're lucky, after this operation you will have the video that can be played back and which will contain the frames from your corrupted file. If you get that - great. After that we may need to modify the duration of the file. That would be again a bit of surgery, but simpler one. I'll give the instructions once your first operation succeeds. -
Step 1. At first we need a donor. Could you record (or maybe you have some already) the good file with exactly the same settings (dimensions, codec parameters if any)?. Better if it will be at least several minutes.
Step 2. You need to find the first occurrence of bytes "30 30 64 62 00 98 58 00" in your corrupted file - that would be a start of the first good frame. You need to write down the offset of such occurrence. Let it be, for example, 0x636D28, or just X
Step 3. Make a backup copy of your corrupted file, just in case
Step 4. You need to take first X bytes from your donor, copy them over to the beginning of your corrupted file and save it
Once again, thanks for all your help. -
I can't remember which codec
which I can probably find if that matters
But I plan to do it with Notepad++ unless you have a better recommendation. -
Step 2. You need to find the first occurrence of bytes "30 30 64 62 00 98 58 00" in your corrupted file - that would be a start of the first good frame. You need to write down the offset of such occurrence. Let it be, for example, 0x636D28, or just X
-
> I could find 30 30 but not anything with 30 30 64
There were at least some such occurrences in your previous screenshots (e.g. https://forum.videohelp.com/attachment.php?attachmentid=74899). I meant hex bytes sequence, not characters -
Not possible unless some knowledgeable person baby steps you into whole process.
Similar Threads
-
fixing corrupted frames
By sashakhina in forum Video ConversionReplies: 1Last Post: 9th Jan 2020, 12:13 -
My old AVI files are corrupted and won't play
By iriaZBT in forum Video ConversionReplies: 9Last Post: 11th Nov 2019, 11:30 -
How to install mp3 encoder in camstudio
By shaileshm in forum Capturing and VCRReplies: 0Last Post: 27th Jul 2019, 09:06 -
Corrupted MP4?
By Juni745 in forum Video Streaming DownloadingReplies: 6Last Post: 28th Jun 2019, 08:58 -
AVI files severely corrupted.
By rdg2000 in forum Newbie / General discussionsReplies: 1Last Post: 6th Mar 2019, 13:19