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. |
6th December 2011, 22:41 | #41 | Link |
Registered User
Join Date: Sep 2011
Posts: 86
|
Batch evaluates %variables% with their value at the time it enters a ( block ). Changes to the value within the block aren't reflected because they have already been "expanded". Using enabledelayedexpansion and !! can get you around that, but it is added complexity that is best avoided when not needed.
|
6th December 2011, 23:52 | #42 | Link | |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
Quote:
See http://avisynth.org/mediawiki/Interlaced_fieldbased. |
|
10th December 2011, 13:29 | #44 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Hi anybody can see reason of following?
I have mp4 file where mediainfo says it is Quicktime AVC. FFVideo source cannot handle it and DIrectShowSource can. But why is first method working and second gets crash? First: Code:
DirectShowSource(srcfile) Code:
try{FFVideoSource(srcfile, threads=1)} catch (err_msg) {DirectShowSource(srcfile)} |
10th December 2011, 23:20 | #47 | Link | |
Registered User
Join Date: Sep 2011
Posts: 86
|
Quote:
Did you have the file open in another program?!? Make sure ffvideo is erroring the way you are expecting Code:
try{FFVideoSource(srcfile, threads=1)} catch(err_msg) {WriteFileStart(blankclip,"error.log","err_msg")} Code:
try{assert(false)} catch(err_msg) {DirectShowSource(srcfile)} |
|
12th December 2011, 18:37 | #48 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
So, for the first of your tests I did something different already before: I put AviSource in the catch part. And I got Nice AviSource error message. That means, that the error handling took place.
However, for your second test (nice idea), it worked fine. Besides this, I did another test: Code:
try{FFVideoSource(srcfile, threads=1)} catch (err_msg) {} DirectShowSource(srcfile) I don't see ant obvious conclusion here...so, if not anyone else does, let's not waste more time on that. I would better have (I hope) easier and more useful question which would lead to improving some bad habits of my batch file: How the batch file can learn it's own location (path). I would like to pass the path to the avs. Thank you. |
12th December 2011, 18:51 | #49 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Hi redfordxx, dont know if this helps but CD displays current directory or CD > Dir.txt to a file.
EDIT: sorry, CD is a dos command and that is what I thought you were asking about, dont know if there is an equivalent in AVS script. If your question was about AVS script then I think I recently saw a thread/post that, that enquiry would involve a try/catch thing also.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 14th December 2011 at 00:40. |
14th December 2011, 01:51 | #50 | Link | |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Quote:
|
|
14th December 2011, 14:53 | #52 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Just for you info, I've just found these functions in the Avisynth docs
ScriptName, ScriptFile, ScriptDir, (EDIT: Since v2.6.) which I was not previously aware of. They are easiest to find in the Avisynth2.6 Help CHM via MediaFire in my sig (it is a searchable version of the Docs).
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 14th December 2011 at 18:16. |
14th December 2011, 19:07 | #53 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Yeah, that really must be new, because I remember somewhere seeing the ScriptName doing via try/catch error message.
Thanx but not for my purpose because ScriptDir is exactly what I don't want;-) [OT] By the way StainlessS, you were mentioning some time ago, that you were interested int RedAverage...did you try already? Did it work for you?[/OT] |
14th December 2011, 23:03 | #54 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Not tried as yet, I have it in the queue of things I have to do, (downloaded it some time ago and think I have the
most recent version also). Gonna try your batcher too when I get around to it. Thankyou.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
20th December 2011, 06:54 | #57 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
Hi, guys, muxing stopped to work after I upgraded mkvmerge. Just letting you know, before I figure it out and publish update. Probably some change in CLI syntax, which is really not what I would expect.
EDIT: seems to me, that the track numbering was starting with 1 and now it is 0. Isn't that weird? Did anyone notice this change? or it is maybe change in x264? I don't know where the track numbers come from... Last edited by redfordxx; 20th December 2011 at 08:06. |
6th January 2012, 12:21 | #58 | Link |
Registered User
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
|
I have partially figured out the aspect ratio issue, at least for MPEG2. And also denoising. As soon as I will cleanup it, I will put new version online.
And I know already also that the 16:9 ratio in MPEG2 does not mean the picture is 16:9. So this I have covered. However, I don't know about MPEG1 yet. Is it also that the display aspect ratio reported by DGIndex is not the real ration or in case of MPEG1 I can take the numbers I see in log file? Thank you |
Thread Tools | Search this Thread |
Display Modes | |
|
|