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. |
27th May 2008, 06:49 | #582 | Link | ||
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
Quote:
Quote:
[edit]If you want to know how the ratecontrol works, start by looking at x264's encoder/ratecontrol.c file. That's where I got my info. Using x264farm's source will only get you more confused.
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 Last edited by omion; 27th May 2008 at 06:54. |
||
27th May 2008, 23:00 | #583 | Link | ||
Registered User
Join Date: Apr 2008
Posts: 9
|
Quote:
Quote:
|
||
28th May 2008, 02:40 | #584 | Link | |
x264 developer
Join Date: Sep 2004
Posts: 2,392
|
Quote:
|
|
28th May 2008, 06:05 | #585 | Link | |
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
Quote:
Even after processing by the ratecontrol functions, there is no guarantee that the frames will actually be that size. In fact, since x264 can't directly set the number of bits used in a frame, it will always be a little off.
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 |
|
28th May 2008, 11:42 | #586 | Link | |
Registered User
Join Date: Apr 2005
Posts: 2
|
Hey all.
I'm new to x264 encoding in general, (have worked out what most of the buttons in MeGUI etc do), and given that I have several computers lying around here, I thought that there should be a relatively easy way to get x264 to run over all of them at once. Hence, found this project. I've had it running, although I'd have to admit that a few things aren't clear to me: 1> Unless I specify a rate control method in the -1 "blah blah", it doesn't do anything at all.... was this intended? What value should I be using in here for a good quality 720p rip (is --qp 26 sufficient?). 2> I'd like a little more control over the IP that the controller and agents bind to ... I have multiple IP addresses, that will go differing routes to get to the clients. One of those interfaces is gig, one is 100M. I'd rather be able to force it to go the gig path. This may be related to my inability to work out the networking parameters in the controller - the first time I tried I couldn't get anything aside from adhoc working - this suits my purposes fine, as you can kill the processes remotely, but adhoc can't specify the controller IP to be bound to. 3> I'd like to be able to change the agents list/the number of x264 instances per agent whilst the controller is running. You can sort of do this by running in adhoc, and just starting/closing/restarting the agent whenever you want to change something, but that only works (for me) if you can force the IP that the adhoc controller is running on. 4> What is AVS2YUV doing here? I presently have three instances of x264 running over two computers (one on controller, ~500MB/ram, two remote, ~230MB/ram each), and the controller also has three avs2yuv's running: One of 766MB (no CPU-time, unless an agent recently finished a block). Two of 550MB (3~13% CPU-time). Presumably these are frameserving across the network (controller based encoding). [as I've been typing this, both of the 550MB processes have died, and two new ones of around 350MB have come up] Reason I don't understand, is because x264 can handle an .avs input directly, why is there a need for a frame server here? (proviso: during agent-based encoding) On the other hand, why does it need so much ram at all?! Graphedit can play back the full source in question with 110MB of RAM usage, why should a frame-server need any more than that? 5> I can't seem to get agent-based encoding working, the agent throws the error: Quote:
6> Given that x264 is highly multi-threaded is there any reason to have more than one instance of x264 running on every agent. Aside from the small delay that occurs when dumping back the stats file, or the resulting .mkv files in the second pass. IF you're worried about that delay in the second pass, I can see why you might use pad=1; number=1. (btw, why not simplify that into, numberFirstPass=1; numberSecondPass=2?) Sorry about the length of this, and I hope someone can help me understand. Thanks. t Last edited by taemun; 28th May 2008 at 12:01. |
|
28th May 2008, 23:27 | #588 | Link | ||
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
Quote:
|
||
28th May 2008, 23:49 | #589 | Link | ||||||
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
Quote:
I generally use a lower setting (--qp 22 or something) but do a few tests to see what looks good for you. Quote:
Quote:
Quote:
Quote:
Quote:
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 |
||||||
29th May 2008, 06:25 | #590 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
|
|
29th May 2008, 07:02 | #591 | Link | ||||
Registered User
Join Date: Apr 2005
Posts: 2
|
Quote:
Yeah I came to that conclusion late last night. CoreAVC was only installed on the controller, so of course it failed. Pity I didn't think about that at the time (after trying to dig through the .grf with notepad :P). I'd forgotten that I had used something a little more exotic when I made the graph. Quote:
Quote:
Quote:
Not to tell you your job or anything, but shouldn't that instance be able to be closed after the first pass is complete? (ie after all the scene cuts have been found) On another note, why is it that the x264 builds used by x264farm have to be made in MSVC? (ie not from x264.nl) And: what is the newest MSVC build. The one posted a couple pages back by SpAwN_gUy called x264.819.msvc2005.modified.exe, seems to crash quite a bit (I think its when x264 has too low of a bitrate, and normally it would throw an error ... but instead, this build just crashes and then Windows sits and waits for user input - ie to close the "this program has crashed" dialog). Cheers, t |
||||
29th May 2008, 07:43 | #592 | Link | |||
Registered User
Join Date: Nov 2003
Location: San Diego, CA
Posts: 325
|
Quote:
Quote:
This is only a problem in controller-based mode, though. You may use anything you want if you ensure that the computer is using agent-based encoding. (Note that it's not really a bug in x264; I think stdin and stdout are usually opened in text-mode in Windows. It's just a bit odd that x264 expects binary data to pass through them...) It should be an easy fix for making it work in cygwin/msys, but I really don't know enough C to say for sure. Quote:
If you can get agent-based encoding up and running, then you can bypass this restriction. That would probably be the best course of action right now. (if the CoreAVC fix made agent-based encoding work, then you can use anything you want)
__________________
"We demand rigidly defined areas of doubt and uncertainty!" - Vroomfondel, H2G2 |
|||
2nd June 2008, 11:58 | #593 | Link |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
i've just moved to the new PCbox ... so i've lost the tracks of the threads...
okay, since b0bor started to post patched sources (damn git..) it will not be too hard to make MSVC builds ... good news are: meGUI-x264farm-mod (ma-a-n... this is quite a huge name...) is still indev.. i've moved 80% of code to the latest (like two weeks ago) meGUI revision... so.. some may wait for a new version soon.. /*offtop... as far as i'm learning bash and perl (and doing some fancy scripts..).. C# is my "back to the reality" thing... so more to a hobby.. but i'll catchUP ... and i'm on Vista x64 now..
__________________
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) |
7th June 2008, 23:19 | #595 | Link |
Registered User
Join Date: Feb 2008
Posts: 2
|
Hi, I have just installed the agents and the controllers, modified th config.xml files and I keep on getting the same result. I cannot see the error, or that anything is happening (except some processor activity on controller.exe and avs2yuv, but after 0:46 seconds, it stops, it does not complain (which is nice) but it also does not work (which is not nice)
This is the output from the out-dump.txt file: 2008-06-07~23:09:23.53 0% done (0 / 49544) at 0.00 FPS 2008-06-07~23:09:23.53 Last updated: 0:45 2008-06-07~23:09:23.53 ----...----________________________________...............-----............... 2008-06-07~23:09:23.53 Agent | FPS | Description 2008-06-07~23:09:23.53 Recent errors: 2008-06-07~23:09:23.53 ~ 2008-06-07~23:09:23.53 ~ 2008-06-07~23:09:23.53 ~ 2008-06-07~23:09:23.53 ~ 2008-06-07~23:09:23.53 SPLITTER MUTEX unlocking range_list_mutex and yielding 2008-06-07~23:09:23.53 SPLITTER MUTEX sleeping for 1/10 second 2008-06-07~23:09:23.64 SPLITTER MUTEX locked range_list_mutex after yielding 2008-06-07~23:09:23.64 e 0 2008-06-07~23:09:23.64 f 0 2008-06-07~23:09:23.64 q 3 2008-06-07~23:09:23.64 w 0 2008-06-07~23:09:23.64 es 3 2008-06-07~23:09:23.64 fs 0 2008-06-07~23:09:23.64 qs 8 2008-06-07~23:09:23.64 ws 0 2008-06-07~23:09:23.64 Splitter: current batch length is 2116 2008-06-07~23:09:23.64 Splitter: try_queue_after_full_or_working 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 batch length: 2116 2008-06-07~23:09:23.64 Splitter: try_extend_small_thresh_queue 2008-06-07~23:09:23.64 extend_small_thresh_queue found no ranges of sufficient patheticosity 2008-06-07~23:09:23.64 Splitter: try_split_largest_range 2008-06-07~23:09:23.64 Splitter: wait_on_full 2008-06-07~23:09:23.64 SPLITTER MUTEX broadcasting range_list_empty_condition 2008-06-07~23:09:23.64 0 @ INFINITY 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 2502 @ 7.56 2008-06-07~23:09:23.64 Empty 2008-06-07~23:09:23.64 4607 @ 10.63 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 6857 @ 4.69 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 9282 @ 2.17 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 11709 @ 7.17 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 14176 @ 2.42 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 16791 @ 6.33 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 19347 @ 7.58 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 22022 @ 9.34 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 24696 @ 4.79 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 27246 @ 3.65 2008-06-07~23:09:23.64 Empty 2008-06-07~23:09:23.64 37171 @ 11.85 2008-06-07~23:09:23.64 Queued 2008-06-07~23:09:23.64 39525 @ 6.16 2008-06-07~23:09:23.64 Empty 2008-06-07~23:09:23.64 49544 @ INFINITY 2008-06-07~23:09:23.64 0% done (0 / 49544) at 0.00 FPS 2008-06-07~23:09:23.64 Last updated: 0:45 2008-06-07~23:09:23.64 ----...----________________________________...............-----............... 2008-06-07~23:09:23.64 Agent | FPS | Description 2008-06-07~23:09:23.64 Recent errors: 2008-06-07~23:09:23.64 ~ 2008-06-07~23:09:23.64 ~ 2008-06-07~23:09:23.64 ~ 2008-06-07~23:09:23.64 ~ 2008-06-07~23:09:23.64 SPLITTER MUTEX waiting on range_list_full_condition; unlocking range_list_mutex and my controller was started with: Controller>controller -B 4500kbps --first "--bframes 3 --b-pyramid --direct auto --filter -2,-1 --subme 1 --analyse none --me dia --me range 12 --progress --no-psnr" --second "--ref 3 --bframes 3 --b-pyramid --weigh tb --direct auto --filter -2,-1 --subme 6 --trellis 1 --analyse all --8x8dct --m e umh --merange 12 --progress --no-psnr" --avs "24.avs" -o "24.mkv" --batch 2500 --split 250 --preseek 5 --config config.xml Any ideas or comments would be appreciated Cheers |
16th July 2008, 15:33 | #596 | Link |
Registered User
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
|
Bug!
If the .avs file to encode is on a network share, it looks like "\\computer\folder" When nice is used, it reads the "\\" as "\". It needs "\\\" to get it right, but then the .avs file won't be found and avs2yuv starts sending massive amounts of data across the network. Apparently I can get around this by creating a .avs file that finds its inputs via the network, and copy that file onto every computer, even the local one (since it seems intelligent enough to check if the files are the same... =) Otherwise this thing is really the best thing ever. Too bad it's not until now that I really needed it as it took only 10 mins to figure everything out and get it working. Last edited by ajp_anton; 16th July 2008 at 16:08. |
17th July 2008, 09:08 | #597 | Link | |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
Quote:
which nice are you using? (the one in the first post) jr the original? .. 'cause we had some problems using the original one.. and some problems using the tiny one(1st post) currently i'm using the one in the first post... and i'm doing agent-based..
__________________
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) |
|
17th July 2008, 09:12 | #598 | Link | |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
Quote:
check <ad-hoc> presence in controller's config.. AND try adding IP's of your agents like the old way (some of my agents are not seen some times with ad-hoc only.. but with both - it's perfect..)
__________________
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) |
|
17th July 2008, 09:18 | #599 | Link |
Junglist
Join Date: May 2003
Location: Belarus, Minsk
Posts: 298
|
oh.. jeah.. right.. the mod.. i need to start MSVC... and stop doing nothing...
btw.. about builds of x264... it is reported, that MSVC builds (with current revision of x264) are TOTALLY BROKEN.. and must not be used ( ... but the good nwes are.. that x264_mingw_stdin_patch is IN the TRUNK .. (yeah, yeah,.. thanks to me.. but you are welcome..) so all the builds, that are currently made.. (like on x264.nl and all the patched ones) need to be checked(at first).. and then.. well.. the must be working and compatible with controller-based x264farm encoding process..
__________________
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) |
19th July 2008, 02:19 | #600 | Link | |
Registered User
Join Date: Feb 2008
Posts: 2
|
Quote:
nice -n 20 "x264.exe" --bframes 3 --b-pyramid --direct auto --filter -2,-1 --s bme 1 --analyse none --progress --no-psnr --qcomp 0.6 --cplxblur 20. --qblur 0. --qpmin 10 --qpmax 51 --qpstep 4 --ipratio 1.4 --pbratio 1.3 --fps 25/1 --pass 1 --stats ".\temp\stats b26912.txt" -o NUL - 640x496 264 [error]: no ratecontrol method specified 264 [error]: x264_encoder_open failed |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|