digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: Bad encoding ... why? (http://www.digitalfaq.com/archives/encode/11826-kvcd-bad-encoding.html)

password 08-29-2004 07:39 PM

KVCD: Bad encoding ... why?
 
i have a few movies lately that when encoded it plays back choppy and blury like it is missing some frames and only has happened to these movies "the matrix , butterfly effect , and taking lives". has anybody experience this problem too? all other movies i tryed comes out fine. this is getting very frustrating cause i encoded 8 times total and getting bad results from dvd sources. i dont understand. how to i overcome this problem? PLEASE HELP!

Prodater64 08-29-2004 07:46 PM

Re: bad encoding why
 
Quote:

Originally Posted by password
i have a few movies lately that when encoded it plays back choppy and blury like it is missing some frames and only has happened to these movies "the matrix , butterfly effect , and taking lives". has anyboy experience this problem too. all other movies i tryed comes out fine. this is getting very frustrating cause i encoded 8 times total and getting bad results from dvd sources. i dont understand. how to i overcome this problem? PLEASE HELP!

Hi: Please post all data needed. Source type, interlaced or progressive, anamorphic or not, source and target fps, encoder, etc., etc., etc.

black prince 08-29-2004 07:48 PM

@password,

We need more detail to begin helping you :roll:

If your source is DVD, then show your avs script file.
What steps were used, like DVD Decrypter, DVD2AVI (give version),
Moviesatcker settings, etc.

-BP

password 08-30-2004 12:51 AM

sorry guys. :oops: here it is

ntsc dvd
- interlaced: not interlaced
- dvd decrypter 3.2.3.0
- dvd2avi 1.76 by LOLI.J

DESTINATION:

- KVCD
- Mode: mpeg 1
- Framerate: 23.976
- Resolution: 352x240
- Audiosamplerate: 44.1 khz
- Audio Enc Type: mp2
- Encoding Appl: TmpgEnc
- muxing Appl: BBmpeg
- Authoring Appl: Vcdeasy
- Burning Appl: Nero

Avisynth Version

- 2.5

Script used

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("D:\DVD_VIDEO\THE_MATRIX\DVD2AVI_Proje ct_file.d2v")
#
undot()
asharp(1, 4)
Gripcrop(352, 240,overscan=1,source_anamorphic=true)
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!

#
#
## Functions ###

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

#
####

Prodater64 08-30-2004 05:55 AM

Quote:

Originally Posted by password
sorry guys. :oops: here it is

ntsc dvd
- interlaced: not interlaced
- dvd decrypter 3.2.3.0
- 1.75 by LOLI.J

1 - When you said 1.75, is it DVD2AVI? If it is yes, you need to update to 1.76 or 1.77dg.

2 - You don't mention source fps. It can to be 29.970 and if it isn't interlaced, then is telecined. You must to do inverse telecine if it is the situation.

Dialhot 08-30-2004 05:58 AM

Quote:

Originally Posted by Prodater64
1 - When you said 1.75, is it DVD2AVI? If it is yes, you need to update to 1.76 or 1.77dg.

He does a mistake. The "loli" version is the 1.77.3 and that is a correct version to use.

black prince 08-30-2004 02:58 PM

@password,

What settings were used with dvd2avi for audio and video. :?:

-BP

password 08-30-2004 03:10 PM

oops i use the dvd2avi 1.76 by LOLI.J version and the settings are defalt

password 08-30-2004 09:32 PM

Prodater64 wrote
Quote:

2 - You don't mention source fps. It can to be 29.970 and if it isn't interlaced, then is telecined. You must to do inverse telecine if it is the situation.
i am encoding at 23 fps and dvd2avi says it is not interlaced. i dont understand telecline part.

Prodater64 08-30-2004 09:52 PM

Quote:

Originally Posted by password
i am encoding at 23 fps and dvd2avi says it is not interlaced. i dont understand telecline part.

I'm beg your perdon, don't understand you.
You are encoding to 23.976, but from? DVD2AVI say you your source fps (framerate).

password 08-30-2004 10:08 PM

dvd2avi says it is not interlaced and 29.970 fps so if i understand right i have to change to inverse telecine in TEMPGEnc , right?

Prodater64 08-30-2004 10:34 PM

Quote:

Originally Posted by password
dvd2avi says it is not interlaced and 29.970 fps so if i understand right i have to change to inverse telecine in TEMPGEnc , right?

Yes, it is.

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

http://www.kvcd.net/forum/viewtopic....telecine#93943

Quote:

Originally Posted by Incredible
Telecide, Decimate are part of the decomb-package to be found at:
http://www.avisynth.org/warpenterprises/


password 08-31-2004 02:01 AM

thanx Pro but, do i have to edit my script? if so, what exactly do i add and exactly where?

Dialhot 08-31-2004 03:09 AM

Do you read the post of Pro ? He gave you links where ALL is said !
(the second one).

You can also encode it in 29.970 and don't bother with the fps change even if it is not optimal.

password 08-31-2004 05:05 AM

i am not trying to convert to pal and my source is not an .avi so where am i supposed to put this

Avisource(D:\Your_Path_to\Your_29.97fps_AVI_File.a vi)
Telecide()
Decimate()
LanczosResize(....PAL Resolution out of FitCD or Moviestacker....)
AssumeFPS(25.000, true)
SSRC(44100)

or this

Avisource(D:\Your_Path_to\Your_23.976fps_AVI_File. avi)
LanczosResize(....PAL Resolution out of FitCD or Moviestacker....)
AssumeFPS(25.000, true)
SSRC(44100)

into this

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
LoadPlugin("C:\Filters25\Decomb511.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("D:\DVD_VIDEO\THE_MATRIX\DVD2AVI_Proje ct_file.d2v")
#
undot()
asharp(1, 4)
Gripcrop(352, 240,overscan=1,source_anamorphic=true)
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!

#
#
## Functions ###

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

#
####

Dialhot 08-31-2004 05:12 AM

Quote:

Originally Posted by password
Avisource(D:\Your_Path_to\Your_29.97fps_AVI_File.a vi)
Telecide()
Decimate()
LanczosResize(....PAL Resolution out of FitCD or Moviestacker....)
AssumeFPS(25.000, true)

As you are not doing PAL, you just have to remove the "assumeFPS" line. That is a legitimate question (forget also the SSRC line)

For the rest, I think you can figure by your own where the lines have to be added and adapt the script by yourself. I don't think it isn'thard to understand that "Avisource" is the equivalent to "Mpeg2Source" when you source is an avi and not a DVD.

Else I strongly suggest you to read a little bit avisynth pages here :
http://www.avisynth.org/index.php?page=YourFirstScript
You already added the loadplugin line, just continue ;-)

password 08-31-2004 05:35 AM

thanx Phil i just took a look at dvd2avi and this is what i got in the statistics window

aspect ratio: 16:9
frame rate: 23.976fps
video type: film
frame type: progressive

i was almost possitive the frame rate before was 29.97 fps
there was a few time i used dvd2avi and got 23.976 and thought it was an error and closed the program and reloaded the .vob again and got 29.79
(do you think thats my problem that dvd2avi saved it as 29.97 fps when it was supposed to be 23.976?)

P.S. my script should look like this, right?

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
LoadPlugin("C:\Filters25\Decomb511.dll")
#
####
## Main section and static filters ###
#
Mpeg2Source("D:\DVD_VIDEO\THE_MATRIX\DVD2AVI_Proje ct_file.d2v")
#
LanczosResize()
undot()
asharp(1, 4)
Gripcrop(352, 240,overscan=1,source_anamorphic=true)
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!

#
#
## Functions ###

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

#
####

Dialhot 08-31-2004 05:40 AM

Quote:

Originally Posted by password
thanx Phil i just took a look at dvd2avi and this is what i got in the statistics window

aspect ratio: 16:9
frame rate: 23.976fps
video type: film
frame type: progressive

i was almost possitive the frame rate before was 29 fps

That is the indication of something that has a soft 3:2 pulldown.
Check the source with DVDPatcher, and you will be sure.

In this case, you don't have to do anything on the fps because your source IS 23.976, and so have the correct framerate !

Quote:

P.S. my script should look like this ,right?
No :!:
You use 2 resizer :-(

Trust me, stop doing blindly things you read but not understand a little. Go on avisynth site and read a little the doc. You won't lose your time.

password 08-31-2004 05:55 AM

sorry Phil but i dont know what exactly to read :cry:

password 08-31-2004 06:43 AM

HURRRAY!!!! found my problem. :D i ran dvd2avi and saved the project and the frame rate was at 23.976 (last time it saved at 29.97) and did a test encoded and it was all good. thanx for everyones help :D


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