PDA

View Full Version : howto 1080p24 -> anamorph 720x480 29,97fps ?


gigah72
11th October 2008, 09:38
hello,

is there a way to this in avisynth?

thanx in advance

Adub
11th October 2008, 10:13
Well, may I ask why you need the framerate to change? Is it because you need it to be dvd spec?

Essentially, all you need to do is to downsize to 480p, and then you can use dgpulldown to get you to 480i.


So, Lanczos4resize(720,480) your way down to your desired resolution. If you need to keep the aspect ratio, we will need more information. You can encode this to mpeg2 and then use dgpulldown to place pulldown flags to get you up to 29.97fps.

gigah72
11th October 2008, 11:00
yes, i'd like to be dvd compliant.
and i want to keep the aspect ratio, too.
i want to make some tests with some of my movies i have for both formats (hd-dvd & dvd) at different codecs/formats.

ps
dgpulldown is only for mpeg2 ES?
i would like to feed 3:2 stream to encoder, like xvid, x264, hc-enc, etc.
is this possible?

vampiredom
11th October 2008, 11:18
You can apply "hard telecine" 3:2 pulldown with something like this:

SeparateFields().SelectEvery(8, 0,1, 2,3,2, 5,4, 7,6,7).Weave()

I don't really know why you'd want to, though. If you encode for DVD in HC, it will add the pulldown flags to 24p output for you.

scharfis_brain
11th October 2008, 11:59
all you have to do in avisynth will be this:

blahsource("blahvideo.blah") # load video, alter it to your preffered way (most probably mpeg2source)
(height==1088) ? crop(0,0,0,-8) : last # crop off 8 pixels of junk, if present
#converttoyuy2() #uncomment this if you use CCE, ProCoder, TMPGenc or any other commercial encoder
bicubicresize(704,480) #resize to D1-resolution with correct AR
#addborders(8,0,8,0) # add borders left & right, only if you really need 720x480

this you can feed into any mpeg2 encoder.
just set it to 23.976fps progresive and 16x9 anamorphic
the resulting m2v file can be pulled through dgpulldown to set the proper pulldown flags to make it compatible with DVD and 59.94Hz.

Undead Sega
11th October 2008, 17:36
What is your source first may i ask?

vampiredom
11th October 2008, 19:44
I actualy think the dgpulldown step in unnecessary: AFAIK, all of the encoders mentioned (except perhaps TMPEG?) have the ability of adding pulldown flags for 23.976 fps content.

If you'd like to verify this, download GSpot and have a look at the pulldown flags in your elementary .m2v file.

gigah72
15th October 2008, 10:17
the resizeing to 704x480 and setting 16:9 NTCS in xvid works correct (big thx!), but if i watch this on my player, i get stuttering on slow cam-moves @23,976fps. would this stutter vanish, if i'd encode to 29,97fps and how to achive this?
(my tv is capable of 24p (panasonic px80), the player is panasonic dvd-s54)

vampiredom
15th October 2008, 10:46
Why xvid? If you plan to watch it on your DVD player, why not encode as MPEG2?

gigah72
15th October 2008, 10:49
why not, if i can?

vampiredom
15th October 2008, 17:28
Because you're (apparently) having stuttering issues with xvid @ 23.976 fps that you would not otherwise have with MPEG2?? Also, MPEG2 is supported by all DVD player while xvid works only with a few. The last thing you should do is "hard-telecine" your 24p sources... especially if you have a progressive scan TV.

Try using HC Encoder. I bet your problems will go away.

setarip_old
15th October 2008, 17:59
@gigah72

Hi!i get stuttering on slow cam-moves @23,976fpsWould you please load one of these into GSpot and post a screen capture back here?

gigah72
15th October 2008, 19:33
@gigah72

Hi!Would you please load one of these into GSpot and post a screen capture back here?

here it is, i hope this helps.

http://img528.imageshack.us/img528/2140/stutterie2.th.png (http://img528.imageshack.us/my.php?image=stutterie2.png)http://img528.imageshack.us/images/thpix.gif (http://g.imageshack.us/thpix.php)

manono
16th October 2008, 21:06
It was encoded using Q-Pel which isn't supported by most players. And it has packed bitstream which can cause stuttering. My conclusion is that your stuttering has nothing to do with the framerate (assuming 23.976fps is the correct framerate). Also, since 704x480 isn't 1:1, unless your standalone player can read the DAR flag, it may play with bad AR (people looking very tall and thin).