Log in

View Full Version : fix unknow media file?


kunkun0217
18th January 2008, 10:58
I have an media file. I can use a powerful player play it, but I can't drag it. The player can't detect the length of the file. Though the file name is an avi file. But I can't use serveral avi fixer fix it. These fixer programme said the file is not an avi file. When I drag during playing, it'll play from the begining.

So, I'd like to know how should I fix this file.
Thanks!

Placio74
18th January 2008, 11:59
What 'say' GSpot, MediaInfo, AviCodec, Avinaptic about this file?

You play this file in MPlayer (SMPlayer) and VLC media player?

You try reindexing in VirtualDub?

kunkun0217
18th January 2008, 14:39
What 'say' GSpot, MediaInfo, AviCodec, Avinaptic about this file?

You play this file in MPlayer (SMPlayer) and VLC media player?

You try reindexing in VirtualDub?

the avicodec said its code is xvid mpeg-4. What type the file is on earth? The mplayer will crash when I drag it.
How can I convert it to another type file like WMV or RM?
It seem I need to fix it first. Because the video convert programme can't convert this file now. I don't know how to use the VirtualDub.

buzzqw
18th January 2008, 14:51
re encode the original media to a new file

or try with ffmpeg

ffmpeg.exe -i myfile.avi -vcodec copy -acodec copy -f avi my_new_file.avi

BHH

stegre
18th January 2008, 15:32
Can you post a screenshot of what GSpot says? It might just be truncated, which will make some players crash and others report it's not an AVI. GSpot will should report that or perhaps other oddities.

kunkun0217
18th January 2008, 15:55
re encode the original media to a new file

or try with ffmpeg

ffmpeg.exe -i myfile.avi -vcodec copy -acodec copy -f avi my_new_file.avi

BHH

It seems that ffmpeg can't be run on windows xp. Can you recommand other programme like ffmpeg? Thanks!

buzzqw
18th January 2008, 16:04
ffmpeg RUN in winxp, vista, win2003, win2000, win98, win me, linux, sun, sco...

BHH

kunkun0217
18th January 2008, 16:39
ffmpeg RUN in winxp, vista, win2003, win2000, win98, win me, linux, sun, sco...

BHH

It's uneasy to intall the ffmpeg on windows system. I don't know how to make the source into an executable file.

Placio74
18th January 2008, 17:21
It's uneasy to intall the ffmpeg on windows system. ...
Ehm... just unpack to some folder and use from command line.
... I'm don't know how to make the source into an executable file.
You have ready to use binaries here:
http://esby.free.fr/CelticDruid/mirror/ffmpeg/

About VirtualDub...
File > Open video file... > mark Ask for extended options after this dialog > mark Re-derive keyframe flags

kunkun0217
18th January 2008, 17:41
[/QUOTE][/QUOTE]Can you post a screenshot of what GSpot says? It might just be truncated, which will make some players crash and others report it's not an AVI. GSpot will should report that or perhaps other oddities.

Seems you're rigt. The file maybe just be truncated. Because I can play the whole file. It'll stop in the middle of the video. Here's the screenshot of GSpot.
Then what can I do now?
8001

stegre
19th January 2008, 03:34
No, actually, from what I see there, I don't think it's an AVI file at all. Your video and audio (if any) are in an .OGM (Ogg Media) container (which GSpot doesn't parse further, hence the lack of additional info).

What you should do now is download and install the Haali Media Splitter, sometimes called the Haali Matroska Splitter. The main site (haali.cs.msu.ru/mkv/) seems down right this sec, for some reason, but there are plenty of others places to get it , e.g. here (http://www.free-codecs.com/Haali_Matroska_Splitter_download.htm)

After you install that, you should then be able to play your file in Windows Media Player or almost anything else. If that works, re-open it in GSpot and press the "1" MS render button again - it should tell you what you're streams are composed of.

You could also just download the Windows version of VLC (http://www.videolan.org/vlc/), which will likely just play your file by itself, even without the Haali splitter.

If either of those work, you should be able to losslessly demux your audio and video streams out of the OGM container and into something more widely supported, like AVI, although the best container selection will depend on what type of streams are in there.

But first things first: see if either of the above two methods lets you view your file.

setarip_old
19th January 2008, 05:19
@kunkun0217

Hi!

Of course the very obvious question is:

How/Why could you have created a file in an .OGM container, named it with an .AVI entender, and not know that it was .OGM?

kunkun0217
19th January 2008, 08:59
No, actually, from what I see there, I don't think it's an AVI file at all. Your video and audio (if any) are in an .OGM (Ogg Media) container (which GSpot doesn't parse further, hence the lack of additional info).
the Haali Matroska Splitter. The main site (haali.cs.msu.ru/mkv/) seems down right this sec, for some reason, but there are plenty of others places to get it , e.g. here (http://www.free-codecs.com/Haali_Matroska_Splitter_download.htm)

After you install that, you should then be able to play your file in Windows Media Player or almost anything else. If that works, re-open it in GSpot and press the "1" MS render button again - it should tell you what you're streams are composed of.

You could also just download the Windows version of VLC (http://www.videolan.org/vlc/), which will likely just play your file by itself, even without the Haali splitter.

If either of those work, you should be able to losslessly demux your audio and video streams out of the OGM container and into something more widely supported, like AVI, although the best container selection will depend on what type of streams are in there.

But first things first: see if either of the above two methods lets you view your file.

I've install the Haali Matroska Splitter. I can use windows media player to play it now. I use GSpot to analyze it again. Here's the screen shot.

8002

Then, What should I do next ?
How can I convert it into other media type like WMV or MPG?

Placio74
19th January 2008, 09:02
kunkun0217, use other info tools too - example MediaInfo.

It's OGG or OGM? It's different.

Maybe contained Theora video...
I'm think Theora and Vorbis not match to AVI container.
Vorbis in AVI, it's possible - but Theora...

You can use other players instead VLC - example SMPlayer (MPlayer) or The KMPlayer.

[EDIT]
...
How can I convert it into other media type like WMV or MPG?
Ehm...
You can use FFmpeg or MEncoder and some GUI's for this encoders - example MediaCoder, WinFF, AutoMen, ...
Or You can use Avisynth script (DirectShowSource) and VirtualDub.
But, if it's OGM with Xvid or DivX video and Vorbis audio - recompress video is unnecessary - just recompress audio and change container.

kunkun0217
19th January 2008, 09:39
8003kunkun0217, use other info tools too - example MediaInfo.

It's OGG or OGM? It's different.

Maybe contained Theora video...
I'm think Theora and Vorbis not match to AVI container.
Vorbis in AVI, it's possible - but Theora...

You can use other players instead VLC - example SMPlayer (MPlayer) or The KMPlayer.

Here's the MediaInfo screenshot check the information in all the attachments.
Really thanks for you guys help!
The target is convert it into RM or WMV. But a lot of the coverter doesn't accept it now.

Placio74
19th January 2008, 10:01
Example...
Demux streams to AVI (with Xvid video stream) and OGG (Vorbis audio) used OGMcleaver (http://ogmcleaver.googlepages.com/).
You can recompress audio (or decompress do PCM WAV), and mux with AVI.
Then i'n not see any problem to use Window Media Encoder, RealProducer and other apps.

Of course possible other ways... You can use FFmpeg, MEncoder, some GUI's for this encoders; Avidemux; Avisynth script and some apps;...

Sharktooth
21st January 2008, 03:34
rename that file from .avi to .ogm first...
it's not an AVI.
however i doubt you created that file as well as i doubt it contains legal material.