PDA

View Full Version : broken avi file, only VLC can play it.


Hobojobo
6th December 2005, 01:06
Hi,
I have an avi file, it is somehow broken.
The clip is a XviD encode with 5.1 AC sound. I took AutoGK for encoding.
I cannot open it with VirtualDubMod. "Cannot determine file type"
MPC cannot play it.
GSpot cannot recognize it. "File/ Mime Type Unknown."
VLC plays it. :)
My question:
Can VLC fix it in order to play it with MPC or whatever?
Or any other program?

celtic_druid
6th December 2005, 01:18
Sounds like it isn't an avi.

setarip_old
6th December 2005, 06:19
Can VLC fix it in order to play it with MPC or whatever?
Or any other program?
Hi!
It would probably be easiest if you simply converted your original source to XviD again

CWR03
6th December 2005, 07:42
It would probably be easiest if you simply converted your original source to XviD againAgreed, if GSpot can't even recognize it as a video file, it's not likely repairable.

Hobojobo
6th December 2005, 09:17
Hi!
It would probably be easiest if you simply converted your original source to XviD again

Yep.

But why does VLC not care about the broken file?
It perfectly plays the avi with the correct specs: 25 FPS, 704x304, sound, length.

marcellus
6th December 2005, 09:53
Can VLC fix it in order to play it with MPC or whatever?
Or any other program?
Try to play the file with Mplayer. If it works chances are that Mencoder can fix it. Try this command with Mencoder:
mencoder "C:\Your_bad.avi" -forceidx -ovc copy -oac copy -o "C:\Fixed.avi"
If that doesn't work or the output is an incomplete (shorter than original) file,then try:
mencoder "C:\Your_bad.avi" -idx -ovc copy -oac copy -o "C:\Fixed.avi"
Maybe it will work.

Wilbert
6th December 2005, 10:38
I thought you can also use VLC to transcode to other formats

http://www.videolan.org/doc/faq/en/videolan-faq-en.html

Not sure how that works though, since I never tried that.

Hobojobo
6th December 2005, 11:46
Thanks for your answers.

@marcellus
mplayer does not like the avi.

Warning streams need a type !!!!
AVI: Missing video stream!? Contact the author, it may be a bug :(

When I stream with VLC (save as file), VLC forgets the video stream, only saves the audio stream, although the playback is correct (video and audio).
I tried various settings, transcode as dummy....

The easiest way seems to re-encode the file.

:thanks: anyway.

bond
6th December 2005, 13:40
some idiots renamed .ogm to .avi. try the .ogm extension

CWR03
6th December 2005, 15:04
bond, I regularly rename .ogm extensions to .avi and it makes no difference to WMP playback (but I have the Vorbis filters installed - perhaps Hobojobo doesn't).

celtic_druid
6th December 2005, 15:44
I originally thought that it was renamed, but that wouldn't explain the above mplayer error.

Hobojobo
6th December 2005, 16:45
some idiots renamed .ogm to .avi. try the .ogm extension

I encoded the file myself with AutoGk. So, it is, or better it was definitely an avi file.