digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Quicktime Files to KVCDx3 with Avisynth? (http://www.digitalfaq.com/archives/encode/3386-quicktime-files-kvcdx3.html)

Bchteam 04-26-2003 12:48 PM

Quicktime Files to KVCDx3 with Avisynth?
 
How can I convert a Quicktime File (.mov) to KVCDx3 with Avisynth???

I mean what kind of Line should I use in the script???

For Instance MPEG has

Code:

DirectShowSource("C:\Sample.mpg")
or VOB

Code:

Mpeg2Source("C:\Sample.d2v")
But what kind of Line shall I use for Quicktime???

Is it compatible with Avisynth, at all???

kwag 04-26-2003 02:05 PM

I think you nead a dll called QTRead or something like that. I'm not sure, because I don't convert .MOV files.

-kwag

Bchteam 04-26-2003 03:21 PM

I tried Google and it really helped.

Now I got some Knowledge about the whole thing and finally have this script:

Code:

#=====================================================#
# -= AviSynth script by MovieStacker v2.0.0 (beta) =- #
#=====================================================#

LoadPlugin("G:\Programme\MovieStacker2.0\Filters\MPEG2Dec.dll")
LoadPlugin("G:\Programme\MovieStacker2.0\Filters\STMedianFilter.dll")
LoadPlugin("G:\Programme\MovieStacker2.0\Filters\GripFit_preview.dll")
LoadPlugin("G:\Programme\MovieStacker2.0\Filters\UnFilter.dll")
LoadPlugin("G:\Programme\MovieStacker2.0\Filters\LegalClip.dll")
LoadVFAPIPlugin("G:\Programme\TMPGEnc-2.510.49.157-Free\QTReader.vfp", "QTReader")

QTReader("G:\Animatrix\reloaded_teaser_1_640.mov")
ConvertToYUY2()
FlipVertical()
SelectEvery(24,1) #Use (25,1) for NTSC.#
LegalClip()
GripCrop(528, 480, overscan=2, source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(10, 50, 0, 0, 10, 50)
UnFilter(50, 50)
TemporalSmoother(1, 2)
MergeChroma(blur(1.58))
MergeLuma(blur(0.3))
GripBorders()
LegalClip()


muaddib 04-27-2003 02:56 AM

Hi Bchteam,

I just did the exactly same clip and it works perfectly!
I almost can't see any difference from the source! 8O
But the source is 60MB and the encode is 35MB... 8)

My script was a little bit different from yours.
I didn't use STMedianFilter and I let MovieStacker do the resize.
I don't know why, but GripFit was giving me incorrect output with this source resolution.
Also I see no use for GripFit as this source has no black borders.
And finally I resized it to 480x480 and did an MPEG2 NTSC (my DVD only plays MPEG2).
Here is the script:

Code:

#=====================================================#
# -= AviSynth script by MovieStacker v2.0.0 (beta) =- #
#=====================================================#

LoadPlugin("C:\Program Files\MovieStacker\Filters\MPEG2Dec.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\UnFilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\LegalClip.dll")
LoadVFAPIPlugin("C:\Program Files\MovieStacker\Filters\QTReader.vfp", "QTReader")

QTReader("D:\Trailers\trailer_final_640_dl.mov")
ConvertToYUY2()
LegalClip()
FlipVertical()
SelectEvery(25,1)
BilinearResize(480, 352, 6, 0, 628, 346)
UnFilter(50, 50)
TemporalSmoother(1, 2)
MergeChroma(blur(1.58))
MergeLuma(blur(0.2))
AddBorders(0, 64, 0, 64)
LegalClip()

This QTReader works really well! Even with the most recent QuickTime movies. :D

Bchteam 04-27-2003 07:44 AM

Hi Muaddib,

Which Resize Settings Should I use, if my output was 528x480???

muaddib 04-29-2003 12:00 AM

Hi Bchteam,

For no overscan I would go for:
Code:

BilinearResize(528, 352, 13, 0, 614, 346)
(...)
AddBorders(0, 64, 0, 64)

If you want overscan = 2 (resize):
Code:

BilinearResize(496, 320, 3, 0, 634, 346)
(...)
AddBorders(16, 80, 16, 80)

If you want overscan = 2 (overlap):
Code:

BilinearResize(528, 352, 13, 0, 614, 346)
(...)
AddBorders(0, 64, 0, 64)
LetterBox(0, 0, 16, 16)


jorel 04-29-2003 02:12 AM

Quote:

Originally Posted by muaddib
Hi Bchteam,

For no overscan I would go for:
Code:

BilinearResize(528, 352, 13, 0, 614, 346)
(...)
AddBorders(0, 64, 0, 64)

If you want overscan = 2 (resize):
Code:

BilinearResize(496, 320, 3, 0, 634, 346)
(...)
AddBorders(16, 80, 16, 80)

If you want overscan = 2 (overlap):
Code:

BilinearResize(528, 352, 13, 0, 614, 346)
(...)
AddBorders(0, 64, 0, 64)
LetterBox(0, 0, 16, 16)


muaddib, :)

