digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   TMPgenc problem, encode takes too long? (http://www.digitalfaq.com/archives/encode/7883-tmpgenc-problem-encode.html)

edmund 01-24-2004 02:40 PM

TMPgenc problem, encode takes too long?
 
OK I have a video that is NTSC and it is interlaced. In DVD2AVI i used force film. Now i am using the latest optimal script here it is:

Code:

## DLL Section ##
#
LoadPlugin("D:\movies\programs\MovieStacker\Filters\MPEG2Dec3.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\GripFit_YV12.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\STMedianFilter_2.53.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\asharp.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\unfilter.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\UnDot_2.53.dll")
#INTERLACED??
#LoadPlugin("D:\movies\programs\MovieStacker\Filters\Decomb510.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\SmoothDeinterlacer.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("H:\movies\time\time.d2v")
#
undot()
Limiter()
asharp(1, 4)
ConvertToYUY2()
Smoothdeinterlace(doublerate=true, TFF=true, blend=false).selectodd()
ConvertToYV12()
#FieldDeinterlace(full=false)
GripCrop(528, 480)
GripSize(resizer="BicubicResize")
STMedianFilter(3, 3, 1, 1 )
MergeChroma(blur(1.5))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual )
# This will apply variable temporalsoften
# and variable blur.
# Both filters are active at all times, and work inversely proportional to the
# activity, measured from current frame to next frame.

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()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()
#ConvertToYUY2()

#
#
## Functions ###

function fmin( int f1, int f2) {
  return ( f1<f2 ) ? f1 : f2
}

#
####

Now when i test it in wmp, it seems fine, even tho the play back in wmp sucks.
Ok so now i when and picked my template
kvcdx3. and selected the options that i think are correct. ( do i select fast motion search?)

and then i went to CQMatic and wanted to just do prediction
Movie times is 108. Average Bitrate is 911.
And then i hit start.
Now TMPgenc starts up and for the x1 prediction it says it's going to take 1hour and 30minutes??
that has never happened to me before. What do think the problem could be??
and what is the best settings for a DVD source. I can't find anything useful
Also, how do i down sample my audio to 23.976?? because since i did force film? or does DVD2AVI to that to the audio automatically?
thanks so much
cheers![/code]

Dialhot 01-24-2004 02:52 PM

:arrow: Deinterlacing is a great time eater operation

edmund 01-24-2004 03:09 PM

Thanks for the reply.
Do i really need to deinterlace the video?
or no??

also. I am trying to make the mp2 file from headache, and it keeps coming up with this message

"Bad Syncword at frame 33!"

but i am using the right ac3 file right from the movie? what is going on.

incredible 01-24-2004 10:42 PM

I dont understand your workout! As its defenitely NOT logic.

You use forced film on a 29.976, ... well so ....
does that movie in DVD2AVI preview NOT contain combed artifacts in motion areas? If not :arrow: NO deinterlacing is needed as you just can reencode at 23.976 using the pulldown-flag

IF you really got interlaced areas ... then I'd like to know what type of movie you got? IF its a Blockbuster, means a hollywood movie shot on FILM in its original state then you deal with a telecined movie (would mean a very bad mastered movie DVD!) and you should NOT use forced film but that line in your AVS.

Telecide().decimate()

If its a documentation etc. shot on fieldbased Video Material at real 29.976 interlaced, you should apply that one:

http://www.kvcd.net/forum/viewtopic.php?t=8678

That function converts 29.97interlaced to 23.976 progressive, ready to encode also at 23.976 and pulldown flag

And please do delete the following lines:
Code:

## DLL Section ##
#
LoadPlugin("D:\movies\programs\MovieStacker\Filters\MPEG2Dec3.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\GripFit_YV12.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\STMedianFilter_2.53.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\asharp.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\unfilter.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\UnDot_2.53.dll")
#INTERLACED??
#LoadPlugin("D:\movies\programs\MovieStacker\Filters\Decomb510.dll")
LoadPlugin("D:\movies\programs\MovieStacker\Filters\SmoothDeinterlacer.dll")

No more LoadPlugin needed cause of AVS 2.5x automatic detection of dll's if put in the PlugIns Folder of Avisynth 2.5x


Code:

MergeLuma(blur(0.1))
Also get rid of that extra luma blurring as the new MA now unfilter()'s continously and that would mean a double blur on slow motion areas.


BTW: If using a deinterlacer if really needed, EVERYTIME let it perform right after the sourceimport! In this case says after the mpeg2source() line

edmund 01-25-2004 05:04 AM

Thanks for the reply, but i thought you could only use The pull down flag, with Mpeg2?? am i wrong.

Incredible: the source I have is a BlockBuster Movie. (action)
I just want to make sure that the audio and video are in sync and that it plays on my dvd player, becasue i read a post and Kwag said that it has to be deinterlaced to work with kvcd.
I think i might just screw this video, and try soemthing else

thanks again.

incredible 01-25-2004 05:51 AM

1. Its better to encode 23.976 mpeg2 than 29.97 mpeg1! As 29.97 gots much more movieinformation.

2. According to deinterlacing on Blockbuster movies which have ben shot on film, I explained you above that there souldn't be any deinterlacing needed in regular (even if DVD2AVI "just" says its interlaced). So you should use forced film and reencode at 23.976.

So as my question is still unanswered:
Do you really see combing artefacts in the preview of DVD2AVI??????

edmund 01-25-2004 12:36 PM

Thanks for the reply.
What i see is these lines through out the video. I am assuming that's what you are talking about.
Kinda like the pictures that you posted with the chick and the food.
I don't have a lot of time, other wise i would take a picture of it. sorry

thanks

incredible 01-25-2004 05:43 PM

If you got these artifacts, then do not choose forced film and choose directly after the import line in avisynth...

telecide().decimate, which restores to the 23.976 as THAT movie you mention is bad DVD mastered.

Which company Logo is on that DVD case?
Warner Bros., 20th CenturyFox, Paramount???


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