Go Back   Winamp Forums > SHOUTcast > SHOUTcast TV / Nullsoft Video

Reply
Thread Tools Search this Thread Display Modes
Old 24th March 2007, 11:45   #1
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
Good fun

Start up nsvcap twice.

pick two vid devices.(I know you got two)

pick two aud devices. (I dont have two right now, but some of you do)

Uncheck the audio in second cap unless you have two audio cards.

Set the destinations to 66 and 80 (67 81)

Start the test app.

start default dnas server 8000(8001 changeme).


Start both nsvcaps, 80 first

Read the code and guess what will happen.

code:

NSVp source("81");
NSVp source2("67");
NSV_Marshal sender;


for(;{
source.FrameNo=0;
for
(;
{
sender.CastFrame (&source2);
source.StepFrame ();
source2.StepFrame ();
if (source.FrameNo >500){
if ((source.up.isSynchFrame()))break;
}

}

source.FrameNo=0;
for
(;
{
sender.CastFrame (&source);
source.StepFrame ();
source2.StepFrame ();
if (source.FrameNo >500){
if (source2.up.isSynchFrame())break;
}

}
}


Last edited by Smelter; 24th March 2007 at 12:08.
Smelter is offline   Reply With Quote
Old 24th March 2007, 11:48   #2
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
If you cant guess, Fire up winamp and connect to the server and watch.
Smelter is offline   Reply With Quote
Old 24th March 2007, 12:04   #3
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
hmmm attachment error

These classes work both ways.IN ,Like the above sample and out, to multiple dnas as well.
Attached Files
File Type: rar crapshot.rar (97.5 KB, 106 views)

Last edited by Smelter; 24th March 2007 at 12:37.
Smelter is offline   Reply With Quote
Reply
Go Back   Winamp Forums > SHOUTcast > SHOUTcast TV / Nullsoft Video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump