Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Thread Tools Search this Thread Display Modes
Old 22nd May 2010, 23:33   #1  |  Link
I'm a newb, NOT a noob
Join Date: Mar 2007
Location: Next door
Posts: 86
Avisynth's TCPServer protocol

Is there any documentation available on the protocol that Avisynth uses for its TCPServer and TCPSource functions? I'd like to write an external program that can connect to a script that's running TCPServer.
nonoitall is offline   Reply With Quote
Old 26th May 2010, 11:25   #2  |  Link
Retired AviSynth Dev ;)
sh0dan's Avatar
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
The format for connecting is pretty basic, and is documented in the source code. The types of compression supported by the client can be sent to the server, so you don't have to support all compression types in the client.

I made a very basic client that allows you to connect to a sever from the command-line.


Sourcecode of client:

From the source:

General overview:

This client is designes as a universal way of transfering (un)compressed
video via TCP LAN. The client is in no way intended to be used over slow
connections due to the datasizes.

The system is based on the TCP protocol and implemented using WinSock2
All data sent is made platform independant, but assume little endian (Intel).

Data is sent as packaged TCP streams, and each packet is deviced like this:

0-4: Packet size EXCLUDING these four bytes.[unsigned int32].
5: Packet type.
6: Packet data.

Next packet is assumed to start right after the packet data.
There is no fixed maximum packet type, but large data amounts
(like frames and samples) are split up into subpackets

Structs and info:

Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 28th May 2010, 00:30   #3  |  Link
I'm a newb, NOT a noob
Join Date: Mar 2007
Location: Next door
Posts: 86
Thanks very much!
nonoitall is offline   Reply With Quote

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

All times are GMT +1. The time now is 13:09.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.