Log in

View Full Version : TCPDeliver very slow


Egladil
2nd September 2006, 20:32
I'm trying to use 2 computers to encode a video, and my avisynth script is pretty heavy, so I tried TCPDeliver.

The problem is, it's really slow. I have a gigabit link between the computers, but the bandwidth used by avisynth is ~5mbit, that makes ~1 fps with 1280x720 yv12 material. The cpu is almost idle too. If i turn on compression the frame rate inscreases, but the used bandwidth does not.

I've tried 2.5.6
2.5.7 alpha
2.6 alpha

they all behave similar, none shows acceptable performance.

Any help?

Cheers
-egladil

----
MPEG2Source("video.d2v", cpu=0)

DeGrainMedian(limitY=2,limitUV=3,mode=1)
LimitedSharpenFaster(ss_x=1.0,ss_y=1.0,Smode=3,strength=100,overshoot=1)
LanczosResize(1280, 720, 0, 0, 1920, 1080)
Trim(60, 0)
TCPServer()

on the other end it's only TCPClient() (with compression turned off)

Mug Funky
3rd September 2006, 16:12
i'll have to resort to emoticons here: :script:

is the CPU load light on both ends, or just the receiving computer?

Egladil
3rd September 2006, 16:29
Both ends

unskinnyboy
3rd September 2006, 16:37
hmm..déjà vu (http://forum.doom9.org/showthread.php?t=86311)...

TCPDeliver is slow because of unoptimized code. sh0dan did talk about a UDPDeliver to supersede TCPDeliver, but no idea what happened to it. Lack of an audience and hence a lack of interest on his part, I would guess. You'd be better off optimizing your script, TCPDeliver or not.

Egladil
3rd September 2006, 17:08
http://forum.doom9.org/showthread.php?t=87547

And that was after the thread you found.

unskinnyboy
3rd September 2006, 17:45
Ah, missed that, sorry. So there have been some developments after all. We don't hear much of TCPDeliver around here, I must admit. I would have suggested you try multithreading using tsp's MT filter or even encode multi-threaded using ELDER4XVID (if XviD..) or something, but this sounds network related.

Just a thought - which 2.5.7a build did you try? The changelog for the 04/22/06 build says TCPDeliver updates, crash fixes and enhancments when I checked it now. Try that, if you haven't already.

Egladil
3rd September 2006, 17:53
I did try that build...