digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Encoding a video twice to get better quality? (http://www.digitalfaq.com/archives/avisynth/3278-avisynth-encoding-video.html)

Kane 04-16-2003 07:30 AM

encoding a video twice to get better quality?
 
iīve got a video file, which is actually more noise, blocks and artifacts than movie. i tortured this file with a script with nearly every filter i know, it took tmpgenc 21hours 8O 8O 8O to encode.
the result is very good, no more artifacts , reduced noise, but itīs still unsharp as hell.

is it worth encoding the file a second time to sharpen it?
never encoded a movie twice, and i donīt want to wait another 21hours to find out, the image is not better than before

could you suggest a filter to use (unfilter, sharpen, or something else)?

thanks in advance

digitalize 04-16-2003 08:20 AM

I had good results running a sharpening filter over a previously encoded mpeg2 video. I did not change any settings in TMPGEnc, left them identical to the first encode. I just removed all of the other filters out of the script and added the sharpening filter. Unfilter is a fast sharpening filter you could try.
It should not take 21 hours if you are using only Unfilter in the script. The stronger you set the sharpening the longer it will take though.

Kane 04-16-2003 08:40 AM

thx, i will make some samples to see, what gives me the best quality

Kane 04-16-2003 09:54 AM

hmm, next problem

i created a .d2v file with the mpegdecoder.dll for my kvcdx3 mpeg file, and made a new script.
when loading this into ToK , it shows me

length: 40min

but the whole video lasts 90min.
:cry: :?

i used this to create the d2v file

Code:

LoadPlugin("E:\MPEGDecoder.dll")

MPEGSource("E:\nightwish sample.mpg")


and this one to encode

Code:

#==============================================#
# -= AviSynth script by MovieStacker v1.1.1 =- #
#==============================================#

LoadPlugin("E:\Appz\MovieStacker\Filters\MPEG2Dec.dll")
LoadPlugin("E:\Appz\MovieStacker\Filters\GripFit_preview.dll")
LoadPlugin("E:\Appz\MovieStacker\Filters\LegalClip.dll")
LoadPlugin("E:\MPEGDecoder.dll")

MpegSource("E:\nightwish sample.d2v")
LegalClip()
GripCrop(528, 576, overscan=2, source_anamorphic=false)
GripSize(resizer="BicubicResize")
GripBorders()
LegalClip()


digitalize 04-16-2003 10:10 AM

There are some issues with MPEGDECODER that are discussed at Doom9.org. I do not know if that is one of them. Try using DVD2AVI version 1.76 to create your D2V file.

Kane 04-16-2003 10:15 AM

is it possible to open an mpeg1 kvcd with dvd2avi 1.76?
i tried, but it did not work

kwag 04-16-2003 10:22 AM

Quote:

Originally Posted by Kane
is it possible to open an mpeg1 kvcd with dvd2avi 1.76?
i tried, but it did not work

No. It won't work. However, you can open it with Vdub and then frameserve to TMPEG :!:
Note on re-encoding: If you re-encode an mpeg file, every time you re-encode, you add one layer (generation) on encoding over the prior encode, and the result will be worse every time. Just like if you make a copy of a VHS, and then again make another copy of the copy, the result will always be worse. And so on...

-kwag

Kane 04-16-2003 10:29 AM

Quote:

Originally Posted by kwag
No. It won't work. However, you can open it with Vdub and then frameserve to TMPEG :!:
-kwag

aha,
what must i do, to "frameserve to TMPGENC"?

kwag 04-16-2003 10:38 AM

Quote:

Originally Posted by Kane
aha,
what must i do, to "frameserve to TMPGENC"?

Open your mpeg-1 file with Vdub, and then click on "Start Frame Server..". Read Vdub help's screen. It's all detailed there.

-kwag

Kane 04-16-2003 10:53 AM

to be honest, i do not understand a single word of the vdub "help"

i guess, i have to try it again with mpegdecoder, it has worked before, so it has to work now, too :?

PyRoMaNiA 04-20-2003 04:25 AM

Quote:

LoadPlugin("E:\MPEGDecoder.dll")

MPEGSource("E:\nightwish sample.mpg")
You're supposed to put the total number of frames when using MPEGSource. :wink:

So your script should look like this:
Code:

LoadPlugin("E:\MPEGDecoder.dll")

MPEGSource("E:\nightwish sample.mpg", #)

Where # equals the total amount of frames. Open in in VDub to find out.


All times are GMT -5. The time now is 08:40 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.