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. |
26th January 2006, 19:06 | #1561 | Link | |
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Quote:
Code:
typedef struct AVSDLLVideoInfo { // Video int width; int height; int raten; int rated; int aspectn; int aspectd; int interlaced_frame; int top_field_first; int num_frames; int pixel_type; // <----------------- // Audio int audio_samples_per_second; int sample_type; // <----------------- int nchannels; int num_audio_frames; int64_t num_audio_samples; } AVSDLLVideoInfo; |
|
26th January 2006, 19:13 | #1562 | 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 |
|
26th January 2006, 19:30 | #1563 | Link |
I'm Dayvon, an MP4 addict
Join Date: Dec 2005
Location: Minneapolis
Posts: 238
|
Not to spam your thread or anything, but I just wanted to thank you MeGUI dev's. I just got done backing-up/encoding the Band of Brothers series, and your utility worked perfectly. More no hassle rendering than I've done in a long time. Thanks for your hard work, and great GUI!!
Dave |
26th January 2006, 21:26 | #1564 | Link | |
Registered User
Join Date: Apr 2005
Posts: 1,740
|
Quote:
|
|
26th January 2006, 21:30 | #1565 | Link |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
well.. I had that part typed out, then I somehow moved away, and once again coming back my text was gone.. thus the shorter message.. yes, having a dialog which would offer the automatic adding would be good, but then we also need the re-opening of the source
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
27th January 2006, 09:18 | #1566 | Link | |
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Quote:
vi->pixel_type = inf.pixel_type And the outgoing Cspace is determined by the Cspace requested in the avs_getvframe(....,....,"RGB") command. I do think we should merge the project AvsRedirect and AvsWrapper as its getting confusing. If you have questions about whats integrated and what could be done better, lets do it together. |
|
27th January 2006, 11:45 | #1567 | Link | |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
Code:
blablabla blablabla blablabla return last blablabla blablabla blablabla blablabla filename = <originalFileName>.ConvertToYV12.avs Code:
Import(<originalFileName>).ConvertToYV12()
__________________
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 |
|
27th January 2006, 11:48 | #1568 | 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 |
||
27th January 2006, 11:54 | #1569 | Link | |
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Quote:
however .... Last edited by Inc; 27th January 2006 at 11:58. |
|
27th January 2006, 12:31 | #1570 | Link | |||
Registered User
Join Date: Apr 2005
Posts: 1,740
|
Quote:
Quote:
1. It creates an extra file to be deleted, and the unexpecting user may be surprised to find two avisynth files where there should only be one. Which one should he/she choose? 2. It requires more code restructuring to handle the fact that there is ANOTHER file. 3. As I said above, that situation should never really arise, and my implementation will abort gracefully in this situation: telling the user that appending converttoyv12 didn't work, and giving the user the option of aborting. People who really know a lot about scripting will almost definitely not want the quick fix ConvertToYV12() at the end of the script, because, for most sources, it should have been YV12 in the first place, and so they will want to work out where the non-YV12 colorspace came from. I think it is only these people who will be writing the scripts with return last in them. Quote:
1. It adds additional pointless filters. Why slow the encoding down (even though not by much). 2. It will hide problems that the experienced AviSynth user will want to know about. If there is a conversion to RGB, these people won't want it hidden by a ConvertToYV12 at the end, because colorspace conversions cause quality loss. Never-the-less, none of these points actually give much reason against either of our implementations, so let's see what Doom9 says. |
|||
27th January 2006, 12:36 | #1571 | Link |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Code:
0.2.3.2054 27 Jan 2006 Commit by dimzon -SourceDetector doesn't create temporaly AVS anymore
__________________
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 |
27th January 2006, 12:41 | #1572 | Link | |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
Actually I use Code:
return last
__________________
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 |
|
27th January 2006, 13:14 | #1573 | Link |
Registered User
Join Date: Apr 2005
Posts: 1,740
|
I still don't like this return last. As you said, it's not good programming style. Also, would you seriously just let MeGUI do your ConvertToYV12 wrapping? If you found out it isn't YV12, wouldn't you go: "Hang on a minute, what's up? My source should be YV12, so where's it been converted away from YV12? I better fix it up"
Ok, how about this: I'm just about to commit my version, which manages the "don't ask me again" dialogs as well as all the error messages. If Doom9 wants your way, then you just change the ConvertToYV12 section of the code. There are two places you should look at: JobUtil.prepareVideoJob, which calls the function VideoUtil.checkVideo(string) |
27th January 2006, 13:40 | #1574 | Link |
Registered User
Join Date: Apr 2005
Posts: 1,740
|
Code:
0.2.3.2055 27 Jan 2006 Commit by berrinam: -Added video input checking (video exists, has no errors, colorspace==yv12, mod16) and warns the user -Refactored dialogs, added MessageBoxEx reference, and removed MPEG2SourceChoice -Removed OneClickDefaults.cs, OneClickDefaultWindow.cs/.resx |
27th January 2006, 13:48 | #1575 | Link | |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
Code:
AvsReader avi = AvsReader.OpenScriptFile(avsFile); if (!avi.Clip.HasVideo) return "AviSynth script has no video"; Code:
_enviroment = new AviSynthScriptEnvironment(); _clip = parse? _enviroment.ParseScript(script, AviSynthColorspace.RGB24) : _enviroment.OpenScriptFile(script, AviSynthColorspace.RGB24); if (!_clip.HasVideo) throw new ArgumentException("Script doesn't contain video");
__________________
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 |
|
27th January 2006, 13:55 | #1576 | Link | |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
Quote:
@dimzon: why do you use _ prefixes for variable names when the rest of the project uses no such thing? It's breaking with style. I generally like to use the java style notation (somevariablename becomes someVariableName.. first letter small, subsequent letters at positions where a word could be separated in capital letters). I know I'm not being consistent but I think considering that so many people are working on this now, we really should strive to be consistent throughout the code. The same goes for comments.. every method should have one (once again I've been too lazy in the past), and I'm also no fan of the whole if something ? then : else notation.. it makes a program harder to read, and forces you to read the entire line, then hammer out the logic in your head rather than just read over the if and know what it's all about.
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
|
27th January 2006, 14:31 | #1577 | Link | |||
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
second - AFAIK Java has not fixed (only one style applicable) notation third - I'm using Microsoft-proposed style. this means: all nonpublic fields must start with _ (private int _someInt) all nonpublic methods must have lowercase fiirst char (private int someInt() ) all public methods must have upper case first char (public int SomeInt() ) its really usefull notation: looking @ such code Code:
_script = generateScript(val); Start(); _script is protected field, Start() is public and generateScript is protected method without looking @ definition. But if You don't like this stye feel free to change it using Refactoring features of VS2005 (right click on name and choose Refactor->Rename) 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 |
|||
27th January 2006, 14:43 | #1578 | Link | |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
Quote:
However, I don't quite see the necessity to see the difference.. if you're working "inside" the class.. you don't really care whether a method is public or not. If you're working "outside" the class.. if it's private you won't even get to see it.. plus then there are the protected and internal intricacies that you can cover with changing just one letter. If working "outside" a class, if intellisense doesn't pick up a method name you know is there.. you have to go back and change the access modifier anyway. Come to think of it.. iirc most samples I've seen using the _ notation were done by programmers coming from a language that doesn't have properties and doesn't commonly work with setters/getters. I'm not used to seeing _ in variable names in msdn samples (for C# of course)
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
|
27th January 2006, 15:31 | #1579 | Link | ||
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
Quote:
http://dotnet.mvps.org/dotnet/faqs/?...ntions&lang=en http://msdn.microsoft.com/library/de...guidelines.asp
__________________
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 |
||
27th January 2006, 15:46 | #1580 | Link | |
BeHappy/MeGUI developer
Join Date: Oct 2003
Location: Moscow, Russia
Posts: 1,727
|
Quote:
Where I can find it's source code?
__________________
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 |
|
Tags |
development, megui, not a help thread |
|
|