Log in

View Full Version : VCD to divx(xvid)?


ThaChinky
8th March 2003, 20:17
I was wondering if it is possible to use GKnot to convert a dual audio VCD to Divx using GKnot. Can this even be done in GKnot? i guessed that dvd2avi doesn't work w/ mpeg1 files since it didn't load up the mpeg i gave it.

If it can't be done in GKnot, is VDub the only way to do it?

jggimi
8th March 2003, 20:40
It can, you just need to use AviSynth to frameserve the video, such as:DirectShowSource("file.mpg",29.97)then open this one line .avs file in Gknot 0.27. You'll have to demux the audio tracks (TMPGEnc, perhaps) and convert them to MP3 with BeSweetGUI, then "Just Mux" them in Gknot.

ThaChinky
13th March 2003, 17:43
ah..
thnx for the info.
ill try that out to see how it goes.

ThaChinky
14th March 2003, 08:00
ah..
i finally got the mpeg file loaded into GKnot after about 30 seconds of loading time.
but the frame somehow got cropped like crazy and went from a full screen to wide screen. and gknot takes forever trying to do something, but i don't know what.
finally when i try to recrop the vid and check the sample in that popup window it has the flashing words "Video Desync!" on a black background.

any idea what could have happend?

jggimi
14th March 2003, 13:21
From www.avisynth.org: DirectShowSource

DirectShowSource(string filename[, int fps][, bool seek])

DirectShowSource reads filename using M$ DirectShow, the same multimedia playback system which Windows Media Player uses. It can read most formats which Media Player can play, including MPEG, MP3, and QuickTime, as well as AVI files that AVISource doesn't support (like DV type 1, or files using DirectShow-only codecs). Try reading AVI files with AVISource first, and if that doesn't work then try this filter instead.

There are some caveats:

1. No sound support yet.
2. No support for GRF files. I could add this if there's any demand for it.
3. Some decoders (notably MS MPEG-4) will produce upside-down video. You'll have to use FlipVertical.
4. DirectShow video decoders are not required to support frame-accurate seeking, and most don't. As long as you just read a portion of the video sequentially you should be fine, but heaven help you if you want to do anything more complicated. This limitation doesn't apply to AVI files, or to any other format for which there's a frame-accurate DirectShow decoder.
5. DirectShow video decoders are not even required to tell you the frame rate of the incoming video. Most do, but the ASF decoder doesn't. I may eventually solve this by automatically analyzing the stream (as VirtualDub used to), but for now you have to specify the frame rate using the fps parameter, like this: DirectShowSource("video.asf", fps=15).
6. This version automatically detects the Microsoft DV codec and sets it to decode at full (instead of half) resolution. I guess this isn't a caveat. :-)


Forward seeking can be done, but it is very slow. When seeking backward, a warning is displayed when the video is out of sync. If the file format does very slow seeking (WMV for instance), this can be disabled by setting the "seek" parameter to false. [v 2.07]

ohliuv
17th March 2003, 09:40
@ThaChinky: keep the video material in VCD, unless it's really necessary to convert it. Some time ago I fooled around converting VCD to divx, didn't like visually any of the results, and, in the end, left it in the original format.

ThaChinky
17th March 2003, 22:13
i would like to keep all those VCDs in vcd format but when i got multiple series of at least 20CD/series it gets to be A LOT of cds and cost a lot of money.

