digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Converting 29fps to 24fps with pulldown flag Saves space? (http://www.digitalfaq.com/archives/encode/7267-converting-29fps-24fps.html)

audi2honda 12-18-2003 03:25 PM

Converting 29fps to 24fps with pulldown flag Saves space?
 
with the same quality?

I have a concert DVD with 20 year old footage on it that is all interlaced.

If I use telicide()/decimate() or fielddeinterlace() and convert it to 23.9fps then use the 2:3pulldown flag will this lower the quality or cause any studdering, because it looks like it will save a ton of space.

The original DVD is 6GB, but it is coming in under 4GB after applying these filters and sampling.

Does this sound right or am I missing something here?

Thanks guys!

kwag 12-18-2003 04:27 PM

Re: Converting 29fps to 24fps with pulldown flag. Saves spac
 
Quote:

Originally Posted by audi2honda
with the same quality?

I have a concert DVD with 20 year old footage on it that is all interlaced.

If I use telicide()/decimate() or fielddeinterlace() and convert it to 23.9fps then use the 2:3pulldown flag will this lower the quality or cause any studdering, because it looks like it will save a ton of space.

The original DVD is 6GB, but it is coming in under 4GB after applying these filters and sampling.

Does this sound right or am I missing something here?

Thanks guys!

Hi audi2honda,

I tried the convert60ito24p script, and all I can say is that it's awesome.
Here's a sample of a pure interlaced 29.97fps DVD concert of "Styx", which I encoded at 352x480 (too active to use higher resolutions for one CD), and I got it on one CD (KVCD) with reasonable good quality at 23.976fps.
Here's a sample, so see for yourself :D
http://www.kvcd.net/styx-sample-29.97_to_23.976.mpg

This is the script I used for that concert:
Code:

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
 

#
Mpeg2Source("F:\Movie\styx.d2v")

bob()
converttoyuy2().convert60ito24p(2,0).converttoyv12()

BicubicResize(336, 448, 0, 0.6, 0, 0, 720, 480)
STMedianFilter(3, 3, 0, 0 )
MergeChroma(blur(1.5))


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)  ")


AddBorders(8, 16, 8, 16)


 
#
############### 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)
}
#################################

#
#
## Functions ###

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

So if your target will be KDVD, the results should be awesome, and your concerts will look like FILM :mrgreen:

-kwag

audi2honda 12-18-2003 04:37 PM

That looks excellent!!

Thanks a ton for the info and the script

kwag 12-18-2003 04:45 PM

Now we can enjoy FILM (look) quality from 29.97fps Videos :mrgreen:
Note: Not to be confused with telecined material :!:
If your source is FILM (such as a DVD), it's better to process as usual using "Force FILM" in DVD2AVI or using Telecide() and Decimate() in a script.
The script convert60ito24p is to be used on 100% Interlaced material ONLY :!:

-kwag

incredible 12-18-2003 04:46 PM

Quote:

Originally Posted by Audi2Honda
have a concert DVD with 20 year old footage on it that is all interlaced.

If I use telicide()/decimate() or fielddeinterlace() and convert it to 23.9fps then use the 2:3pulldown flag will this lower the quality or cause any studdering, because it looks like it will save a ton of space.

If its really interlaced and produced on Video and NOT film, this would result in a chaos if you would just apply a telecide().decimate() cause there aren't any original 23.976 frames to restore cause they did never exist ;-) !

So the function of sharfis_brain at doom9.de as shown here by Kwag is a little new milestone according to gain compression in case of 29.976 Video NTSC sources when encoding them to KVCD.

EDIT: Uops Kwag replied faster ;-)

Quote:

Originally Posted by Kwag
converttoyuy2().convert60ito24p(2,0).converttoyv12 ()

Kwag did you try to let MA do the job directly after Bob()?

Because this would avoid that much colorspace conversions.

so ...

- import your 4:2:0 YV12 based interlaced source
- bob()
- BicubicResize(336, 448, 0, 0.6, 0, 0, 720, 480) .STMedianFilter(3, 3, 0, 0 ) .MergeChroma(blur(1.5))
- MA (on still 29,976)
- converttoYUY2()
- convert60ito24p

:?:

Or if that not works maybe MA on fields...

- import your 4:2:0 YV12 based interlaced source
- separatefields()
- BicubicResize(336, 224, 0, 0.6, 0, 0, 720, 240) .STMedianFilter(3, 3, 0, 0 ) .MergeChroma(blur(1.5))
- MA (on still 29,976) (as shown by boulder in his interlaced MA thread)
- Weave()
- bob()
- converttoYUY2()
- convert60ito24p

:?:

Maybe this would gain the quality even a bit more?
(just a very very fast thought ;-) )

EDIT: Nope! ;-) As your mpeg anyhow will be encoded at YV12 ... my thought don't make sense, or am I totally confused now?? 8O
(Maybe still to much aspectratios-subjects in my brain *lol*)

Or maybe your PVR 250 can capture at 4:2:2 YUY2?

kwag 12-18-2003 05:10 PM

Quote:

Originally Posted by incredible
Quote:

Originally Posted by Kwag
converttoyuy2().convert60ito24p(2,0).converttoyv12 ()

Kwag did you try to let MA do the job directly after Bob()?
Because this would avoid that much colorspace conversions.

I know, but I had to do that (in this particular case), because I got colorspace errors if I didn't put the convertX lines there.
But that was just an example, which worked for me, but I know it can be further organized much better :) ( Even using another deinterlacer, because Bob() is considered a "stupid" deinterlacer :lol: )


-kwag

m0rdant 12-18-2003 05:57 PM

I have a bunch of Kung Fu flicks that are 100% interlaced...Would using the covert60ito24p screw up the timing for subtitles do you think?

audi2honda 12-18-2003 06:40 PM

actually yea good point, my concert dvd has subtitles. Will they get messed up if I convert to 23.9fps?

audi2honda 12-18-2003 07:45 PM

Kwag,

I'm having doubts about what my concert DVD really is. How can I tell if it is true 29fps Video or 60fps IVTC? It was orginally shot and aired on TV if that matters.

I get all this IVTC, 3:2, 2:3 pulldown mixed up no matter how many times I read about it. Any tips for determining exactly what my video content is?

kwag 12-18-2003 08:59 PM

Hi audi2honda,

Load your VOBs in DVD2AVI, and press F5.
See if you get this:

http://www.digitalfaq.com/archives/error.gif

That's what you get if your concert is true interlaced video.

Edit: This site might shine some light ( or headaches :lol: )
http://www.100fps.com

-kwag

vmesquita 12-20-2003 07:51 AM

Sometimes even telecined matherial is encoded as interlaced in the original (example Simpsons Season 1 NTSC). So the best way to check is leave forced film unchecked and open the AVS containig the d2v line in virtual dub. Find a high action scene and check if there's this sequence: 3 progressive frames, 2 interlaced frames, 3 progressive frames, 2 interlaced and so on. If it does, it's telecined matherial.


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