INDEX  F.A.Q.  SEARCH  LATEST POSTS     Rules  Register  Profile  Private messages  Login


Search all forums or this forum: Advanced search
HCbatchGUI - (batch processor for HCenc and Aften). Development Thread.

Forum Index -> Video -> Programming Printer-friendly version
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Reply to topic
Author Message
buzzqw
FFmpeg fanatic


Joined: 10 Jun 2004
Location: Italy

Post Posted: Dec 22, 2007 10:03 Posts Comp View users profile Send private message Reply with quote

there is even convolution3d for yv12...
http://avisynth.org/warpenterprises/files/convolution3dyv12_25_dll_20030329.zip

a more evoluted filter of this kind is mipsmooth
http://avisynth.org/warpenterprises/files/mipsmooth_25_dll_20051223.zip

anyway i prefer degrainmedian and removegrain.. wink.gif

thanks for this grat app!

BHH
_________________
http://www.videohelp.com/tools/AutoMKV -> AutoMKV
http://www.videohelp.com/tools/MPlayer -> AutoMen
http://forum.videohelp.com/topic351415.html -> AutoFF, a nice gui for ffmpeg (windows/linux)


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 22, 2007 10:13 Posts Comp View users profile Send private message Reply with quote

Hey man that is high praise coming from the author of automkv!
_________________
My Tools

Ready to Learn?


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 22, 2007 13:49 Posts Comp View users profile Send private message Reply with quote

using conv3d for yv12 could be useful....one less colorspace change....

thanks for the PM!!!!
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 23, 2007 08:16 Posts Comp View users profile Send private message Reply with quote

there is a bug for interlaced sources in the convolution3d scripting generation. I found this out by playing some encodes on a TV and everything looked wacky.

for interlaced sources you need to use:

ConvertToYUY2(interlaced=true)

HCbatchGUI only uses ConvertToYUY2 before running convolution3d. It seems that if the interlaced=true is not in place then you get field errors and jerly movement.

the same is also true for converting to yv12 before going to HC....you need:

ConvertToYV12(interlaced=true)


See:

http://forum.doom9.org/showthread.php?t=60864

and

http://forum.videohelp.com/topic225951-60.html

my sources are verified BFF and interlaced via GSpot....if you have the energy and want to fix this before Christmas I can check it out!!!!

thanks
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 23, 2007 14:57 Posts Comp View users profile Send private message Reply with quote

ron spencer wrote:
there is a bug for interlaced sources in the convolution3d scripting generation. I found this out by playing some encodes on a TV and everything looked wacky.

for interlaced sources you need to use:

ConvertToYUY2(interlaced=true)

HCbatchGUI only uses ConvertToYUY2 before running convolution3d. It seems that if the interlaced=true is not in place then you get field errors and jerly movement.

the same is also true for converting to yv12 before going to HC....you need:

ConvertToYV12(interlaced=true)


See:

http://forum.doom9.org/showthread.php?t=60864

and

http://forum.videohelp.com/topic225951-60.html


Okay. Won't have the time until after christmas but thanks for the heads up!
_________________
My Tools

Ready to Learn?


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 23, 2007 17:17 Posts Comp View users profile Send private message Reply with quote

actually it has nothing to do with convolution....if a user uses ANY interlaced source the (interlaced=true) needs to appear after ANY convertto command....so maybe you could have a box for interlaced or not


there is an issue with the convolution scripts on their own...but I am verifying this now.
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


gadgetguy
Contestant


Joined: 14 Feb 2002
Location: Michigan, USA

Post Posted: Dec 23, 2007 18:11 Posts Comp View users profile Send private message Reply with quote

Not for "any" color conversion. Only if converting to or from YV12.
From the AviSynth documentation:
Quote:
Note, the interlaced=true setting only does something if the conversion YV12 <-> YUY2/RGB is requested, otherwise it's simply ignored.


To my knowledge, Convolution3D is not interlace aware and the fields must be separated before applying it.
_________________
"Shut up Wesley!"
-- Captain Jean-Luc Picard


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 23, 2007 22:24 Posts Comp View users profile Send private message Reply with quote

yes you are right....I did see that....but better safe than sorry, esp. if avisynth ignores when not needed, and this proggy does convert the spaces...so should be there
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 23, 2007 23:14 Posts Comp View users profile Send private message Reply with quote

Well I did say I wan't an avisynth guru redface.gif

Since I'm going to have to fix the script I'll just update the convoulution3d.dll to the yv12 version that buzzqw mentioned to reduce color conversion. I will add the (interlaced=true) to fix the script. Sorry about that. I thought I followed fulci's guide correctly but I'll have to admit that I did not read all 5 pages. Also I have only personally used convoution on progressive sources. I will fix as suggested. Thanks ron and gadgetguy! Hope I haven't caused too many people problems! redface.gif
_________________
My Tools

