digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   How to change frame rates using Avisynth with audio in sync? (http://www.digitalfaq.com/archives/avisynth/7283-how-change-frame.html)

rs008f 12-19-2003 10:58 PM

How to change frame rates using Avisynth with audio in sync?
 
I have some Divx/Xvid files with unusual frame rates such as 19.2 fps, 24.3 fps, 30 fps. I need to convert them to NTSC compatible frame rates such as 23.976 fps or 29.97 fps while keeping the audio in sync. How can I do this with Avisynth? What are the command lines? I'm gonna use the scripts with CCE to convert to MPEG-2.

CheronAph 12-20-2003 02:36 AM

Try besweet, download the GUI too!
http://dspguru.doom9.org/

Dialhot 12-20-2003 04:23 AM

No need to use a guide : use tmpgenc for encofing both audio AND video together. All will be in synch.

CheronAph 12-20-2003 04:57 PM

Quote:

Originally Posted by Dialhot
No need to use a guide : use tmpgenc for encofing both audio AND video together. All will be in synch.

Too easy! :D

rendalunit 12-23-2003 10:24 PM

Will it still be in synch if you set tmpgenc to call toolame for audio?

Dialhot 12-24-2003 04:20 AM

Quote:

Originally Posted by rendalunit
Will it still be in synch if you set tmpgenc to call toolame for audio?

For sure not. That's exactly the same as doing the audio apart by yourself.

Gaudi 12-24-2003 01:01 PM

It is a good idea to use the AssumeFPS function in Avisynth. So you use the same frames as in the original and do not do framerate conversion on video.
Then, use Besweet to change framerate of audio stream.

Of course, you will have to encode the audio and video separately, and the lenght of the movie may change a little, but as for me, this is still the best way.


Hope it helps.


Gaudi

bigfif 01-02-2004 07:48 AM

Inserting AssumeFPS in my NTSC AVI scripts cause an illegal pointer error in TMPGENC (avisynth 2.53) ??

Dialhot 01-02-2004 08:11 AM

And that do not do anything on my PC (I just did it yesterday).

bigfif 01-02-2004 08:19 AM

AssumeFPS(25) is Ok

AssumeFPS(25.000,true) generates illegal pointer error, this syntax seems to be ok with the documentation so what was wrong ?

incredible 01-02-2004 09:52 AM

Which Audio codec contains your source??? This may cause your problem.

Dialhot 01-02-2004 10:02 AM

Quote:

Originally Posted by bigfif
AssumeFPS(25.000,true) generates illegal pointer error, this syntax seems to be ok with the documentation so what was wrong ?

Incredible answered to your question (by an other question in fact :-)) but I just wanted to say it's not a good idea to convert 23.976 -> 25 ! Generally we try to do the opposite ! NTSC video are far more compressed du to their lower resolution and framerate. For a NTSC video encoded with CQ75, you will do the same in PAL with a CQ of 65 !

bigfif 01-02-2004 11:22 AM

The source codec is Divx5

I've a toshiba sd210 DVD player on an old TV set that does not support NTSC !

That's why, I want to do NTSC2PAL (on old cartoons for my sons)

I've just try assumefps(25) and audio is out of sync

Dialhot 01-02-2004 11:42 AM

Quote:

Originally Posted by bigfif
I've a toshiba sd210 DVD player on an old TV set that does not support NTSC !

And this old tv does not support RGB either ? Because the tosh can outpu in RGB, no ? And in this mode, there is no PAL/NTSC problem.

Quote:

've just try assumefps(25) and audio is out of sync
That's normal. As said in the doc the ",true" means "keep audio in synch" :-)

bigfif 01-02-2004 11:55 AM

The old tv set does not support RGB.

Anyway, with an 23.9 fps signal, the video can't be synchronized on frames ( in french: le balayage autre que 25 fps n'est pas supporté et l'image défile)

For assumeFPS, the correct syntax is assumeFPS(25, true), is it OK ?

Dialhot 01-02-2004 12:30 PM

Quote:

Originally Posted by bigfif
The old tv set does not support RGB.

Are you sure ? Scart outlet (en francais, prise peritel :-)) exist since 1981 and my first TV set with a scart accepted RGB !
I never see a TV set that do not handle it (at least in France, as other countries do not have scart).

Quote:

Anyway, with an 23.9 fps signal, the video can't be synchronized on frames ( in french: le balayage autre que 25 fps n'est pas supporté et l'image défile)
So it does not accept PAL60 Hz, that is sad.

Quote:

For assumeFPS, the correct syntax is assumeFPS(25, true), is it OK ?
Yes it is. You can find the avisynth documentation on your hard disc (directory "'doc" under the directory of avisynth).

bigfif 01-03-2004 12:23 PM

It's a very old TV set (1981) and no PAL support

Thx for all dialhot


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