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. |
|
|
Thread Tools | Search this Thread | Display Modes |
16th February 2005, 09:13 | #181 | Link |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
@hpn: I'm still a bit concerned about your .NET 2.0 but thanks for testing. Let's hope mencoder acts the same way on my box.. 5000 frames is something I can work with for tests (I did my testing with 1000 frames).
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
16th February 2005, 22:48 | #183 | Link | |
Registered User
Join Date: Jan 2005
Posts: 191
|
Quote:
So in brief: - asv with trim(0,1), trim(0,2), trim(0,3) ... trim(0,4998), trim(0,4999) works fine, and mysteriously stops working for trim(0,5000), trim(0,5001), trim(0,5002) ... |
|
17th February 2005, 05:45 | #184 | Link | |
stupid
Join Date: Sep 2004
Location: Cologne
Posts: 638
|
Quote:
__________________
cu Joe ------------------------ freedom is just another word for nothing left to loose |
|
17th February 2005, 08:39 | #185 | Link | |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
Quote:
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
|
17th February 2005, 23:17 | #187 | Link |
Registered User
Join Date: Jan 2005
Posts: 191
|
I also tried some ASP encodes (instead of AVC), using both CBR or 2-pass, also made some random changes to the other options (turbo enabled, different buffer size, quantizers, rate control), hoping the freezing would be gone, but the problem persisted (I'm still on .NET 1.1).
As for the "freezing after 50 frames" It's what the MeGUI reports, but only because it's updated every 50 frames. When I open the "mencoder-2pass.log" after the freezing I can see it has actually freezed in the middle of frame 99 (in:98 - check below) and the file size is 8192 bytes, which is exactly 8k and this also seems suspicious (why not 7893 bytes for example?), so these almost 99 frames is exactly what fits in this 8k file. Then everything hangs up and MeGUI can't keep writing to the log file. ----------------------------- avs2yuv "G:\t\06_.avs" - | mencoder - -ovc x264 -o NUL: -passlogfile "mencoder-2pass.log" -x264encopts pass=1:qp_constant=26:4x4mv:rc_buffer_size=700 mencoder-2pass.log: in:0 out:0 type:I q:23.000 itex:200 ptex:0 mv:451 misc:221 imb:1215 pmb:0 smb:0; in:1 out:1 type:P q:26.000 itex:0 ptex:0 mv:0 misc:104 imb:0 pmb:0 smb:1215; in:2 out:2 type:P q:26.000 itex:0 ptex:0 mv:0 misc:104 imb:0 pmb:0 smb:1215; . . in:96 out:96 type:P q:26.000 itex:10753 ptex:10201 mv:11648 misc:838 imb:296 pmb:461 smb:458; in:97 out:97 type:P q:26.000 itex:7564 ptex:9988 mv:9560 misc:896 imb:171 pmb:506 smb:538; in:98 out:98 type:P q:26.000 it FREEZED and "it" is the last string written to the file (bytes 1FFE and 1FFF) -------------------------------------------------------------------------------------------- Now I press "abort" and close MeGUI and mencoder.exe "wakes up" and continues to write to "mencoder-2pass.log" in the background: in:98 out:98 type:P q:26.000 itex:2684 ptex:7527 mv:7593 misc:1020 imb:137 pmb:492 smb:586; in:99 out:99 type:P q:26.000 itex:870 ptex:7086 mv:5996 misc:1064 imb:61 pmb:484 smb:670; in:100 out:100 type:P q:26.000 itex:736 ptex:8038 mv:5952 misc:1106 imb:64 pmb:504 smb:647; .....etc. Once again this problem is only present for trim(0,5000) or more. Shorter clips work like charm. Last edited by hpn; 17th February 2005 at 23:50. |
18th February 2005, 08:17 | #188 | Link |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
actually, it's mencoder that writes to the logfile. However, mencoder writes out something to stdout for every frame you encode. So, I figure once it writes out the info from frame 100, my app reads it but then screws up somewhere and the reading threads lock. As stdout is no longer being read, mecoder is effectively halted.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
20th February 2005, 00:24 | #191 | Link | |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
Quote:
I can confirm there is a problem and I know why it only happens with sources longer than 5000 frames: as you might have noticed, I update the GUI every 50 frames. If a source is less or equal to 5000 frames, 50 frames means 1% of the video is encoded. If it's longer, percentage done = 0, and as I use that value to calculate the remaining time and that calculation contains a division by the percentage done, with a clip longer than 5000 frames I get a division by zero. As it's not catched, the program blocks. The batchfile is still running, but since the app is not reading from it, it makes no progress. And for some wicked reason, as the program exits and the pipes are no longer being read, the encoding once again takes off. I guess it would be interesting to figure out why that happens, but that's probably something for somebody who understands a lot more of the underlying Windows basics. Anyway, bug identified, understood and fixed. Attached is the fixed MeGUI 0.161. Changelog: fixed a division by zero exception that would prevent MeGUI from completing jobs longer than 5000 frames. Come to think of it, I need to revise my progress estimator big time.. using an int value for the progress in percent is definitely not accurate enough. Downloaded 79 times before removal.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
|
20th February 2005, 16:45 | #196 | Link | |
Registered User
Join Date: Jul 2003
Location: Connecticut
Posts: 99
|
Quote:
Hmm... |
|
20th February 2005, 23:34 | #197 | Link | |
Confused User
Join Date: Sep 2004
Posts: 145
|
Quote:
|
|
21st February 2005, 00:14 | #198 | Link | |
Registered User
Join Date: Jul 2003
Location: Connecticut
Posts: 99
|
Quote:
Other mencoder builds can also be found here: http://oss.netfarm.it/mplayer-win32.php |
|
21st February 2005, 03:40 | #199 | Link |
Registered User
Join Date: Dec 2003
Posts: 8
|
I'm not sure if anyone else has had this problem, but when I aborted an encode, mencoder terminated, but avs2yuv remained running in the background... It's no big deal, just something to investigate.
I'm running WinXP Pro SP2 on an Athlon64 if it matters. |
21st February 2005, 09:59 | #200 | Link | ||
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
Quote:
Quote:
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
||
|
|