digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Bug reporting on HCMatic (http://www.digitalfaq.com/archives/avisynth/14467-bug-reporting-hcmatic.html)

Dialhot 01-17-2007 10:31 AM

Bug reporting on HCMatic
 
Please do report bugs or issues in here.
Thanks

Dialhot 01-17-2007 10:54 AM

A first word to say that :
1/ I encoded three 8-ep DVD that have been all slightly oversized (4.79, 4.77 and last one 4.74 GB). I do not consider that has a big issue.

2/ I never encoded NTSC sources till now ! So let me know if any issues with them.

3/ I'm not sure I will have a lot of time to work on the tool in the next coming days as I just bought a dual core E6400 to replace my old 1.3 Ghz P4. I can't say how hurry I am to play with this new toy :-D.

rainer 01-17-2007 01:46 PM

Firstly, many thanks for creating this tool! I've really had enough of tmpgenc ;)

I don't know if this is a bug or am I doing something wrong but I can open only one .avs file at a time... when I try to open .avs to "Source 2", program gives an error "File is not supported". And even if I hit "Clear" I can't open any files anymore. I have to close and open the program again and then I can open one file... but not two or three.

Dialhot 01-17-2007 03:57 PM

Quote:

Originally Posted by rainer
Firstly, many thanks for creating this tool! I've really had enough of tmpgenc ;)

I don't know if this is a bug or am I doing something wrong but I can open only one .avs file at a time... when I try to open .avs to "Source 2", program gives an error "File is not supported". And even if I hit "Clear" I can't open any files anymore. I have to close and open the program again and then I can open one file... but not two or three.

geez... not really a bug of my own but something that is wrong on your system. PureBasic is using Directx to open media files. It seems that on your system, the first open does not close all what has to be closed, and this block the next opens.
Can you tell me what is your windows version ? And also what is you CPU ? If you can, post a snaphot of the error window, I want to see if it comes from HCMatic or Windows itself.

rainer 01-17-2007 04:04 PM

http://www.digitalfaq.com/archives/i.../2007/01/2.jpg

OS: Windows XP Home SP2
CPU: AMD Turion 64 X2 Mobile TL-50, 1gb of ram

Dialhot 01-17-2007 06:46 PM

What is the name of this second source ?
Are you sure the file you try to open is correct ? Does it play in a media player ?
Can you try to open the second file first, then 1.avs ?
Can you try also to open the same 1.avs as first and second source ?

I have only Intel based PCs, I will try to find in the compile options of PureBasic if there is a mode more compatible with AMD.

rainer 01-18-2007 10:19 AM

Quote:

Originally Posted by Dialhot
What is the name of this second source ?

2.avs

Quote:

Are you sure the file you try to open is correct ? Does it play in a media player ?
It plays fine in MP.

Quote:

Can you try to open the second file first, then 1.avs ?
Yes I've tried but same problem occurs.

Quote:

Can you try also to open the same 1.avs as first and second source ?
Yes I've tried but same problem occurs.

Dialhot 01-18-2007 10:57 AM

Can I see the scripts 1.avs and 2.avs ? Are you using Gripcrop ? If yes, don't :).

Test also this exe release, and tell me if the message is still "File not supported" or "File cannot be read" :
http://www.kvcd.net/downloads/HcMatic_test.exe

Finally can you see in Graphedit how an avs is read on your PC ?
On mine, the render chain is straight :

http://www.digitalfaq.com/archives/error.gif

rainer 01-18-2007 12:04 PM

Code:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
mpeg2source("D:\temp\ep1.d2v")
Lanczos4Resize(544,384,3,0,720,480)
Addborders(0,48,0,48)

that new exe file won't work.. only flashes command prompt quickly and then closes.

my graphedit looks exactly the same.

Dialhot 01-18-2007 12:50 PM

Quote:

Originally Posted by rainer
that new exe file won't work.. only flashes command prompt quickly and then closes.

My fault :-(. Bad type set during ftp transfer.
Download it again please and let me know what is indicated in the error box. But according to your previous answers I fear there is nothing I can do for you :cry:

rainer 01-18-2007 01:13 PM

http://www.digitalfaq.com/archives/i.../2007/01/8.jpg

rainer 01-18-2007 01:22 PM

Quote:

Originally Posted by Dialhot
I fear there is nothing I can do for you

that won't be a major problem... I can still do prediction for a one file at a time.

Dialhot 01-18-2007 05:18 PM

The message incates that the script file can be read but can't be played as a movie. That means that you have a codec that stay "stuck" after the first movie opened :-(.

Quote:

Originally Posted by rainer
I can still do prediction for a one file at a time.

Or ure the trick I used before to developp my tool :
let say you have eight sources 1.avs, 2.avs... 8.avs
you create a script called "Total.avs" like this :
Code:

a=avisource("1.avs")
b=avisource("2.avs")
.
.
.
h=avisource("8.avs")
a+b+...+h

Then you predict on this "Total.avs". That claims a lot of memory, but that works.

I have a question nevertheless. In an other thread you said :
Quote:

edit: ok, just found out there's also a bit easier way. just add *SHUTDOWN to the last .ini file listed in .bat file.
Does this mean that you maanged to do a prediction for more than a source yet ? Or did you jsut figured this out by looking the result with a single source ?

I don't have time today (it's 11pm and I don't even eat yet :?) but tomorrow we will try to play with options of the compiler. May be do an exe specialy for AMD. Let see what can be done.

Dialhot 01-19-2007 06:32 AM

@rainer
Please, try all the exe in this archive and tell me if one of them is working on your PC :
http://www.kvcd.net/downloads/HCMatic_test.rar

Let me know for HCMatic_forced.exe if you receive the message "Impossible to free the ressource".

rainer 01-19-2007 11:24 AM

Quote:

Or did you jsut figured this out by looking the result with a single source ?
Yes, that's how I did it.

none of them worked... forced version gave the same error as the test.exe you gave me earlier.

Dialhot 01-19-2007 11:37 AM

Quote:

Originally Posted by rainer
none of them worked... forced version gave the same error as the test.exe you gave me earlier.

That means that the first source has been correctly parsed, then closed. I thought that the problem was in the close of the first movie, so I added some code to force it (hence the name of the binary)

There is no real reason for the second one to have an error and obviously I can't anything to fix that :evil:. I'll try to look at purebasic forum if there is one.

rainer 01-19-2007 12:46 PM

Found the solution!! Apparently there was some avisynth plugins that messed up my system.. I earlier tried to reinstall avisynth but that didn't work but now I deleted all files from plugins dir and reinstalled the application and everything is working fine now. I can load multiple files to HCmatic.

Dialhot 01-20-2007 12:42 PM

Great !
:ole:

PcPunk 01-25-2007 07:45 AM

dc perc.
 
First of all many thanks for a few years of reading this HQ forum, over the past years of reading and trying is this tool the one for me doing skvcd.

So far my testings everything is coming out perfect for me.

Maybe there is a simple answer but why can i not set the dc perc. to 8 because for the skvcd i am doing?

Dialhot 01-25-2007 08:07 AM

Re: dc perc.
 
Quote:

Originally Posted by PcPunk
Maybe there is a simple answer but why can i not set the dc perc. to 8 because for the skvcd i am doing?

There is no restriction of that sort. What do you mean ? You select 8 but HCenc still encode with 9 ?

Edit: gotta ! I forgot to add the line into the ini files :oops: . So the default is used by HCenc, and the default is 9 !

You can still continue like that, the quality of your encodings do not suffer too much. I'm making some modifications in my code and should deliver a release 1.1 soon. I will include the fix for the Dcprec bug of course.

gamma 02-05-2007 02:01 AM

Hi Phil,

First of all, great tool!

One minor problem though, I can't seem to set the minimum bitrate at
2300....the minimum in the tool is set at 2500 :)

Dialhot 02-12-2007 12:16 PM

Quote:

Originally Posted by gamma
One minor problem though, I can't seem to set the minimum bitrate at
2300....the minimum in the tool is set at 2500 :)