what the visual differences in tv(or results)
using no overscan,overscan2 or overscan 2(overlap)?

thanks in advance!
:wink:

muaddib 04-29-2003 02:33 PM

NO OVERSCAN:
- Keep the same "visual" film size of the source.
- Encode with no borders.
- Loose bitrate encoding film pixels in the side borders that you will not see in most TVs.

OVERSCAN RESIZE:
- Have smaller height then the source.
- Encode with borders.
- Gain bitrate because of the added black borders that you will not see in most TVs.

OVERSCAN OVERLAP:
- Keep the same "visual" film size of the source.
- Encode with borders.
- Gain bitrate because of the added black borders that you will not see in most TVs.

You can clearly see the difference of the Resize/Overlap in the resizer parameters:
BilinearResize(528, 352, 13, 0, 614, 346) --> overlap (same as no overscan)
BilinearResize(496, 320, 3, 0, 634, 346) --> resize

In this example you can see that the resize method has a difference o 32 lines less then the source.
That's why I prefer the overlap over the resize with widescreen movies.
I like to preserver the same highness of the source.
But the resize method has its good side... resizing to a smaller height, you will have bigger black borders.
Bigger black borders means more compression and smaller file sizes.

Now is up to you to choose your priority. If you need more compression go to the resize method.
If you ask me... I just don't like to watch a movie that has more borders then film. :mrgreen:

Bchteam 04-29-2003 02:48 PM

Hi Muaddib,

If I use GripFit everything works fine but I have those borders which I really don't want.So I go for your way but if I use BilinearResize and AddBorders I get this error Message from TMPGEnc:

"Floating decimal point is divided by 0"

My Source has a resolution of 640x272

How can I solve that???

jorel 04-29-2003 02:55 PM

8O
thank you muaddib

a complete lesson.
you turn it all very simple now.

if i was searching this explanations in
the avisynth.org i only got links to links. :roll:

for me is a complete tutorial,very clear!
wise is this:
few words,big explanations. 8)

:D

muaddib 04-29-2003 08:25 PM

Quote:

Originally Posted by Bchteam
Hi Muaddib,

If I use GripFit everything works fine but I have those borders which I really don't want.So I go for your way but if I use BilinearResize and AddBorders I get this error Message from TMPGEnc:

"Floating decimal point is divided by 0"

My Source has a resolution of 640x272

How can I solve that???

The problem is that your source is different than mine.
My source resolution is 640x346.
If you want to download the source I have... here it is



@jorel
:D :wink: :mrgreen:

Bchteam 04-30-2003 12:29 AM

Hi Muaddib,

Could you please tell me the Resize Settings for a 640x272 resolution,that would be very nice, but there should be no Borders in the output.

And how do you let MovieStacker do resize of Quicktime Movies???
MovieStacker cannot read Quicktime Files.

-Bchteam

muaddib 04-30-2003 12:57 AM

OK... I will show you how so you can make it by your self. :mrgreen:
Here is what you have to do:

1- Find your MOV resolution. QuickTime Player can tell you that.
2- Open MovieStacker and select any source you have.
3- Uncheck anamorphic and ITU-R options.
4- If your source is PAL, check the PAL option properly. (you can fid it in QT Player too)
5- Select source kind as 1:1 Monitor
6- Manually change the source resolution to the one you found with QuickTime Player.

That's it!
Now you can choose/change the destination as you want and MovieStacker will tell you the resize settings. 8)
Try it, and let me know if it works for you. :wink:


All times are GMT -5. The time now is 09:05 AM  —  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.