Ready to Learn?


buzzqw
FFmpeg fanatic


Joined: 10 Jun 2004
Location: Italy

Post Posted: Dec 24, 2007 07:51 Posts Comp View users profile Send private message Reply with quote

just to be sure...
Quote:
Convolution3D is not interlace aware and the fields must be separated before applying it
mean that can't apply it directly.. but must first separate the fileds, apply convolution, merge the fields..

like this

SeparateFields() #separate the 2 fields
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0) # on every fields do convolution
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0) # on every fields do convolution
Interleave(evn,odd) #set the working pair
Weave() # merge it
yadif() #deinterlace

or

yadif() #first deinterlace
Convolution3D(1, 6, 10, 6, 8, 2.8, 0) # then clean it

EDIT: just some considerations..
the first approach is the preferred. Working on single field before the deinterlace "do it damage" will produce the most clean picture. Working on already deinterlace picture will lead to minor "cleaning" since most rumor is now merged together. But.. working on already deinteralced frame is faster
Most if not depend if the source need do be deinterlaced.
If you use a good motion/frame adaptive (leakkernel, tdeint..) let's first deinterlace.. but otherwise.. first clean the room wink.gif

BHH
_________________
http://www.videohelp.com/tools/AutoMKV -> AutoMKV
http://www.videohelp.com/tools/MPlayer -> AutoMen
http://forum.videohelp.com/topic351415.html -> AutoFF, a nice gui for ffmpeg (windows/linux)


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 24, 2007 09:17 Posts Comp View users profile Send private message Reply with quote

Okay updated to 13.6

fixed convolution scripts (hopefully)

updated convolution to yv12 version


Once again my apollogies for any problems this may have caused.
_________________
My Tools

Ready to Learn?


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 24, 2007 10:44 Posts Comp View users profile Send private message Reply with quote

There is still a problem (I never mentioned this before). The convolution scripts is:

