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. |
13th February 2007, 22:58 | #161 | Link | |||
Registered User
Join Date: Aug 2005
Posts: 34
|
Quote:
Quote:
it found the avs fine, but it kept saying the d2v wasnt found or wasn't "valid" (don't remember the exact words, but that was basicly the saying). The ETA's as reported by the controller yes. Quote:
PS: I had to set up avs2yuv on the laptop too! It kept saying avs2yuv no such internal/external command (no, on the agent log, NOT controller. controller works fine with avs2yuv). Not that big a deal since it's working, I just thought maybe you had some comment about that? I can't see why the agent would need it as it ran agent-encode the entire time (and well... it definately wouldn't make controller encode on the agent! ) Last edited by whatever-ever; 13th February 2007 at 23:01. |
|||
14th February 2007, 00:58 | #162 | Link | ||||
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
Quote:
If you have the C:\!RAW directory shared somewhere, then the relative path will still make it point to the right directory. Think of it this way: the way you had it, your laptop is seeing the .avs file refer to "C:\!RAW\test2.d2v" Does that path exist on the laptop? If not, then you have to make sure you share the proper path. The easiest way to make it all work is to have the .avs, .d2v, and .vob files in the same (shared!) directory, then just omit all the paths when one references another. Quote:
Quote:
The error you are getting means that the laptop reads the .avs and tries to load "C:\!RAW\test2.d2v", which probably doesn't exist on the laptop. Quote:
Set the <agentpipe> to the number 0 or comment out / delete the line altogether. The agents won't need avs2yuv anymore
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 |
||||
14th February 2007, 08:17 | #163 | Link | |
Registered User
Join Date: Aug 2005
Posts: 34
|
Quote:
It's so obvious now, damn I've been blindsighted! My d2v wasn't relative (the d2v file if viewed). I'll shut up and run a test THANKS! |
|
14th February 2007, 11:40 | #164 | Link |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
.. maybe i'll write a tutorial.... or maybe not ...
so,.. i've come back with the tests of 1.08.. AWESOME!!!!!!!!!!!!! i think you've modified x264... 'cause it RUNS pretty well,.. ) .. i've encoded that problemous file... but i've messed up with bitrate, so the file came oversized.. now i'm ReEncoding it.. minuses: agents are suddenly exiting(started over network). I have DUMP... controller suddenly hanged yesterday.. on exiting first pass.. i dunno why. it was running smoothly, and when i left - something happened(i don't have dump..) and i've made a some kind of contest.. calculated sum of fpses of agents.. (2x and 3x).. 2x =( 1, pad1) 3x = (2, pad1) yeppie... now i have one CoreDuo2 !!!!!.... it's freaking awesome.. (and two or three are coming) Code:
Agent | FPS p4 Core Duo2 E6400 2.13GHz/2Gb/W32bit 3x | 7.05 p4 3000/1Gb/W32bit 2x | 3.05 AMD 3000+/1Gb/W64bit 2x | 2.86 AMD 3500+/1Gb/W32bit 2x | 2.83 AMD 3700?/1Gb/W32bit 2x | 2.67 p4 3000/1Gb/W32bit 2x | 2.23 p4 3200/1Gb/W32bit 2x | 1.48 p4 1800/512/W32bit 2x | 0.89 13.09 FPS total now it' running ~16fps i'm a bit confused and lost in translation... what ARE the Assorted params??? I should never use them in passParams, or controller DELETES them from pass params?? .. and do i need "--threads 2" and "--thread-input" in passParams?
__________________
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) |
14th February 2007, 12:11 | #165 | Link | |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
Quote:
on each agent PC you will need AviSynth Installed. ok, ok,... the Tutorial : dir structure: Code:
D:\DVD-RiP\!!!x264farm-LOCAL-DiR\ D:\DVD-RiP\!!!x264farm-LOCAL-DiR\file.d2v D:\DVD-RiP\!!!x264farm-LOCAL-DiR\fileAVS.avs .vob are in: D:\DVD-RiP\!!!x264farm-LOCAL-DiR\iN\VIDEO_TS\ AviSynth plugz are in D:\DVD-RiP\!!!x264farm-LOCAL-DiR\filters Code:
\\controllerpc\x264farm\file.d2v \\controllerpc\x264farm\fileAVS.avs .vob are in: \\controllerpc\x264farm\iN\VIDEO_TS\ AviSynth plugz are in \\controllerpc\x264farm\filters\ UPD..(2007-10-02): Don't forget to download DGIndex 1.5.0 beta 3 .. it has "Relative paths saving" here Code:
DGIndexProjectFile13 5 iN\VIDEO_TS\VTS_01_1.VOB iN\VIDEO_TS\VTS_01_2.VOB iN\VIDEO_TS\VTS_01_3.VOB iN\VIDEO_TS\VTS_01_4.VOB iN\VIDEO_TS\VTS_01_5.VOB Stream_Type=1 ...... Code:
SetMemoryMax(32) LoadPlugin(".\filters\DGDecode.dll") # SOURCE mpeg2source("file.d2v", info=3) ...... etc Code:
<bases> <base>\\controllerpc\x264farm\</base> <base></base> </bases> Code:
controller.exe --first "--bframes 3 --b-pyramid --direct auto --filter 1,1 --subme 1 --analyse none --vbv-maxrate 25000 --me dia --threads 2 --thread-input --progress --no-psnr --no-ssim" --second "--ref 16 --mixed-refs --no-fast-pskip --bframes 3 --b-pyramid --b-rdo --bime --weightb --direct auto --filter 1,1 --subme 7 --trellis 2 --analyse all --8x8dct --vbv-maxrate 25000 --me umh --threads 2 --thread-input --progress --no-psnr --no-ssim" --avs "D:\DVD-RiP\!!!x264farm-LOCAL-DiR\fileAVS.avs" --output "D:\DVD-RiP\!!!x264farm-LOCAL-DiR\fileOutput.mkv" --bitrate 1375kbps BTW... just now 2nd pass finished..(first pass was about ~20fps) START: 1000AM END: 1307AM this encode took about 20 hours to encode on my PC.. now i'm encoding one more time.. and i think most of agents - exited ... first pass is only using 3 of manyPC's..
__________________
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; 2nd October 2007 at 08:11. |
|
14th February 2007, 15:01 | #166 | Link | |
Registered User
Join Date: Aug 2005
Posts: 34
|
Thanks for the tutotiral Spawn!
I'm not sure what did the trick, but LOCALLY it's going great now. Encoding with 20.7 + 13.16fps on the two local agents, VERY fast (same as when encoding without farm). And the output is "better" on the local agents. Reporting "encoded frames: 103/187" and updating continuously. It might be the controller cmd line that's doing the improvements, but I'm not sure. However I can't get the external agent to follow. Getting a lot of Quote:
Now it's encoding at 0.44 and 0.57 locally and 3-4fps externally, okay... This is getting wierder and wierder! EDIT: probably NICE ***. I shut down one of the local agents and removed the vdvmax from the controller cmd line, and now local agent is at 24.77 fps and external agent at 24.1 Last edited by Guest; 7th September 2007 at 13:24. Reason: rule 4 |
|
14th February 2007, 16:08 | #167 | Link | |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
Quote:
i can't reject nice.exe, 'cause my people are working during the enCode.. so agentpipe=1, avs2yuv and nice are in the folder(on each agentPC) of .bat file, that stars agent.. btw... What is "vdvmax"?? and... temp workaround about those exits of agents: multiple starting lines in the .bat file,.. so after one crash it would start again..
__________________
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 Guest; 7th September 2007 at 13:24. Reason: rule 4 |
|
14th February 2007, 16:23 | #168 | Link | |
Registered User
Join Date: Aug 2005
Posts: 34
|
Quote:
The optimal solution would possibly be to just encode first pass in farm mode, then finish 2nd pass on controller w/o farm. Sounds stupid? It is! Is it possible to encode only first pass in x264farm? Setting the --second parametres to nothing doesn't help, it just results in warnings and no encode. It's VERY odd to me that the first pass goes so smoothly and fully uses the cpu's, then up comes second pass where cpu load still is 100pct on all machines, but between 0-1 fps on local agents and 1-3 on external agent. I know second pass takes longer, but... not more than 10 times as much! i'd say double the time. When encoding without farm I get 25fps first pass (as the agents each get) and 11fps second pass (ten times as much as agents gets). Something MUST be wrong PS: exiting doesn't seem to be a problem - anymore. Don't know why, but all jobs are running smoothly, just not very fast. |
|
14th February 2007, 20:31 | #170 | Link | ||
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
When you guys say it's exiting, does it put up any warnings or just die?
Quote:
The created stats file is here: <controller_temp_dir>\<lots_of_numbers> <name_of_avs>\1-<lots_of_numbers>.txt For example, E:\x264farm\temp\controller\2E4CD50BE0ACD87071BE02B4F72B3C54 file.avs\1-4E2586CB8D8815243D6B8F08CE7FEA77.txt Exactly which string of numbers goes with which encoding is displayed at the beginning of x264farm: Code:
AVS temp dir is E:\x264farm\temp\controller\2E4CD50BE0ACD87071BE02B4F72B3C54 file.avs First string is "...", with MD5 "4E2586CB8D8815243D6B8F08CE7FEA77" Oh, and it would be the most helpful if you sent me the dumps from when the second pass was encoding. I'd be able to see if x264farm decided to do something stupid (it's happened before!) Quote:
I'll have to look at the dump file to say more, though.
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 |
||
14th February 2007, 21:45 | #172 | Link | |
Registered User
Join Date: Aug 2005
Posts: 34
|
Quote:
I've saved the out-dump, but only from the controller, I'll check if it's usable and mail it. |
|
15th February 2007, 02:33 | #173 | Link | |
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
Quote:
Check out x264 from the repository: Code:
svn co svn://svn.videolan.org/x264/trunk x264 Code:
./configure make sudo make install You'll also need the agent for the mac. You can get 1.08 here. I didn't put a config file in the archive, but it's set up the same way as in Windows.
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 |
|
15th February 2007, 09:31 | #174 | Link | |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
Quote:
and.. x264 takes about 30% of CPUtime.. i'll do some testings about agentpipe=0.. and will send logs to you.. ...here we go Code:
firstpass pipe=1 nice=20 - avs=80% x264=27% 15.5fps pipe=1 nice=0 - avs=50% x264=50% 16fps pipe=0 nice=20 - error pipe=0 nice=0 - x264=98% 17fps secondpass pipe=1 nice=20 - avs=10% x264=84% 4.3fps pipe=1 nice=0 - avs=10% x264=85% 4.11fps pipe=0 nice=20 - error pipe=0 nice=0 - x264=98% 4.05fps fistpass-local priority: normal x264=72% 22fps secondpass-local priority: normal x264=80% 4.5fps local(controller) is p4 2400/512/W32bit ... he-he... dump does not provide anything ... here are the screen dumps(theese were not provided in eMail): Code:
Testing file "\\controllerpc\x264farm\TEST\X\test.avs": FOUND! 6 agent-based encoding 6 doing the following: nice -n 20 \\controllerpc\x264farm\!AGENT\x264.exe --bframes 3 --b-pyramid --direct auto --filter -2,-1 --subme 1 --analyse none --vbv-maxrate 25000 --me dia --threads 2 --thread-input --progress --no-dct-decimate --no-psnr --qcomp 0.6 --cplxblur 20. --qblur 0.5 --qpmin 10 --qpmax 51 --qpstep 4 --ipratio 1.4 --pbratio 1.3 --fps 25/1 --pass 1 --stats "temp\0 4196 582a6d.txt" --seek 0 --frames 4197 -o NUL "\\controllerpc\x264farm\TEST\X\test.avs" avis [error]: unsupported input format (DIB ) x264 [error]: could not open input file '\controllerpc\x264farm\TEST\X\test.avs' 6 exited 255 Thread received exception "Failure(\"ERROR: nonzero return code from x264 (255)\")"
__________________
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; 15th February 2007 at 10:52. |
|
16th February 2007, 04:00 | #175 | Link | |
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
Quote:
@whatever-ever: I'll take a look at those logs you sent me. There should be something I can do about the speed.
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 |
|
16th February 2007, 09:41 | #176 | Link |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
yeah,.. and..
it seems, that x264farm has something wrong with Oversize .. i had 2 encodes of the same source(with different x264profiles), with same bitrate, and the files were a) different in size (~30Mb) b) they were oversized.. about ~60Mb to ~93Mb... why?
__________________
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) |
18th February 2007, 03:51 | #177 | Link |
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
@SpAwN_gUy:
Well, the files are going to be different, since the scenes never finish encoding in the same order. They should not be that different, though. It also looks like my bitrate-multiplier calculation is not quite right... There is not enough feedback to correct for any bitrate discrepancy, so x264farm is always trying to pull the bitrate up. I'll try to fix it in the next release (or at least make it better) To fix it in the short-term, you can increase the number of 3rd-pass scenes. The settings that control the third pass: --3thresh How far off the bitrate must be in order to consider for 3rd pass. 0 = completely wrong, 1 = exactly right. Default = 0.8 --3gops The maximum number of scenes to consider for the 3rd pass. Default = a lot --3ratio Same as --3gops, but as a percentage of the total scenes (well, not really percentage, but from 0 to 1) Default = 0.05. The default parameters will re-encode up to 5% of the total scenes, but only if the scene's ratio expected_bitrate / actual_bitrate is less than 0.8. To make the bitrate more exact, raise both --3thresh and --3ratio. Something like --3thresh 0.95 --3ratio 0.2 Meanwhile, I'll try to make the ratecontrol smarter.
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 |
19th February 2007, 16:54 | #179 | Link |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
so.. how the loop goes(or a hang)
controller hangs on close_connection ... of agents at the end of second pass.. and after the restart.. it starts(or continues) to reEncode something.. it is 99% of an encode...(with modified 3tresh and.. as omion advised).. it happened 3 times for now.. (yeah i know... I have Lots of those errorous sources and everything is going crazzyy.. but i think it is good in terms of testing.. )... so.. and keep going again and again... i'll modify .bat file.. and post some results tomorrow //me sorry.. i'm a bit drunk right now.. but i'm allmost Russian(Belarussian.. telling the truth), so i can work and programm.. soory my girl Friend waits for me near work entrance.. so.... ..
__________________
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) |
21st February 2007, 09:11 | #180 | Link |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
Yeah... and Is it possible, to run NOT Only the x264.exe with nice, but avs2yuv also?
'cause if agentpipe=1 and nice=20 then x264 is running in lowest priority, but avs2yuv is running Normal, and it slows down overall system performance,.. so my people can't work ... and.. that option,.. that asks for "Do you really want to ReEncode the same AVS?"(or something).. can you check for th SAME Bitrate and Same Filename? .. 'cause i had an encode with different bitrate and different output filename... it was nice, that i didn't need to make firstpass again,.. but.. /*played with nice.. well.. nice REALLy does not like NetPaths.. i've played with different variations of comLine.. and nice does not want to start avs2yuv with netPath param.. error is: "AviSynth can not find the file D:\controllerpc\x264farm\...." and batch file was: nice -n 20 avs2yuv ... "\\controllerpc\x246farm\.avs" | nice.. x264...
__________________
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; 22nd February 2007 at 12:41. Reason: as always |
|
|