You meant surely the maximum ? I forgot about the VCD :oops:
It is fixed in new release :-). See next post.

Dialhot 02-12-2007 12:16 PM

:arrow: HCMatic 1.1 is out :!:

CHANGELOG
12-Feb-2007 : HCMatic 1.1
* FIX : DcPrec was always 9
* NEW : overhead is now selectable
* NEW : interlaced mode is supported
* NEW : encode can be started automatically when prediction is done
* CHANGE : Max bitrate can be lowered down to 1500 (for VCD)

rds_correia 02-20-2007 01:35 PM

I Phil,
I am sorry that I still haven't given HCMatic a try and I am already posting questions about it but I'm sure you will forgive me for that :P.
I noticed that you have included a oversize field.
Can you please tell me why we would need that in our projects?
Cheers

rainer 02-20-2007 04:11 PM

Quote:

Originally Posted by Dialhot
I forgot about the VCD :oops:.

Isn't HC only mpeg2 encoder???

rds_correia 02-20-2007 04:22 PM

Well yes but maybe Phil is referring to KVCD which is a mix of VCD and SVCD.
For instance KVCD can be done with MPEG2 video.
It's been done with MPEG1 since the beginning because TMPGENC could(/can) encode MPEG1 even better than MPEG2 on low bitrate projects and because MPEG1 was(/is) free in that encoder.
You can encode in 352x288(240) and then author as SVCD and you will be doing a nice KVCD which I have always called K(S)VCD.
Cheers

Dialhot 02-21-2007 04:11 AM

