View Full Version : NuEnc 0.01b Released
Peter Cheat
12th November 2004, 08:57
I've finally finished with the GUI (I hate GUI programming) and here it is, NuEnc 0.01b.
Changes include:
- CQ mode now vbv compliant (hopefully)
- GUI Re-arranged (and fixed)
- New encoding window displays comprehensive encoding statistics
- Now able to change more options such as motion search diameter and minimum bitrate
- Now less than half the size compared to previous versions (~300KB)
- Constant quality encoding added (experimental at the moment)
- Custom matrix support via 'matrix.ini' and external XviD style matrix files
- Field order can be changed for interlaced encoding
- Implements the latest changes I've made to avcodec
- Fixes to multi-pass encoding. More passes will never decrease quality.
- Some other features Nic added to QuEnc
Known Issues: Keyframe forcing does not work correctly (will NOT force consecutive B-frame to I-frame), but frames that do become I frames DO have a GOP sequence header.
Briefly tested and works as expected.
http://www.petercheat.host.sk/libav/
Files mirrored http://www.petersplace.000k2.com/projects/
Edit by Moderator:
If you are looking for working download link (original web-site doesn't exist anymore), please see this (http://forum.doom9.org/showpost.php?p=1611885&postcount=236) post!
Peter Cheat
12th November 2004, 09:13
Freelock7 - Could you please test to see if the sequence you had that was encoded poorly with 0.00d encodes properly with 0.01?
Paced
12th November 2004, 09:21
Hey Peter Cheat, thanks for the new release, but I seem to be having some problems with it. Whenever I click on the 'Advanced' button, I keep getting a popup saying: Please enter a number between 0.2 and 1.2 :confused: Then, after the 'warning', I press OK, and it finally allows me to access the Advanced screen. After I make some changes, I press 'Apply', and the very same popup arises again. Wierd.
//Edit
Additionally, when I go to 'Quit' the program, I get this popup: Please enter an integer between 4 and 15000.
Peter Cheat
12th November 2004, 10:14
I've sort of fixed this. Redownload it and try again. The first time you use it, set it to all the settings you want, then close it. Reopen it, and it will work as it should. I said i sucked at GUI programming :D
Paced
12th November 2004, 10:27
Originally posted by Peter Cheat
I've sort of fixed this. Redownload it and try again. The first time you use it, set it to all the settings you want, then close it. Reopen it, and it will work as it should. I said i sucked at GUI programming :D
Hehe, thanks for the quick fix. The first popup I spoke of is now gone, but the second one is still there - Please enter an integer between 4 and 15000. It pops up whenever I close/open the program and open an AVS file. Not that it should affect anything, but just thought I'd let you know. Thanks again.
//Edit
Just found out that in 2 pass VBR mode, the program finishes the first pass, but then idles and does not start the second pass (this didn't happen to me in the previous version).
Peter Cheat
12th November 2004, 12:59
Hehe, thanks for the quick fix. The first popup I spoke of is now gone, but the second one is still there - Please enter an integer between 4 and 15000. It pops up whenever I close/open the program and open an AVS file.
Make sure that:
minimum bitrate is between 4 and 15000kbits <- probably the problem
average bitrate is between 4 and 15000kbits
maximum bitrate is between 4 and 15000kbits
It should at least start (or possibly crash with an error), scaling is a little slower in this version - but if it doesn't start for a (very) long time there is a problem. I'll probably add extra debugging if it seems to be a common problem. It is not possible to idle indefinitely (there are precautions taken so this can't happen).
freelock7
12th November 2004, 19:02
Some problems:
1) I can download only the first file 'NuEnc0.01 based on QuEnc'.
The two others don't load correctly (<source> and <ffmpeg source>).
2)nothing works when I try to <encode>.
3)The 312 ko size of the new libavcodec is correct (small size)?
Peter1234
12th November 2004, 19:11
Peter Cheat,
Is there a P4 problem? When I click the icon to start the program nothing happens (it blinks, but no window opens).
EDIT: It creates an empty debug.log and then closes.
Bogalvator
12th November 2004, 19:38
I've got the same thing as Peter1234, and I'm using an Atlon-XP :(
clickit
12th November 2004, 20:56
I have the same problem
except that I'm running winXP SP2 on a Celeron machine
It also creates an empty debug.log
fabrice
12th November 2004, 20:57
Hi,
I'm using an Athlon XP, and work perfectly! (trying the CQ mode, and compare it with 2-pass VBR! :) )
Using W2K. What are your OS?
Fabrice
Peter1234
12th November 2004, 21:37
I am using Windows XP SP1 with SSE2.
freelock7
12th November 2004, 23:32
Other trouble with <gui appearence>:
It becomes suddenly blue when opening <advanced options>.
Always the same bug: the encoder refuse to start.
---------------
AthlonXP2200
XPProfessionnal
vinetu
13th November 2004, 07:16
Well, NuEnc starts here (P3 Celeron-Tualatin MMX,SSE, winXP SP2)
and I can set "Advanced Setings"-no problem,but when I click "Encode" a Warning popup:
------------------------------------------------------------------------
Could not open Video Codec
Please check 'debug.log' for more information.
Take note of settings and report if a serious bug exists.
------------------------------------------------------------------------
in the debug file I see this:
-----------------------------------------------------------------
[mpeg2video @ 6552A00C]MPEG1/2 doesnt support 1000000/41599 fps
-----------------------------------------------------------------
The .avs file is a simple "avisource->resize->addborders" and is reported in VDubMod as
---------------------------------------------
720x576, 24.039 fps (41599 micro seconds)
816 frames (0:33.94)
FourCC : [YV12]
---------------------------------------------
The "41599 fps" in debug file and "(41599 micro seconds)" in VDubMod file info is obvious!
If I add "AssumeFPS(25) at the end in the script - Encoding is started and work as expected!
Best Regards
Marin
Peter Cheat
13th November 2004, 08:36
Originally posted by vinetu
Well, NuEnc starts here (P3 Celeron-Tualatin MMX,SSE, winXP SP2)
and I can set "Advanced Setings"-no problem,but when I click "Encode" a Warning popup:
------------------------------------------------------------------------
Could not open Video Codec
Please check 'debug.log' for more information.
Take note of settings and report if a serious bug exists.
------------------------------------------------------------------------
in the debug file I see this:
-----------------------------------------------------------------
[mpeg2video @ 6552A00C]MPEG1/2 doesnt support 1000000/41599 fps
-----------------------------------------------------------------
The .avs file is a simple "avisource->resize->addborders" and is reported in VDubMod as
---------------------------------------------
720x576, 24.039 fps (41599 micro seconds)
816 frames (0:33.94)
FourCC : [YV12]
---------------------------------------------
If I add "AssumeFPS(25) at the end in the script - Encoding is started and work as expected!
Best Regards
Marin
24.039 is not a valid frame rate for MPEG-2. 23.976, 24, 25, 29.97 should all work. This is not a bug, but at least the log file helped.
@Peter1234
I don't have a P4 so I can't test on it. If it opens and then just closes, I don't know what the problem could be. Unless I removed P4 specific optimisations that are necessary (highly doubt it). Maybe its my screwed up GUI and registry settings.
@Bogalvator & clickit
I am using an Athlon XP with WinXP SP2 without problems. I'll fix up the GUI bugs, and maybe it will work. I shuld have waited longer before releasing.
@freelock7
When you start off, things are a bit screwed, I know. Change to all the settings you want (VBR 2-pass, set the advanced options to what you want, and set the colour to grey). Then close it (click on Quit)then open it, everything should work fine (hopefully).
EDIT: I've just uploaded my settings here (http://www.petercheat.host.sk/libav/files/settings.zip). Try using this and see if it helps.
vinetu
13th November 2004, 08:57
24.039 is not a valid frame rate for MPEG-2.
Correct! -my bad... :)
It seems if the source is very compressible (MAX bitrate is lower than choosed "Average bit Rate")
-You'll get a Warning message "Cannot open Video codec"
or something and an empty log file at the end of 1-st pass.
I have success with P4 (Nordwood core -MMX,SSE,SSE2, winXP SP2)!
Best Regards!
Edit: I forget to say - I've tested multipass 3 and 4 passes VBR only
Peter Cheat
13th November 2004, 09:19
@vinetu
Yes I know. The problem is, what do to in this situation. FFMPEG by default just quits if it can't reach its target. I could make it continue, but then I'll get heaps of complaints saying that encodes don't reach target size. This is why NuEnc 'crashes' when starting second pass if you are encoding a (mostly) black screen.
I think I will change it so it continues, but leaves an error in the log stating that target size could not be reached.
Minimum quantiser could be changed to 1, BUT, this can lead to buggy output (quantiser 1 is not recommended!).
freelock7
13th November 2004, 10:11
It doesn't.
Peter Cheat
13th November 2004, 10:23
Open debug.log and see if there is an error. I can't pinpoint the problem.
freelock7
13th November 2004, 11:00
Debug_log says:
[mpeg2video @ 6552A00C]removing common factors from framerate"
Peter Cheat
13th November 2004, 11:13
What is the frame rate of your source? It might not be valid.
Bogalvator
13th November 2004, 11:13
@clickit & Peter1234,
I just tried Nuenc 0.01 this morning, and it worked.
It might be because I disable "Extreme & High Quality seetings" in QuEnc 0.56 (guessing) - so perhaps uncheck all settings in QuEnc and then try to load NuEnc again?
Bogalvator
13th November 2004, 11:17
By the way,
The "modified FFMpeg source" downloads up to 50% then disconnects.
Peter Cheat
13th November 2004, 11:20
I don't think that would be a problem. I'll separate the registry entries though just in case for next release, which will have to be soon since there seems to be a few bugs.
EDIT:
Download problems are because of host.sk. They haven't been reliable for a while now. I've intended to move hosts, but couldn't find any decent ones. Use a download manager.
freelock7
13th November 2004, 11:25
PAL source.
It works fine with NuEnc0.00a.
Peter Cheat
13th November 2004, 11:38
Does an error message show up when you try to encode? What settings are you using. I might have bungled up some options.
freelock7
13th November 2004, 11:48
Any error message.
It opens a new window with <encoding> and <statistics> but it remains blank. The encoder don't start.
Peter, why the new libavcodec is so small (312ko)?
Peter Cheat
13th November 2004, 12:17
The reason it is so small is because I've removed MPEG-4 specific code (and code relating to other codecs). This is just to save bandwidth and to make it easier to download. If its larger than ~700KB, the download seems to dropout all the time.
Technically it would also make it faster, but saving ~100 cycles per frame is not going to make a difference on a machine that does 1,500,000,000 cycles per second :D
I can't figure out why it doesn't work. Try a different source maybe, and see if that works. I can't see how it can freeze with the encoding window without an error, and without starting.
buzzqw
13th November 2004, 12:29
same here
stat is blank at start but if i move window i can see "something"
winxp sp1, p4 2.8ghz
(@freelock7 avcodec.dll is upxed, but even if upxed is small
BHH
Peter Cheat
13th November 2004, 12:38
What do you mean by "something"? Do the statistics become partially visible (is it encoding, but the stats are just not correctly displayed?).
freelock7
13th November 2004, 12:58
The problem seems to come from this new compiled libavcodec.
Maybe I'm wrong but if i were you, I'll keep the NuEnc0.00d libavcodec file and add in it the new 0.01 changes.
Peter Cheat
13th November 2004, 13:08
That is unlikely. I did remove a lot of code, sure. But 90% was related to QPEL and GMC. The rest was audio codecs, and video codecs like mpeg4, snow, cinepak etc. All code relating to MPEG1&2 were left alone. If I wasn't sure, I also left it. Others are not having problems so I doubt its a problem with the DLL. I know the GUI is a little bit dodgy, and just realised that if you minimise the window while encoding, then maximise it sometime later, the encoding stats might disappear. This will be fixed now. I'll have to release a new version tomorrow with all these fixes :o
EDIT:
I won't change back to NuEnc 0.00d DLL, I've fixed all the bugs that were found in it. I could recompile without removing any redundant code, but the only difference will be that it's twice as big.
clickit
13th November 2004, 16:12
it works with seetings.zip
buzzqw
13th November 2004, 16:45
look at this
http://www.64k.it/andres/Immagine.png
after a while (sometimes never) it display something but fps is like 0.14 per sec...
(p4 2.8ghz)
great appz btw !
BHH
after a while
EDIT: http://www.64k.it/andres/post.png
I have just clicked on setting.reg launch a conversion
Isn't strange "peak bitrate" ?
Peter1234
13th November 2004, 18:14
Peter Cheat,
After loading your settings the program starts. When I load an avs file and click the Encode button with your settings, the encode window opens up but encoding does not start. Encode window has no statistics and there is an empty box on it. Debug.log is empty.
Peter Cheat
14th November 2004, 11:45
I've now fixed GUI problems in NuEnc 0.01a. It should start up correctly.
There are 2 versions. A small one with most codecs removed and a large one without anything removed. If you have a P4, the large one should work. I may have deleted P4 specific code when removing unused codecs :o.
CQ Mode is now also linear (CQ 50 produces files about half the size of CQ 100).
freelock7
14th November 2004, 12:05
No more success!
Both of them don't work.
Always the same bug report:
<[mpeg2video @ 6551400C]removing common factors from framerate>
Peter Cheat
14th November 2004, 12:15
I have a feeling that the encoding window is doing something weird. Try to encode, then press CTRL-ALT-DEL, click on the processes tab and see how much CPU NuEnc.exe is using. If its ~99% then its stuck in an endlesss loop somewhere...
freelock7
14th November 2004, 12:34
Cpu=99%
NuEnc seems to block the system (stand by).
Peter Cheat
14th November 2004, 12:47
Ok, were getting somewhere then.
Try adding AssumeFPS(25) to the last line of the AVS script. Does the error still appear in the log?
freelock7
14th November 2004, 13:00
Already tested.
The debug log is empty now.
Sectie.B
14th November 2004, 13:31
Peter
I'm having the same problem: encoding window appears but just sits there and cpu usage is way up 98/99 until I hit Cancel (XP1700 + XP SP2)
One difference between 0.01 and 0.01a: with 0.01 I do get a small output (m2v)-file but it is only the first (3 I think) frames. With the a-version I don't get any output at all.
The same scripts (tried several) all work with NuEnc 0.00d and Quenc 0.56.
Peter1234
14th November 2004, 14:10
NuEnc 0.01a and 0.01a for P4 both open first window. When avs file is entered and encode button is clicked a new window titled Encoding opens with no text. If this window is draged on screen the text appears. All values on screen seem to be zero. Seems to be in loop. CPU usage 50%. Terminates when Quit button is clicked. No Debug.log generated. I think it is stuck trying to find avs file. XP SP1 on P4 with SSE2.
vmesquita
14th November 2004, 14:27
Hi Peter Cheat,
Thanks for the effort of improving avcodec, looks awesome so far! :D
Could you please check the ffmpeg modified sources download link? I am trying to download so I can recompile FreeEnc with your improvements, but it looks like the file is corrupted... :(
Peter Cheat
14th November 2004, 23:22
@vmesquita
Try using a download manager. host.sk seems to be a bit overloaded. I having trouble uploading to it, and often have to resume uploads. I'm pretty sure its all there.
@P4 owners
It seems that somehow the GUI screws up with P4 only. Might also be related to a newer Visual C++ dll. I'll redo the encoding window, it might be that it doesn't work because of my dodgy programming. Strange that it works on my AMD flawlessly, but others have problems.
Maybe Nic could tell me why it doesn't work. I don't really know C++.
Peter Cheat
15th November 2004, 02:29
@freelock7, Peter1234 & Sectie.B
Try this (http://petercheat.host.sk/libav/files/nuenc-test.zip). I removed the pause function and compiled in VC++ without any optimisations (debug mode). I don't know if this will work, but have to try something.
EDIT: I've been able to download all the files without any problems using FlashGet. If anyone knows of a good free web host / file host where I can store these files, let me know.
Peter1234
15th November 2004, 03:22
Peter Cheat,
New test version produces same results as 0.01a and 0.01a for P4 for me. XP SP1 on P4 with SSE2. An empty debug log is not much help. Can you add some more entries at the begining of program that might narrow down where the problem is. Maybe some entries like: program started, first window was generated, avs file name valid, avs file found, avs file loaded, encoding button clicked, encoding window opened, first pass started.
dragongodz
15th November 2004, 03:53
i gave it a try aswell. yep 0 byte debug file and frozen encoding window. and that on windows xp with athlon xp.
tried downloading the ffmpeg source and it quits at 50% every time. tested with flashget and getright. also does not resume.
for free web hosts look here
http://www.free-webhosts.com/
check out the user reviews where you can find out what limits(file types, file sizes etc) there are aswell.
EDIT - infact all the rar files seem to cut in half while the zips download ok. so maybe just using zips for all files is worth trying.
Peter Cheat
15th November 2004, 04:23
I've now added mirrors for larger files.
@dragongodz
Is it ok to program in VC++ like this:
m_EncodeDlg.Create(IDD_ENCODE_DIALOG); // Create the encoding window
m_EncodeDlg.ShowWindow(0); // Hide it for now
...when encode button pressed...
m_EncodeDlg.ShowWindow(1); // Show the encoding window
Maybe this is the problem. It works perfectly for me, but other people have trouble. Maybe it is related to the Visual C++ runtime library I am using. I am using 6.02.3104.0 (msvcp60.dll). What version do you have dragongodz?
EDIT: I also have version 7.10.2240.8 (msvcp70.dll). Not sure which one is actually being used.
EDIT2: Debugging shows that msvcp60.dll is being used. Dragongodz, could you try to compile it, maybe then it would work???
dragongodz
15th November 2004, 05:35
did you Invalidate(); after showing the encoding window ? that will cause a repaint/refresh.
msvcp60.dll version here is 6.0.8972.0
i cant compile it because i cant get the nuenc source code. its in a rar which as i said cuts out before completing downloading.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.