Log in

View Full Version : AVI input file (MJPG video / PCM audio) for GK or autoGK


dibl
1st September 2004, 09:13
I have been using Canon S1 digital camera for a while and collected quite a few movie clips (640x480, 30fps, MJPG for video, PCM for audio). I wonder what would be the easiest way to compress them to xvid format? (I know this can be done with virtualdub manually. )

Here is a sample of such video clips:

http://www.dcresource.com/reviews/canon/powershot_s1-review/MVI_0134.AVI

I have tried latest GKnot and run into the "Grey-Screen"-Problem. And according to AutoGK FAQ:

5.4 Will AutoGK support other input materials (AVI, MPG etc)?
- atm there is no immediate plans for support of AVI and MPEG1 sources. But MPEG2 sources (including transport streams) and pure VOBs are supported starting from version 1.41 (File mode)


AutoGK will not support avi loading any time soon. :-(

jggimi
1st September 2004, 12:47
Hello, and welcome to the forum.

I don't have an MJPEG codec installed at the moment, so I used the following method to convert your AVI to XviD with Gordian Knot:
I used this script to open your file within GKnot:

DirectShowSource("test.avi")
ConvertToYUY2()

I extracted the PCM soundtrack to a separate .wav file:

Opened the .avi in VdubMod
Used "Streams....Streams List" to open the Streams list.
Clicked "Save WAV"

I manually converted the audio to MP3 with BeSweetGUI in order to force input sampling rate to 48Khz -- there's a known bug with lame_enc.dll -- I suppose one could add "-fs 48000" from within Gknot, though I've not tried. I use BeSweetGUI because I can't ever remember the syntax of BeSweet's numerous command line options. "Start....Programs....Gordian Knot...Apps...BeSweet" will open BeSweetGUI.

Since I'd already converted to MP3, I used "just mux" for the audio track in Gknot.
Here's a link (http://mywebpages.comcast.net/jggimi/xvid.avi) to an XviD version of your AVI file. Yours was 23 MB, this is less than 4MB.