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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th December 2005, 20:24   #681  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
i cant.

Last edited by Sharktooth; 5th December 2005 at 20:33.
Sharktooth is offline   Reply With Quote
Old 5th December 2005, 20:27   #682  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
why would you want to do that anyway? It's nice to know how big your video will finally be like, no?
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 5th December 2005, 20:33   #683  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
However, i fixed the style thing for .NET 2.0 only. with 1.1 styles are partially applied (only on tabs and menus).
any ideas?

.NET2.0 with styles:

... looks much better

Last edited by Sharktooth; 5th December 2005 at 20:45.
Sharktooth is offline   Reply With Quote
Old 5th December 2005, 20:49   #684  |  Link
charleski
Registered User
 
charleski's Avatar
 
Join Date: Jul 2004
Posts: 383
Quote:
Originally Posted by Doom9
why would you want to do that anyway? It's nice to know how big your video will finally be like, no?
Well, it's good to know what your actual encoded size will be, but I often zoom the video up to tweak filter settings and deinterlace thresholds before encoding. I know you're obviously seeing the same thing, but it helps when working on a relatively small laptop screen.

@sharktooth: All I know is that there are quite a few .Forms Control properties that are only available in .NET 2.0, like UseVisualBackColor.

Last edited by charleski; 5th December 2005 at 20:51.
charleski is offline   Reply With Quote
Old 6th December 2005, 05:14   #685  |  Link
haubrija
Registered User
 
Join Date: Jun 2002
Posts: 44
Quick bug report using 0.2.3.1018

In the AVS Creator, upon clicking the IVTC option, the creator adds this line.

Telecide(guide=1).Decimate()

In actuallity, it should add this line.

Telecide(order=1,guide=1).Decimate()

FYI
haubrija is offline   Reply With Quote
Old 6th December 2005, 09:21   #686  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
Quote:
Telecide(order=1,guide=1).Decimate():
The order thing rings a bell but that doesn't appear to be mandatory as I just used IVTC in MeGUI yesterday and it worked out just fine.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 6th December 2005, 10:19   #687  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Order is TFF/BFF and if it's not given it'll use whatever avisynth thinks it is, which mpeg2source will set correctly. So always using order=1 could actually get you into trouble with BFF sources.
foxyshadis is offline   Reply With Quote
Old 6th December 2005, 12:11   #688  |  Link
charleski
Registered User
 
charleski's Avatar
 
Join Date: Jul 2004
Posts: 383
Quote:
Originally Posted by haubrija
Quick bug report using 0.2.3.1018

In the AVS Creator, upon clicking the IVTC option, the creator adds this line.

Telecide(guide=1).Decimate()

In actuallity, it should add this line.

Telecide(order=1,guide=1).Decimate()

FYI
Upgrade your Decomb filter to the latest version 5.2.2 from Donald Graft's site.
It no longer uses the order parameter.

