Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Error While Opening Multiple Streams In Script, Anybody experienced with this?
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
erudub
  Posted: Aug 24 2011, 06:27 PM


Newbie


Group: Members
Posts: 5
Member No.: 32777
Joined: 24-August 11



CODE
VirtualDub.video.SetMode( 0 );
VirtualDub.Open( "D:/video.avi", 0, 0 );
VirtualDub.stream[0].SetSource( "D:/track1.mp3", 514 );
VirtualDub.stream[0].SetMode ( 0 );
VirtualDub.stream[1].SetSource( "D:/track2.mp3", 514 );
VirtualDub.stream[1].SetMode ( 0 );


Running this script I get the error: "SetMode was applied on a stream not initialised by SetSource."
Anyway: The first stream opens fine (parsing window opens and shows progress and closes). But no second stream seems to be parsed: no window etc.

What's my mistake, I don't get it!? blink.gif

Greets,
E.
 
     Top
erudub
Posted: Aug 25 2011, 03:55 PM


Newbie


Group: Members
Posts: 5
Member No.: 32777
Joined: 24-August 11



PS: I am working with VirtualDubMod 1.5.10.2
 
     Top
dloneranger
Posted: Aug 25 2011, 04:52 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



This works for me
CODE
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("Q:\\tst.mp3",0x00000202,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[1].SetSource("Q:\\tst.mp3",0x00000202,0);
VirtualDub.stream[1].SetMode(0);


By the way
VirtualDubMod has nothing to do with this site really
It's an old version of virtualdub, modified by someone else who then got bored with updating it
So don't be surprised if you don't get as many answers here

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
erudub
  Posted: Aug 25 2011, 07:11 PM


Newbie


Group: Members
Posts: 5
Member No.: 32777
Joined: 24-August 11



Error 40

Reading your post I saw the problem: I had to exchange the first two lines and now it works smoothly!! ohmy.gif
QUOTE
VirtualDub.Open( "D:/video.avi", 0, 0 );
VirtualDub.video.SetMode( 0 );


Thx for the help! biggrin.gif

EDIT
PS: Does this work in VDub also? I understand that VDub only accepts one stream, right?
 
     Top
dloneranger
Posted: Aug 25 2011, 07:24 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Ha biggrin.gif never even noticed you had the top 2 lines reversed

Yeah, virtualdub one deals with one stream, which I guess is why people still use virtualdubmod

Virtualdub's scripting has is similar but not quite the same syntax as virtualdubmod

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
4 replies since Aug 24 2011, 06:27 PM Track this topic | Email this topic | Print this topic

<< Back to Advanced Video Processing