View Single Post
Old 5th August 2008, 10:51   #602  |  Link
SpAwN_gUy
Junglist
 
SpAwN_gUy's Avatar
 
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
the Complete x264farm setup HOW-TO... (2008-08-05)

hi, guys, i've been asked to help with x264farm setup...
and i'm on the new pcBox ... so i had some time.. to just test everything from the scratch or something like this...

fullPicture is here
the Picture shows win Vista SP1 x64 ... with two running agents.
one from commandline, - this one is doing controller-based
second started over the network through my agentGUI. - this one is agent-based
they both use nice at 20,
and mingw compiled x264 x86 r928 from b0bor's site .. (plain git)
no x264x64 (i havent found one x64 for now)
aviSynth 258.. but x86

test encode uses mpeg2-progressive source, mpeg2-Telecined with YATTA, x264-source form HDTVstream using DGAVCDec..

to get all thing working i needed to (this is imporatnt) set nice's compatibility mode to winXP-SP2 ... otherwise the whole thig was not working.. (but only for agents...)

and.. UNBLOK controller and agents in winFirewall !!!

and that's just it ...
any questions are welcome ....
(i guess, i should better show the meGUI-Mod.. but it is still unusable... (well, the new version))

controller's config.xml
Code:
<config>
<temp>controller-temp</temp>
<!-- Some directory for storing temp data -->
<adhoc controller="40700" agent="40701"/>
<agents>
</agents>
</config>
agent's config (the command-line controller-based one):
Code:
<config>
        <temp>temp</temp>
        <port from="40700" to="40701"/>
        <x264>x264.exe</x264>
        <nice>20</nice>
        <adhoc controller="40700" agent="40701"/>
        <number>1</number>
        <agentpipe>0</agentpipe>
        <compression>
                <type>1</type>
                <type>0</type>
        </compression>
</config>
angent's config (the one that is common and is started over the network with my agentGUI (it can be started the same way using "\\myPC\x264farm\!AGENT\agent.exe --config \\myPC\x264farm\!AGENT\config.xml")):
Code:
<config>

        <temp>temp</temp>
        <port from="40700" to="40701"/>
        <x264>\\myPC\x264farm\!AGENT\x264.exe</x264>
        <nice>20</nice>
        <bases>
                <base>\\myPC\x264farm-2\</base>
                <base>\\myPC\x264farm\</base>
        </bases>
        <adhoc controller="40700" agent="40701"/>
        <number>1</number>
        <agentpipe>0</agentpipe>
        <compression>
                <type>1</type>
                <type>0</type>
        </compression>
</config>
theese are the internals of test.avs used:
Code:
SetMemoryMax(64)

#  PLUGINS
LoadPlugin("\\myPC\x264farm\TEST\filters\DGDecode.dll")
LoadPlugin("\\myPC\x264farm\TEST\filters\FluxSmooth.dll")
LoadPlugin("\\myPC\x264farm\TEST\filters\DGAVCDecode.dll")
LoadPlugin("\\myPC\x264farm\!filters\TDeint.dll")
LoadPlugin("\\myPC\x264farm\!filters\TIVTC.dll")

function mpeg2(){
clip1=mpeg2source(".\mpeg2\test.d2v", idct=0)

clip1=crop(clip1,14,82,696,412)

return LanczosResize(clip1,640,480)
}

function mpeg2anime(){

d2vpath = ".\mpeg2-anime\yatta-test.d2v"
clip1=mpeg2source(d2vpath, idct=0)

deint = tdeint(clip1)
clip1 = tfm(clip1, d2v=d2vpath, clip2=deint)

return LanczosResize(clip1,640,480).AssumeFPS(25).Trim(400, 3400)
}

function ColBars() {
return ColorBars(640,480).AssumeFPS(25).ConvertToYV12().KillAudio.Trim(0,1000)
}

function h264() {
clip2=AVCSource(".\h264\hgttg-test.dga", deblock=false)

return clip2.AssumeFPS(25).ConvertToYV12().KillAudio.LanczosResize(640,480)
}

mpeg2().Info.Overlay(Version, x=200, y=400) + ColBars().Info.Overlay(Version, x=200, y=400) + h264().Info.Overlay(Version, x=200, y=400) + mpeg2anime().Info.Overlay(Version)
the is: E:\DVDRIP\x264farm\TEST\mpeg2\test.d2v internals (the .vob is located just near E:\DVDRIP\x264farm\TEST\mpeg2\VTS_01_8.VOB)
Code:
DGIndexProjectFile16
1
VTS_01_8.VOB

Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=5
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x576
Field_Operation=0
Frame_Rate=25000 (25/1)
Location=0,0,0,b9de

900 5 0 20480 0 7 18 72 d2 f2 f2 e2 f2 f2 e2 f2 f2 e2 e2
d00 5 0 258048 0 7 18 d2 f2 e2 f2 f2 e2 f2 f2 e2 f2 f2 e2
.......
this is E:\DVDRIP\x264farm\TEST\h264\hgttg-test.dga
the only part i har to change manually is path to libavcodec (this is not implemented to be relative-path .. i had to change it to network-path)
Code:
DGAVCIndexFile5

hgttg-test.h264
\\myPC\x264farm\TEST\filters\libavcodec.dll

FO 2

LPOC 0
SPS 0
PPS 28
this is E:\DVDRIP\x264farm\TEST\mpeg2-anime\yatta-test.d2v (the one that is manually inverse-Telecined with YATTA ( ivtc.org ))
Code:
DGIndexProjectFile16
1
VTS_01_5.VOB

Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=5
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=4:3
Picture_Size=720x480
Field_Operation=0
Frame_Rate=29970 (30000/1001)
Location=0,0,0,44837

900 5 0 2048 0 5 2 32 32 92 b2 b2 a2 b2 b2 a2 b2 b2 a2 b2 b2 a2
...
aviSynth filters are located here
Code:
localPath: E:\DVDRIP\x264farm\TEST\filters\
networkPath: \\myPC\x264farm\TEST\filters
basically.. my setUP is to use network-share:
Code:
localPath: E:\DVDRIP\x264farm
networkPath: \\myPC\x264farm
for my agentGUI i use common agent setUP located here:
Code:
local: E:\DVDRIP\x264farm\!AGENT
network: \\myPC\x264farm\!AGENT
that's i folk ... it's pretty simple...

the some kind of minimal setUP can be obtained form here

winAMP plays: [Apex - Same Old Blues]:[Drum & Bass-2008]:-:[5:40s]:[320-44KHz-stereo]:[MP3]

BTW: if you find any confidential data in things, that i wrote here .. please.. DON'T USE IT.. and tell me about it..
some mistakes can be.. that "myPC" real network name is "SC0151" remember that...
__________________
Rule Number 6: Concentrate!!!
(c)Hercules, Disney

"I like to build planes.... in the air" (c) some ADV.

tutorials
How to Setup agent-based encoding with x264farm (the easy way)

Last edited by SpAwN_gUy; 5th August 2008 at 10:57.
SpAwN_gUy is offline   Reply With Quote