ThaChinky
21st March 2003, 05:35
ok i obviously don't know what i'm doing.
my encodes of VCD2Divx are spitting out HUGE files. I tell it to make it 195 megs, but the files are way over the 1 gig size! After i kill the encode, the filesize suddenly shrinks!(don't ask me how!)
i didn't bother to set the credits part (if that makes a difference).

here is what my AVS files has:

DirectShowSource("hkm-wtap.ii.ep01test.mpg",29.97)

here is a cut and paste from my log file. Hope somebody can tell me what i'm doing wrong. if all else fails i'll need to resort to manual VDub, which will be a pain..considering i need to convert 20 files and don't know how to make a queue like in GKnot!

20/03/2003 10:13:27 PM: Job "wtap2_ep1" started.

o DivX5-First Pass: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avs
o DivX5-Second Pass: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avs
x Mux Audio (disabled).
End of Job 2 (wtap2_ep1).
_______________________________________________________________________________________________________________________

Gordian Knot 0.27.0.13
Encoding Job Data:

Type: EncD5_Both
Number: 2
Name: wtap2_ep1
Platform: WinXP (5.1.2600).2

Files:
VirtualDubExe: C:\PROGRA~1\GORDIA~1\virtualdub\Virtualdub.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avi
AviMovie: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test_Movie.avi
AviCredits: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test_Credits.avi
MovieFS: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avs
CreditsFS:
Log : E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.log
Stats: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.stats
Ecf : E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.ecf

Options:
Quality/DRF: 0
CreditsStart: 0
UseEcf: 1
CreditsIVTC: 0
CreditsAppend: 1
DeleteInterm.: 0
EnforceBitrate:0
AntiShit: 0

Calculator:
VideoSize: 366721 kbyte.
Audio1Size: 32768 kbyte.
Audio2Size: 0 kbyte.
Overhead: 1918 kbyte.
AviSize: 401408 kbyte (392 mbyte).
FilesSize: 0 kbyte.
TotalSize: 401408 kbyte (392 mbyte).
Interleaving: disabled
Bitrate: 1124 k(=1000)Bits/s
Frames: 80080
FPS: 29.970
Duration: 0:44:32
Quality: 0.212 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.349 bits/(pixel*frame).
DivX5BiDirect: 1
DivX5GMC: 1
DivX5QuartPel: 0
DivX5PsyVis: 0
Resolution: 480 x 368

Audio 1:
none.

Audio 2:
none.

10:13:27 PM: Audio 1, calc: 32768 kb
10:13:27 PM: Audio 1, disabled, no recalc. - you probably want to add this track later.

Adding this script to C:\PROGRA~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 First Pass"
// $input "E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avs"
// $output "E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("E:\\Downloads\\Witness.To.Prosecution.2\\Wtap2.ep1test.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(404,"GAEAAKAmEQDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAgAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAEAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEU6XERvd25sb2Fkc1xXaXRuZXNzLlRvLlByb3NlY3V0aW9uLjJcV3RhcDIuZXAxdGVzdC5sb2cAYzpcdGVzdC5kaXZ4AEU6XERvd25sb2Fkc1xXaXRuZXNzLlRvLlByb3NlY3V0aW9uLjJcV3RhcDIuZXAxdGVzdC5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("E:\\Downloads\\Witness.To.Prosecution.2\\Wtap2.ep1test.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

10:13:27 PM: Started DivX5-First Pass: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avs
10:15:09 PM: Finished DivX5-First Pass. Duration: 1 minute, 42 seconds.
10:15:09 PM: Trying to open Log-file.
10:15:09 PM: Error: Could not open E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.log
10:15:09 PM: Error: Could not count encoded Frames.
10:15:09 PM: Speed: 0.000 Frames per Second.
10:15:09 PM: WARNING: Number of counted frames differs from settings!
10:15:09 PM: WARNING: Settings: 80080
10:15:09 PM: WARNING: Counted: 0
10:15:09 PM: WARNING: Difference: 80080
10:15:09 PM: Correcting Bitrate...
10:15:09 PM: Original Bitrate = 1124 k(=1000)Bits/s
10:15:09 PM: ERROR: Correction impossible.
10:15:09 PM: Now encoding at 1124 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Second Pass"
// $input "E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avs"
// $output "E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("E:\\Downloads\\Witness.To.Prosecution.2\\Wtap2.ep1test.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(404,"GAEAAKAmEQDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAwAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAEAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEU6XERvd25sb2Fkc1xXaXRuZXNzLlRvLlByb3NlY3V0aW9uLjJcV3RhcDIuZXAxdGVzdC5sb2cAYzpcdGVzdC5kaXZ4AEU6XERvd25sb2Fkc1xXaXRuZXNzLlRvLlByb3NlY3V0aW9uLjJcV3RhcDIuZXAxdGVzdC5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("E:\\Downloads\\Witness.To.Prosecution.2\\Wtap2.ep1test.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

10:15:09 PM: Started DivX5-Second Pass: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avs
10:16:39 PM: Finished DivX5-Second Pass. Duration: 1 minute, 29 seconds.
10:16:39 PM: Speed: 0.000 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Append"
// $input "E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test_Movie.avi"
// $output "E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("E:\\Downloads\\Witness.To.Prosecution.2\\Wtap2.ep1test_Movie.avi",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("E:\\Downloads\\Witness.To.Prosecution.2\\Wtap2.ep1test.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

10:16:39 PM: Started Appending Credits: E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test_Movie.avi
10:16:39 PM: Finished Appending Credits. Duration: 0 seconds.

10:16:39 PM: Done.
10:16:39 PM: Movie = E:\Downloads\Witness.To.Prosecution.2\Wtap2.ep1test.avi
Total Encoding Time: 3 minutes, 12 seconds.
20/03/2003 10:16:39 PM: Job "wtap2_ep1" finished.
_______________________________________________________________________________________________________________________

ThaChinky
21st March 2003, 08:03
oh nevermind.
somehow my divx 5.02 codec was messed up and after re-installing it works perfect!
thats the second time this has happend