SeparateFields()
odd=SelectOdd.Convolution3D (1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D (1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
converttoyv12(interlaced=true)


DoubleWeave is invalid for NTSC DV sources that are not progressive. Beleive me is makes a MESS on playback; horrible. NTSC BFF interlaced material is cannot have this command....it must go. It was a relic when CCE could not handle BFF.

see:

http://forum.doom9.org/showthread.php?t=75734

http://forum.videohelp.com/topic225951-120.html

If I take it out then all is purrfect!!! so the doubleweave.selectodd() needs to go for NTSC BFF (all NTSC DV if BFF anyway).

script should be:

converttoyuy2(interlaced=true)
SeparateFields()
odd=SelectOdd.Convolution3D (1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D (1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
converttoyv12(interlaced=true)





Also....I thought that what happens if you start a long encode but forget the audio options....you need to cancel the encode. How about an option on the audio page to just do the audio....at least for the saving of the WAV (no resample or resample). You could add a button to "Process Audio Only"


whew!!!!

Merry Christmas!!!
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 24, 2007 10:49 Posts Comp View users profile Send private message Reply with quote

Okay ron. After christmas. I'm on my way to family right now and wont be near a computer for three days. Merry christmas!
_________________
My Tools

Ready to Learn?


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 24, 2007 12:01 Posts Comp View users profile Send private message Reply with quote

no problem....relatives are coming here now and my kids are crazy....so no encoding for a while 4 me either.... biggrin.gif


safe travels................................
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 26, 2007 09:46 Posts Comp View users profile Send private message Reply with quote

Hope everyone had a merry christmas.

Released 13.7

Removed doubleweave from convolution3d script as it was causing some errors.

Added ability to add or remove converttoyv12 from avs script (does not affect convolution scripts. Just scripts without convolution).

ron spencer wrote:
Also....I thought that what happens if you start a long encode but forget the audio options....you need to cancel the encode. How about an option on the audio page to just do the audio....at least for the saving of the WAV (no resample or resample). You could add a button to "Process Audio Only"


You can process audio only easily. Just set your source and target directories on the first page then (don't open an HC template) then make your settings on the audio page like you normally would then click start. Thats assuming you already have your avs scripts generated.
_________________
My Tools

Ready to Learn?


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 26, 2007 15:03 Posts Comp View users profile Send private message Reply with quote

I had a cool Christmas....used your app to make some home movie DVDs for relatives...worked perfectly.

Thanks for V13.7....looks awesome!!! Here are a couple of comments 4 U.


1. Not sure if this can be done or not (not really THAT relevant), but can it be done so that when you hit Generate ABISynth Scripts that the .avs file is physically made so a user can open with notepad and check it before the gui runs the HC batch file? This is not THAT important, but just a convenience thing.

2. in the converttoyv12 drop down box you have one of the three choices as:

converttoyv12(interlaced=true)# for interlaced video

the rest are:

converttoyv12() # for progressive video
# no colorspace conversion

Now this is really picky, but you should probably put a space after the bracket in the first option so you get:

converttoyv12(interlaced=true) # for interlaced video


This is wacky picky for sure, but you seem to be a programmer who likes to have all the i's dotted and t's crossed.


3. I never had a clue about audio only processing!!! I think this is such an important feature that you should mention in it in the template selection area....write in blue underneath the two template open boxes something like:

"Do not open an HC template if you wish to process only the audio; follow ALL OTHER steps though"


4. In the log file a reference to DGpulldown is always present. It says: "DGpulldown will now start" To a new user, they may be concerned if they did not choose a DGPulldown option. How about "DGPulldown, if applicable, will now start"



Again a great new version....just giving my humble opinion as it were.


Thumbs-Up!!!
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 26, 2007 15:35 Posts Comp View users profile Send private message Reply with quote

ron spencer wrote:

1. Not sure if this can be done or not (not really THAT relevant), but can it be done so that when you hit Generate ABISynth Scripts that the .avs file is physically made so a user can open with notepad and check it before the gui runs the HC batch file? This is not THAT important, but just a convenience thing.


Probably could. I'll look into it.

Quote:

2. in the converttoyv12 drop down box you have one of the three choices as:

converttoyv12(interlaced=true)# for interlaced video

the rest are:

converttoyv12() # for progressive video
# no colorspace conversion

Now this is really picky, but you should probably put a space after the bracket in the first option so you get:

converttoyv12(interlaced=true) # for interlaced video


This is wacky picky for sure, but you seem to be a programmer who likes to have all the i's dotted and t's crossed.


icon_smile_lachuh.gif
Thats funny! I really don't think of myself as a programmer. The guys who made the great programs like HCenc, Aften, DGpulldown, etc.... are the REAL programmers.

Quote:

3. I never had a clue about audio only processing!!! I think this is such an important feature that you should mention in it in the template selection area....write in blue underneath the two template open boxes something like:

"Do not open an HC template if you wish to process only the audio; follow ALL OTHER steps though"


One of those things I didn't document. I think I might add it to the online userguide.

Quote:

4. In the log file a reference to DGpulldown is always present. It says: "DGpulldown will now start" To a new user, they may be concerned if they did not choose a DGPulldown option. How about "DGPulldown, if applicable, will now start"


I was just thinking the same thing after I had already uploaded v13.7. I will change that next.
_________________
My Tools

Ready to Learn?


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 26, 2007 16:47 Posts Comp View users profile Send private message Reply with quote

I really have nothing else to add for now....dunno about other features.

I am not sure the online guide should be the only place for the audio only processing thing....having a nice blue line on the GUI may also be good info....but that is just me...

Not sure what else to add for now really...will think
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 26, 2007 17:32 Posts Comp View users profile Send private message Reply with quote

Released 13.8

Most small bugs should be fixed now. Added some new features.

Avs scripts are now created immediately after pressing "generate avs script"

You can review, edit, and save your avs scripts on the last page.
_________________
My Tools

Ready to Learn?


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 26, 2007 21:02 Posts Comp View users profile Send private message Reply with quote

Looks good...will give full test in morning....


Looked at GUI....one thing to note.

The AVISynth box that displays the scripting (in the AVISynth Creator Section) seems too small...while it will scroll up and down there is no space between the up and down arrows. At first I thought this may mean a bug, but it did work. Perhaps you could widen that window to be the same as the "Your Batch File" window so nobody else thinks there is an issue.

will test in AM...thanks
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 27, 2007 08:32 Posts Comp View users profile Send private message Reply with quote

all seems ok so far!!!

How about your program shutting down PC after encoding is done? Your gui would need to do it and not HC, as the gui would be doing audio maybe as well. You can shutdown with a file from here:

http://www.aumha.org/win5/a/shutcut.php


then you would need to make a batch file to use the .exe called shutdown with a pause command before execution so any logs can be written. Then a radio button in the gui for shutdown when done.

Is this a good idea?
_________________
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie


freebird73717
Member


Joined: 09 Dec 2003
Location: Buckle of the Bible Belt

Post Posted: Dec 27, 2007 08:48 Posts Comp View users profile Send private message Reply with quote

I thought about it and it's easily done. I personally leave my pc on almost all the time. But I'm sure others might find it useful. I will probably add it sooner or later.
_________________
My Tools

Ready to Learn?


ron spencer
Monka's Brother


Joined: 23 May 2005
Location: Ish-ka-bibble

Post Posted: Dec 28, 2007 11:53