PDA

View Full Version : Get MPEG out of AVI


Belgabor
28th May 2002, 10:25
Hi ppl,

A friend of mine found a strange thing. It seems to be a complete mpeg1 file inside an AVI. Now he wants to get it out (= make a regular mpeg file). Anyone got an idea how to do that?

Things so far:
- Its not a renamed mpeg. It has an avi header.
- Rendering the file with Graphedit produces a mpeg demuxer right after the file source. writing the streams to two files didnt work on his system.

Any ideas appreciated.

Regards
Belgabor

EDIT: fixed some typos

N_F
28th May 2002, 10:35
Try opening it with AviEdit.

ChristianHJW
28th May 2002, 10:41
..if its really MPEG1 than Vdub should be able to handle it correctly ....

Belgabor
28th May 2002, 10:54
Thx for the fast replies, but unfortunately I dont think that will help with what he wants.
Let me be more specific: He wants to recover the mpeg stream as mpeg file without recompression and afiak niether AVIEdit nor VDub can save mpeg streams, can they?

Regards
Belgabor

ChristianHJW
28th May 2002, 11:02
Originally posted by Belgabor
He wants to recover the mpeg stream as mpeg file without recompression and afiak niether AVIEdit nor VDub can save mpeg streams, can they? Ähem .. hmppff, you're right, shame on me :( !

Tried BB-MPEG from Doom9 download ? No idea if it can open AVIs but its worth a try, its definitely the best MPEG muxer. I also know that TMPEG can open AVIs, but i am not sure if its possible to make a 1:1 copy of the MPEG stream in the AVI, i normally only use it to reencode AVIs to S-VCDs. TMPEG is also coming with some muxing/demuxing tools, maybe they can open AVI also ? Cant test here on this machine ....

Belgabor
28th May 2002, 12:36
Originally posted by ChristianHJW
Ähem .. hmppff, you're right, shame on me :( !


No problem :)

Originally posted by ChristianHJW

Tried BB-MPEG from Doom9 download ? No idea if it can open AVIs but its worth a try, its definitely the best MPEG muxer. I also know that TMPEG can open AVIs, but i am not sure if its possible to make a 1:1 copy of the MPEG stream in the AVI, i normally only use it to reencode AVIs to S-VCDs. TMPEG is also coming with some muxing/demuxing tools, maybe they can open AVI also ? Cant test here on this machine ....

Good idea, I'll forward that to him. Thx :D

Regards
Belgabor

Doom9
28th May 2002, 13:52
I would try graphedit.. render the file.. you should being to understand how it's done and how to extract the appropriate substreams... btw... aren't we just talking about a renamed .mpg file?

Belgabor
28th May 2002, 15:20
Like I told in the opening post, he checked both. The file has an avi header, so its more than a rename, what was exactly what I thought after he told me GraphEdit produced the MPEG Splitter (Demuxer?) right after the file source.

I had told him to use Graphedit to render the file and simply put two file writers in (one for each stream) before posting here, this did not work on his system. (Always gave a 'not enough memory free' error, which seems like a bug or some other strangeness to me).

Regards
Belgabor

slavickas
28th May 2002, 21:00
Originally posted by Belgabor
Like I told in the opening post, he checked both. The file has an avi header, so its more than a rename, what was exactly what I thought after he told me GraphEdit produced the MPEG Splitter (Demuxer?) right after the file source.

I had told him to use Graphedit to render the file and simply put two file writers in (one for each stream) before posting here, this did not work on his system. (Always gave a 'not enough memory free' error, which seems like a bug or some other strangeness to me).

Regards
Belgabor

teoretical myslios :)
connect splitters output pins with 2 dump filters ( for aud and vid)
then mux resulted files in tmpgenc

shahmat
1st June 2002, 04:21
I know WavMP3 can remove the RIFF headers from a WAV-encoded MP3 file... Does anybody know if it was released open-source (and if so, could someone modify it so that it rips AVI headers out of a file)?

Shah Mat
Lord of the Land Of COnfusion (LOCO)

QuoVadis
3rd June 2002, 12:56
You are sure that it is a real avi and not just a renamed VCD dat file? A real avi header should contain things like "strh", "auds", "vids", "list", etc. whereas VCD dat-files just begin with a RIFF header and continue with MPEG packets. There's a tool called dat2mpg.exe. It converts the VCD dat-files back into MPEG-1 files. Maybe you should try this one.

Belgabor
3rd June 2002, 18:02
Good hints, thx :)

I'll forward them. (Gosh, I think its time to simply link him to this thread ;) )

Regards
Belgabor