[BTW, this is mentioned in the changelog, and I'll be ading some code to extract the correct TFF/BFF decision from the d2v.]

Last edited by charleski; 6th December 2005 at 12:13.
charleski is offline   Reply With Quote
Old 6th December 2005, 18:46   #689  |  Link
dimzon
BeHappy/MeGUI developer
 
dimzon's Avatar
 
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
@Doom9
Does You look @ internal class Encoder @ BeHappy source? Does You still need more? I believe - 30 minutes is enought to make it MeGUI.Encoder descendant
dimzon is offline   Reply With Quote
Old 6th December 2005, 18:53   #690  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Dimzon: please do not push ppl doing something. everyone have it's own business and maybe he had no time to check it.
Sharktooth is offline   Reply With Quote
Old 6th December 2005, 19:43   #691  |  Link
Doom9
clueless n00b
 
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
@Dimzon: unfortunately I'm both swamped at work, and at home. A codec comparison takes a great deal of time, especially if you have a considerable list of potential codecs that you need to put through a qualification phase. This year's comparison effectively started last week and there is little chance I get to write any line of MeGUI code until the end of the year. But here's one:

In Calculator.cs, find the method codec_CheckedChanged and add updateBitrateSize(); so that the bitrate gets updated when switching between XviD and other codecs (XviD considers bitrate = raw bitstream bitrate, for all other codecs bitrate = final size / length).

And here's how I think the tri-state thing should finally look like (mind you the method may be incomplete and was never tested)

Code:
		private void x264TriStateAdjustment(x264Settings xs)
		{
			if (xs.EncodingMode != 2 || xs.EncodingMode != 5)
				xs.Turbo = false;
			if (xs.Turbo)
			{
				xs.NbRefFrames = 1;
				xs.SubPelRefinement = 0;
				xs.METype = 0; // diamond search
				xs.I4x4mv = false;
				xs.P4x4mv = false;
				xs.I8x8mv = false;
				xs.P8x8mv = false;
				xs.B8x8mv = false;
				xs.AdaptiveDCT = false;
				xs.MixedRefs = false;
				xs.BRDO = false;
				xs.Trellis = false;
			}
			if (!(xs.EncodingMode == 1 && xs.Profile == 2)) // lossless requires CQ mode 
				xs.Lossless = false;
			else
				xs.BitrateQuantizer = 0;
			if (xs.NbRefFrames <= 1) // mixed references require at least two reference frames
				xs.MixedRefs = false;
			if (xs.NbBframes < 2) // pyramid requires at least two b-frames
				xs.BFramePyramid = false;
			if (xs.NbBframes == 0)
				xs.AdaptiveBFrames = false;
			if (!xs.Cabac) // trellis requires CABAC
				xs.Trellis = 0;
			if (xs.NbBframes == 0)
				xs.WeightedBPrediction = false;
			if (xs.NbBframes == 0 || xs.SubPelRefinement < 5) // BRDO requires RDO and b-frames
				xs.BRDO = false;
			if (!xs.P8x8mv) // p8x8 requires p4x4
				xs.P4x4mv; 
		}
The same method could be used in x264ConfigurationDialog.cs where instead of using x264Settings you access the GUI elements. This allows grouping of all related code in a single method that can be called in showCommandLine. Then GUI element events basically just call showCommandLine
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org
Doom9 is offline   Reply With Quote
Old 6th December 2005, 21:08   #692  |  Link
charleski
Registered User
 
charleski's Avatar
 
Join Date: Jul 2004
Posts: 383
MeGUI 0.2.3.1019

Changelog:
0.3.2.1019 6 Dec 2005
Changes by doom9 to make show progress window context sensitive.
Added resizing to the video preview window.

(The resizing is not really as pretty as I'd have liked, but after trying several approaches I think it's impossible to get a smoother result without moving up to .NET 2.0 which has some important improvements in how it handles these events.)

Changed Files
.NET 1.1 bins

This patch doesn't include the changes doom9 suggested above. I'll have to add those next time.
charleski is offline   Reply With Quote
Old 6th December 2005, 21:53   #693  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
... MeGUI-src.ChngdFls_0.3.2.1019.rar .... 0.2.3.1019...
Sharktooth is offline   Reply With Quote
Old 6th December 2005, 22:02   #694  |  Link
charleski
Registered User
 
charleski's Avatar
 
Join Date: Jul 2004
Posts: 383
lol, I did it again.
Ok, changed my templates so i won't keep doing that
charleski is offline   Reply With Quote
Old 6th December 2005, 22:16   #695  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
merged sources and bins are a the usual place though.
however maybe it's time to switch to .NET 2.0?
Sharktooth is offline   Reply With Quote
Old 6th December 2005, 22:44   #696  |  Link
berrinam
Registered User
 
berrinam's Avatar
 
Join Date: Apr 2005
Posts: 1,740
As a general note for coding: in MeGUI, you should use MeGUI.GetDirectoryName as opposed to Path.GetDirectoryName, as (at least in .NET 1.1) you Path.GetDirectoryName will have no trailing slashes, except if the passed parameter is a root directory. This means that generating a filename using this could have two consecutive slashes if the filename is a root directory.

MeGUI.GetDirectoryName (a static function) is simply a wrapper for this function, which removes the trailing slash if it exists.

Also, there's a problem with running a One Click encode. The process will be interrupted, because of a MessageBox that pops up. Removing
Code:
            MessageBox.Show(Environment.GetEnvironmentVariable("PATH"), "Path", MessageBoxButtons.OK);
from JobUtil.openVideo should solve that.
berrinam is offline   Reply With Quote
Old 6th December 2005, 22:51   #697  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
new bins and merged sources are up @ http://files.x264.nl/Sharktooth/?dir=./megui

edit: adding
Code:
Application.EnableVisualStyles();
in Main() will partially enable the visual styles on .NET 1.1 and enable all the style effects for .NET 2.0.

Last edited by Sharktooth; 6th December 2005 at 23:00.
Sharktooth is offline   Reply With Quote
Old 6th December 2005, 23:02   #698  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
an unhandled exception is triggered when clicking on Avisynth script creator menu entry:
Code:
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at MeGUI.AviSynthWindow.generateScript()
   at MeGUI.AviSynthWindow.showScript()
   at MeGUI.AviSynthWindow.resizeFilterType_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at MeGUI.AviSynthWindow.set_Settings(AviSynthSettings value)
   at MeGUI.AviSynthWindow.avsProfile_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at MeGUI.AviSynthWindow..ctor(MeGUI mainForm)
   at MeGUI.MeGUI.mnuToolsAviSynth_Click(Object sender, EventArgs e)
   at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.MenuItemData.Execute()
   at System.Windows.Forms.Command.Invoke()
   at System.Windows.Forms.Control.WmCommand(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
megui
    Assembly Version: 0.2.3.1019
    Win32 Version: 0.2.3.1019
    CodeBase: file:///C:/Documents%20and%20Settings/Ebola/Desktop/meguisrc/megui.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Xml
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
xuq2gagl
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
rg0wr9ln
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------

Last edited by Sharktooth; 6th December 2005 at 23:33.
Sharktooth is offline   Reply With Quote
Old 6th December 2005, 23:57   #699  |  Link
haubrija
Registered User
 
Join Date: Jun 2002
Posts: 44
Quote:
Originally Posted by charleski
Upgrade your Decomb filter to the latest version 5.2.2 from Donald Graft's site.
It no longer uses the order parameter.

[BTW, this is mentioned in the changelog, and I'll be ading some code to extract the correct TFF/BFF decision from the d2v.]
Ah that must be it. Sorry for the inconvenience.
haubrija is offline   Reply With Quote
Old 7th December 2005, 00:49   #700  |  Link
charleski
Registered User
 
charleski's Avatar
 
Join Date: Jul 2004
Posts: 383
Quote:
Originally Posted by Sharktooth
an unhandled exception is triggered when clicking on Avisynth script creator menu entry:
Fixed, I think the bug appeared when I put in doom9's progress window changes before one of the variables was assigned.

0.2.3.1020 6 Dec 2005
Altered Path.GetDirectoryName to MeGUI.GetDirectoryName
Removed a redundant piece of debugging code from jobUtil.openvideo
Fixed a bug caused by incorporating the progress window code in the wrong place
[Should add this to the changelog: I also tried putting Application.EnableVisualStyles() in as Sharktooth suggested. It actually makes things look worse for me, but I have a custom theme applied to Windows. Anyway, see what you think.]

0.2.3.1020 changes
Bins

Last edited by charleski; 7th December 2005 at 00:55.
charleski is offline   Reply With Quote
Reply

Tags
development, megui, not a help thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.