Log in

View Full Version : mpeg-1 file to avi


jaapaa
13th October 2004, 21:41
I have some content which is in mpeg-1 format.
Gspot displays render path as:
(S) --> MPEG-I Stream Splitter --> MPEG Video Decoder --> (R)
(S) --> MPEG-I Stream Splitter --> MPEG Audio Decoder --> (R)

I'd like to convert that for a decent avi. I figured it would save lots of space as exracting just the audio and recompressing it (mp3&ogg) will get me space saving. Or am I totally mistaken already?

Problem is that I haven't found any good manuals for what I want to do. I have gordian knot and the tools that came with it. With virtualdubmod I can easily convert the .mpeg to avi processed with XViD, but virtualdubmod doesn't have any options for audio. So audio gets included as uncompressed PCM, which results to _huge_ file. Original is 10 megs, here is the result:
Name.........: sample.avi
Filesize.....: 15.1 MB (or 15,544 KB or 15,917,056 bytes)
Runtime......: 00:01:00 (1,809 fr)
Video Codec..: XviD
Video Bitrate: 689 kb/s
Audio Codec..: PCM Audio
Audio Bitrate: 1411 kb/s (705/ch, stereo)
Frame Size...: 352x240 (1.47:1) [=22:15]


VirtualDub (without mod) on the other hand has options for audio processing, but it does not seem to support compression by XViD, only DivX (which I don't plan to use).

Am I trying to achieve something stupid here as seems like nobody else has done it?
If it's not impossible, what would be the correct tool for it?

stephanV
13th October 2004, 22:07
huh?

VDub doesnt support XviD... but it does, just as every other vfw codec.

anyway, the audiomenu in VDM is in streams-->streams list (right click on the stream for options)

jggimi
14th October 2004, 00:20
http://www.doom9.org/vdubmod-procedures.htm

jaapaa
14th October 2004, 06:04
This is the 1st time I say thank you for someone telling me to RTFM.
I had done lots of RTFM, but not the right ones..
http://www.doom9.org/vdubmod-procedures.htm
With the small detail about nandub did the thing...

So here is what I think is the procedure (I just woke up, error may appear in my text)

- demux the mpeg so that you get .wav for the sound
- compress the mpeg with XDiV and create avi, ignore the audio options
- Compress the wav to mpeg (with lame etc)
- Use nandub to join the video and audio. Set video to direct stream copy. Now here is the thing that solved everything: At audio, selevt the MP3 and also set audio to direct stream copy

That did the thing!
Original sample was 10 megs, now I have 5.98 meg file, which image quality seems unaffected to the original.

AVI File Details
========================================
Name.........: sample2.avi
Filesize.....: 5.98 MB (or 6,126 KB or 6,273,024 bytes)
Runtime......: 00:01:00 (1,809 fr)
Video Codec..: XviD
Video Bitrate: 693 kb/s (0.274 bits/pixel)
Audio Codec..: 0x0055(MP3) ID'd as MPEG-1 Layer 3
Audio Bitrate: 128 kb/s (64/ch, stereo) CBR
Frame Size...: 352x240 (1.47:1) [=22:15]

jaapaa
14th October 2004, 16:37
God darn, now I figured how to use the stream menu....
One doesn't need nandub at all..

killingspree
14th October 2004, 18:24
cheers

i have to admit the vdub procetures guide needs updating! ;)