Quantcast Avisynth: Encoding a Video Twice to get Better Quality? - digitalFAQ.com Forums [Archives]
  #1  
04-16-2003, 07:30 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
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 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
__________________
greetz Kane
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-16-2003, 08:20 AM
digitalize digitalize is offline
Free Member
 
Join Date: Dec 2002
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3  
04-16-2003, 08:40 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
thx, i will make some samples to see, what gives me the best quality
__________________
greetz Kane
Reply With Quote
  #4  
04-16-2003, 09:54 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
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.


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()
__________________
greetz Kane
Reply With Quote
  #5  
04-16-2003, 10:10 AM
digitalize digitalize is offline
Free Member
 
Join Date: Dec 2002
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6  
04-16-2003, 10:15 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
is it possible to open an mpeg1 kvcd with dvd2avi 1.76?
i tried, but it did not work
__________________
greetz Kane
Reply With Quote
  #7  
04-16-2003, 10:22 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8  
04-16-2003, 10:29 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
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"?
__________________
greetz Kane
Reply With Quote
  #9  
04-16-2003, 10:38 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #10  
04-16-2003, 10:53 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
greetz Kane
Reply With Quote
  #11  
04-20-2003, 04:25 AM
PyRoMaNiA PyRoMaNiA is offline
Free Member
 
Join Date: Jan 2003
Location: a PAL land (UK)
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
LoadPlugin("E:\MPEGDecoder.dll")

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

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.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Video quality comparison (objective and subjective) GFR Avisynth Scripting 1 01-26-2006 09:10 AM
Avisynth: Best quality script for 352x240 Bad quality movies!? gq Avisynth Scripting 4 05-29-2003 05:43 AM
How to make short sample video to see quality of Avisynth script? MenderOne Avisynth Scripting 3 05-21-2003 01:02 AM
Recording Video: IVTC poor quality video? segfault Video Capturing / Recording 5 01-13-2003 02:52 PM
Encoding into the best video quality possible? Wolfi Video Encoding and Conversion 6 10-16-2002 08:02 AM

Thread Tools



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