Exactly as Rui said. And I have to add that standard SVCD is normally limited to 2300. Above bitrates are considered as XSVCD and not all standalone support that. That is probably why gamma asked for 2300 as lower limit.

But this is solved now in HCMatic 1.1

Dialhot 02-26-2007 06:59 PM

Be carefull, I found a problem with HCMatic 1.1 :when you select the framerate for the first source and press the "*" button to expand this to all sources, the bitrate is not updated. To avoid calc errors, do not use the "*" for the framerate but select it manually for each sources.

I will fix that in next release.

incredible 02-27-2007 05:33 AM

Phil! Congrats to your Purebasic Project HCMatic!

In case of any Qs just ask. Be aware that PBs internal DX capabilities for reading avs scripts are quiet poor. I decided to switch to vfw by using the avifil32.dll (like CCE or VirtualDub). Just look into Paranoias Sources to see the approach (if needed).
In vfw you can seek & jump within avs streams which could be quiet useful in case of predictioning.

BUT! It seems that Windows vfw capabilities will be more and more broken in vista if you'll upgrade your OS.

Best greets,
Andrej

Dialhot 02-27-2007 09:41 AM

Quote:

Originally Posted by incredible
In case of any Qs just ask. Be aware that PBs internal DX capabilities for reading avs scripts are quiet poor.

I saw that : the frame number returned is not fully correct. It's not to hurting when you use it just to compute length in minutes and second like me, but it's surprising.

Quote:

Just look into Paranoias Sources to see the approach (if needed).
I never noticed that the sources where distributed :oops:

incredible 02-27-2007 10:03 AM

First approach via DirectX (I genereted an includefile some time ago):
A little player example is included.
http://www.purebasic.fr/english/view...824&highlight=

In the newer v4 from Purebasic the people now more do use includes instead of Userlibraries. Cause you can see it as "source" how it works instead a closed userlib-binary.

Second approach via VFW (included in PARanoias Sources):
http://sourceforge.net/project/showf...roup_id=158652

This one still was made for V3.x of Purebasic.
http://www.purebasic.fr/english/view...light=avifil32


PS: You know this one?:
http://www.purearea.net/pb/english/index.htm

:)

rds_correia 02-27-2007 04:38 PM

Wait a minute?
Is PARanoia Open Source, Andrej?
BTW great to see you still around :D.
Cheers

incredible 02-28-2007 03:54 AM

Yes its Open Source :)

And yes, Im still around, but I dont have enough time for Videoprocessing &Co. these months.

Dialhot 03-02-2007 11:11 AM

:arrow: HCMatic 1.2 is out and supports HCenc 0.20.0.

rainer 03-06-2007 05:04 PM

http://www.digitalfaq.com/archives/i.../2007/03/1.gif

I'm getting this error when using this specific script:


Code:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\GripFit_YV12.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\STMedianFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\asharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\unfilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\undot.dll")
dgdecode_mpeg2source("D:\132.d2v")
undot()
asharp(1, 4)
GripCrop(704, 480, overscan=2)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1)  ")
GripBorders()
function fmin( int f1, int f2) {
  return ( f1<f2 ) ? f1 : f2
}

script plays fine in media player classic. also the sample script created by hcmatic played fine in MPC and every other script i've tried works fine with hcmatic/hc/avisynth.

edit: also tried with earlier versions of hcmatic and hc-enc. no luck.

Dialhot 03-06-2007 07:31 PM

Stop using Gripfit, it is too "unstable". Prefer direct crop / resize command with values given by paranoia or fitcd.

rainer 03-07-2007 04:18 AM

yeah! thanks. that did it.
is bicubic still the way to go or....?

Dialhot 03-07-2007 04:42 AM

Quote:

Originally Posted by rainer
yeah! thanks. that did it.
is bicubic still the way to go or....?

It depends on the whole script. With a light asharp like in the MA script, Bicubic (0,0.6) is good.

Dialhot 03-07-2007 04:54 AM

A word concerning HCenc 0.20.

With this release I have a lot of "read memory" error when the app is closing. This problem occured in old releases, but I never have problem with 0.19 and 0.19.1. This is very boring because this stuck the app, that never close until you kill it, and so HCMatic can't continue to work. Very upsetting when you start a porediction at night and go to sleep :-(.

A long time ago Pro did some batch to deal with that (see http://www.kvcd.net/forum/viewtopic....089&highlight=). If someone have one of thme, please send it to me and I will host it ion kvcd.net.

I will try to deal with the problem intop HCMatic. Meanwhile I will use HC 0.19.1.

incredible 03-07-2007 05:53 AM

@ Rainer
Just for my personal interest, could you try using this version of gripfit.dll
http://home.arcor.de/the.incredible/...ripFit2006.zip

I just want to see if that version solves the avisynth "invoke environment" problem.


All times are GMT -5. The time now is 06:29 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.