digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KDVD: Poor quality on sports programs, even with simple AVS (http://www.digitalfaq.com/archives/encode/7406-kdvd-poor-quality.html)

gosens 12-29-2003 12:00 AM

KDVD: Poor quality on sports programs, even with simple AVS
 
I am converting some dvb captures of hockey to dvd. However no matter what avs filter I seem to use, the panning of the camera and fast-moving players cause wobbly legs / flickering doubles, horizontally. This happens along the boards/glass and the players as they skate. Very distracting.

The original captures being transport stream mpeg-2 do not have this problem of course.

I have tried vmesquita's kdvd filters, and thought one of the filters might have been causing it so I did a simple script like this:

movie="hockey.d2v"
MPEG2Source(movie)
GripCrop(352,480)
GripSize(resizer="BicubicResize")
GripBorders()
converttoyuy2()

Using tmpg I kept cq at 100. Still, the horizontal flicker.

I thought by using the minimum amount of script and keeping it 100%, the problem would be gone but apparently that doesn't solve it.

Would anyone have any suggestions on filters that might fix this, or a different procedure to use? What would be causing this if not the AVS? I also tried the CCE demo and it did the same thing.

Thank you,

gosens

kwag 12-29-2003 12:39 AM

Hi gosens,

Because you are encoding live sports, they were probably shot "VIDEO". Not FILM.
So you are encoding at 29.97fps Interlaced, instead of 23.976fps, right :?:

-kwag

gosens 12-31-2003 11:30 AM

Thanks for the quick response, kwag... yes it was encoded at 29.97 NTSC, interlaced, 352x480, 4:3, and 2500 kbps.

Any other suggestions appreciated...

thanks

incredible 12-31-2003 12:07 PM

Quote:

Using tmpg I kept cq at 100. Still, the ...
In which mode you're encoding??? I assume mpeg2!! or not???

gosens 01-01-2004 11:11 AM

Quote:

Originally Posted by incredible
In which mode you're encoding??? I assume mpeg2!! or not???

yes of course, mpeg2. using TMPG encoder or CCE, the same thing happens. Has anyone out there successfully encoded sports?

incredible 01-01-2004 12:34 PM

Seems to me like encoding using the wrong fieldorder.
Try one sample using bottom field first.

gosens 01-01-2004 01:39 PM

de-interlace!
 
I have solved the problem! After digging through the forums I tried de-interlacing, and it seems to have done the trick with only a little loss of picture quality (a touch blurry).

FieldDeinterlace(blend=true)

Thanks to kwag and incredible for their suggestions. Incredible - I didn't try your field order suggestion (don't know how anyhow) but the de-interlacing worked so all is well.

gosens

incredible 01-01-2004 02:43 PM

BUT if you got a 29.976 "VIDEO NTSC" interlaced movie ... you shouldn't only deinterlace it, also do a conversation to 23.976 FPS! By this you get a real 23.976 "FILM NTSC" progressive compatible movie and it still looks very fine! Cause encoding at 29.976 needs to much bitrate.

This here IS NOT INVERSE-TELECINING! It just treats the "real" 29.976 FPS so that they become no stuttering/jerky but smooth motion looking 23.976 FPS. Just to avoid misunderstandings.


So use this script


Code:

MPEG2Source("hockey.d2v")
FieldDeinterlace(full=false) # or other prefered de-interlacers
convert60ito24p(2,0) # This calls the function below!
GripCrop(352,480)
GripSize(resizer="BicubicResize")
GripBorders()
converttoyuy2()
#
############### the function #############
#
function convert60ito24p (clip video, int mode, int offset)
{
work = assumefieldbased(video)
out = (mode==2) ? interleave(
\selectevery(
\layer(trim(work, 1, 0),
\layer(work, trim(work, 2, 0), "fast"),
\"fast"), 5, 0 + offset),
\selectevery(
\layer(work, trim(work, 1, 0), "fast"), 5, 3 + offset)) :
\    (mode==1) ? interleave(
\selectevery(trim(work, 1, 0), 5, 0 + offset),
\selectevery(layer(work, trim(work, 1, 0), "fast"), 5, 3 + offset)) :
\    (mode==0) ? selectevery(work, 5, 1 + offset, 4 + offset) : work
assumeframebased(out)
}
#################################

In Fielddeinterlace() I would recommend also to use full=false, so only the combed(moving) parts of the movie will be de-combed!
BTW blend=true .. is also in the default of fielddeinterlace() so it's not needed to be set in the command.


You also can safe this function alone as a "convert60ito24p.avsi" to your AVS2.5x Plugins folder (beggining at the line "############### the function ############# ")
So it will be avaiable everytime you start a script and its just needed to give your Script the command as shown above without everytime copy/pasting the whole function to all your scripts.

convert60ito24p(2,0)

gosens 01-01-2004 10:54 PM

Thanks incredible, I'll try that tonight.

I'm still new to avs filters so now that i'm through the first step of getting the file converted in a satisfactory condition with a fairly simple script, i will start learning about the filters to try to increase the quality while decreasing the file size and encryption times.


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