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. |
20th February 2006, 23:36 | #1821 | Link | ||
Registered User
Join Date: Apr 2005
Posts: 1,740
|
Quote:
Quote:
@all devs: Also, what do you think about what I proposed on the Guide thread? I suggested that we replace MeGUI's cropping and resizing code with AviSynth. I'm sure it would be much faster. |
||
20th February 2006, 23:49 | #1822 | Link | |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
__________________
BeHappy - AviSynth-based audio transcoding tool Audio encoding via AviSynth On2 VP7 is great in quality but it is unusable for long-term video backup puposes! Sincerely Yours, MCPD/MCTS |
|
21st February 2006, 04:01 | #1823 | Link |
developer wannabe
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
|
Why should MeGUI do its own cropping & resizing? That sounds like a really bad idea. What advantage would that have? Who would write that code? Would it handle all colorspaces correctly? Would it obey all of Avery's guidelines? Would it be faster than all of Avisynth's ASM routines?
|
21st February 2006, 06:09 | #1824 | Link | |||
Registered User
Join Date: Apr 2005
Posts: 1,740
|
Quote:
Quote:
Quote:
|
|||
21st February 2006, 08:42 | #1825 | Link | |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
I see realiy yet another solution for it: Code:
AviSynthClip original = ....; ... AviSynthClip resized = original.Execute("bilinearresize(640,480)");
__________________
BeHappy - AviSynth-based audio transcoding tool Audio encoding via AviSynth On2 VP7 is great in quality but it is unusable for long-term video backup puposes! Sincerely Yours, MCPD/MCTS |
|
21st February 2006, 10:17 | #1826 | Link | ||
Registered User
Join Date: Apr 2005
Posts: 1,740
|
Quote:
Also, the current situation suffers from this problem, too; for resizing and recropping, the image is re-requested from AviSynth, but this problem may be alleviated by AviSynth's internal caching. Quote:
|
||
21st February 2006, 10:23 | #1827 | Link | ||
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
Quote:
__________________
BeHappy - AviSynth-based audio transcoding tool Audio encoding via AviSynth On2 VP7 is great in quality but it is unusable for long-term video backup puposes! Sincerely Yours, MCPD/MCTS |
||
21st February 2006, 18:21 | #1829 | Link |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
I got lost about 1.5 pages ago.. one post seems to have no relation to the next and I'm supposed to see posts and only Swede, bond and myself can physically delete messages in this subforum..
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
21st February 2006, 18:31 | #1830 | Link |
developer wannabe
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
|
Well, that's what happens when you put discussion about the entire product into one thread. FWIW, I was talking about how to get rid of the custom resizer code that's apparently in MeGUI. Since it's used for playback, the obvious answer is to let the playback control handle scaling.
|
21st February 2006, 19:16 | #1831 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
I'm using like AutoGK the AutoCrop filter for auto crop.
For fast drawing I access private .NET internals with Reflection: Code:
Public Function GetBMPFromDib(ByVal pDIB As IntPtr) As Bitmap Dim pPix As IntPtr = New IntPtr(pDIB.ToInt32() + Marshal.SizeOf(GetType(BITMAPINFOHEADER))) Dim mi As MethodInfo = GetType(Bitmap).GetMethod("FromGDIplus", BindingFlags.Static Or BindingFlags.NonPublic) Dim pBmp As IntPtr = IntPtr.Zero Dim status As Integer = GdipCreateBitmapFromGdiDib(pDIB, pPix, pBmp) Return CType(mi.Invoke(Nothing, New Object() {pBmp}), Bitmap) End Function Code:
Dim factorX As Single = CSng(Control.Width) / img.Width Dim factorY As Single = CSng(Control.Height) / img.Height Dim left As Single = CropLeft * factorX Dim right As Single = CropRight * factorX Dim top As Single = CropTop * factorY Dim bottom As Single = CropBottom * factorY Dim rectDest As RectangleF = New RectangleF() rectDest.X = left rectDest.Y = top rectDest.Width = Control.Width - left - right rectDest.Height = Control.Height - top - bottom Dim rectSrc As Rectangle = New Rectangle() rectSrc.X = CropLeft rectSrc.Y = CropTop rectSrc.Width = img.Width - CropLeft - CropRight rectSrc.Height = img.Height - CropTop - CropBottom g.DrawImage(img, rectDest, rectSrc, GraphicsUnit.Pixel) Dim sb As SolidBrush = New SolidBrush(Color.White) g.FillRectangle(sb, 0, 0, left, Control.Height) g.FillRectangle(sb, 0, 0, Control.Width, top) g.FillRectangle(sb, Control.Width - right, 0, right, Control.Height) g.FillRectangle(sb, 0, Control.Height - bottom, Control.Width, bottom)
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
21st February 2006, 19:32 | #1832 | Link | |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
__________________
BeHappy - AviSynth-based audio transcoding tool Audio encoding via AviSynth On2 VP7 is great in quality but it is unusable for long-term video backup puposes! Sincerely Yours, MCPD/MCTS |
|
21st February 2006, 20:46 | #1834 | Link |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
finally some good news from the refactoring front: audio now uses the same logic as video.. codecs and encoders are registered, and upon selecting an audio codec, the supported output types (containers) are gotten. Audio input and output filters are set according to whatever an encoder supports and audio job generation now fully resides outside form1.
I don't think at this point it makes a lot of sense to argue about resizing. Have a mouthful of this: currently we have a preview with intro/credits setting preview, another one for zones, and another one for plain preview without any possibility to set anything. On top of that there will be a cutter window as well. Now, when should they be accessible, does it make sense to limit their number, and where are the individual settings saved (intro/credits, zones, cutlists)? Who cares if the resizeable preview is a bit slower than it can be.. those are just beautifying issues that can be looked into if there are no open feature requests and bugs and no more oustanding refactoring.. now when the whole project is in the thick of all of those categories.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
21st February 2006, 21:22 | #1835 | Link |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
@Doom9
talking about RAW AAC output - i don't like it bcz we need explicit SBR signaling. In this case I propose to use special markers in filename: Code:
bla-bla-bla (SBR).aac
__________________
BeHappy - AviSynth-based audio transcoding tool Audio encoding via AviSynth On2 VP7 is great in quality but it is unusable for long-term video backup puposes! Sincerely Yours, MCPD/MCTS |
21st February 2006, 21:25 | #1837 | 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 |
|
21st February 2006, 21:33 | #1838 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Quote:
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
|
22nd February 2006, 23:13 | #1839 | Link |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
CVS update:
0.2.3.2093 22 Feb 2006 Commit by Sharx1976: - Fixed a bug in the calculator introduced in 0.2.3.2092 (patch by Mutant_Fruit).
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
Tags |
development, megui, not a help thread |
Thread Tools | Search this Thread |
Display Modes | |
|
|