Log in

View Full Version : SetMode Error from VirtualDub


SylvainC
7th October 2005, 01:06
I have used AutoGK 2.17b successfully to convert a few of my DVDs to AVI (DivX) for my portable media player.

That was great until I started to get the following error message from VirtualDub (which is called by AutoGK I understand): "The function SetMode was called on a stream [?] that hasn't been previously initialized with SetSource."

I can no longer convert anything and don't know what's going on. Worse, the error message only appears after AutoGK has "churned" for quite a while. :(

I have noticed that the problem appeared after I started VirtualDub by myself (not through AutoGK) in order to try to edit one of my converted DivX files. Maybe opening up VirtualDub independently screwed up some of the defaults?

I have since re-installed AutoGK 2.18b but I don't think it did anything to VirtualDub. I don't know what's wrong and would like to get that going again...

Any idea?

:thanks:

Here's a log file in case it could help:

VirtualDub.Open("C:\\BRITNEY\\VIDEO_TS\\agk_tmp\\VTS_02_0_movie.avs",0,0);
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(547,"zAEAAAAAAAABAAAAAAAAAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAACwBAAAyAAAAIBF
qAAAAMAAAACQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmpmZmZmZyT+amZmZmZnJPw
AAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAZAAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAP////8CAAAAAQAAAAAAAAABAAAAAgAAAAAAAAABAAAAAAAAAEM6XEJSSVR
ORVlcVklERU9fVFNcYWdrX3RtcFxWVFNfMDJfMF9jb2RlYy5sb2cAYzpcdGVzdC5kaXZ4AGM6XG12aW5mby5iaW4AYzpcbmV3cmMu
dHh0AA==");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("C:\\BRITNEY\\VIDEO_TS\\agk_tmp\\VTS_02_0 T01 2_0ch 192Kbps DELAY 0ms.mp3",0x00000202,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,2,0,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression();
VirtualDub.SaveAVI("C:\\BRITNEY\\VIDEO_TS\\VTS_02_0.avi");

SylvainC
24th October 2005, 02:34
I have removed AutoGK and VDub and reinstalled AutoGK 2.2.

Regrettably, I got the same error message 20 minutes later towards the end of the conversion process (for a 200MB .VOB file).

Isn't there anyone who's had that problem?

I just don't know how to fix this and still have more conversions to do :(

Help!

jggimi
24th October 2005, 02:40
Normally, one thinks of system stability -- heat, usually -- causing encodes to fail partway through.

However, there have been a number of errors reported with your error message. If you search for "setmode" and (in advanced search) have the results shown as individual threads, you may find one or two that may help. Or may not. One that may be audio related is:

http://forum.doom9.org/showthread.php?p=633178&highlight=setmode#post633178

Good luck!

SylvainC
24th October 2005, 03:04
Thanks for the link. It says issue might just be with a specific bitrate.
I'll try that now!

SylvainC
24th October 2005, 22:43
I have changed the audio encoding rate and was able to convert a .VOB more or less successfully. What I mean is that I did not get the error message this time and it converted my .VOB file to .AVI but the audio is out of synch with the video! :( I guess I'll have to do a search on that problem now... Any thoughts?

SylvainC
12th November 2005, 04:38
My problem was in fact related to the audio encoding rate. 144 kbps generates the error. 128 or 160 kbps works fine.

Audio/video synchronization problem is still happening but only with one .VOB. I believe it has to do with the fact that the .VOB in question has menu information that throws off the conversion.

Thanks for the tip jggimi :)