Quantcast How to Change Frame Rates Using Avisynth with Audio in Sync? - digitalFAQ.com Forums [Archives]
  #1  
12-19-2003, 10:58 PM
rs008f rs008f is offline
Free Member
 
Join Date: Aug 2003
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-20-2003, 02:36 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Try besweet, download the GUI too!
http://dspguru.doom9.org/
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #3  
12-20-2003, 04:23 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
No need to use a guide : use tmpgenc for encofing both audio AND video together. All will be in synch.
Reply With Quote
  #4  
12-20-2003, 04:57 PM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
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!
__________________
¨¨°º©©º°¨¨°º©CHERONAPH©º°¨¨°º©©º°¨¨
Reply With Quote
  #5  
12-23-2003, 10:24 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
Will it still be in synch if you set tmpgenc to call toolame for audio?
Reply With Quote
  #6  
12-24-2003, 04:20 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #7  
12-24-2003, 01:01 PM
Gaudi Gaudi is offline
Free Member
 
Join Date: Dec 2002
Location: Buenos Aires, Argentina
Posts: 131
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gaudi
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
Reply With Quote
  #8  
01-02-2004, 07:48 AM
bigfif bigfif is offline
Free Member
 
Join Date: Aug 2003
Location: France - Lyon
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Inserting AssumeFPS in my NTSC AVI scripts cause an illegal pointer error in TMPGENC (avisynth 2.53) ??
__________________
BigFif
Reply With Quote
  #9  
01-02-2004, 08:11 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
And that do not do anything on my PC (I just did it yesterday).
Reply With Quote
  #10  
01-02-2004, 08:19 AM
bigfif bigfif is offline
Free Member
 
Join Date: Aug 2003
Location: France - Lyon
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
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 ?
__________________
BigFif
Reply With Quote
  #11  
01-02-2004, 09:52 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Which Audio codec contains your source??? This may cause your problem.
Reply With Quote
  #12  
01-02-2004, 10:02 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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 !
Reply With Quote
  #13  
01-02-2004, 11:22 AM
bigfif bigfif is offline
Free Member
 
Join Date: Aug 2003
Location: France - Lyon
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
BigFif
Reply With Quote
  #14  
01-02-2004, 11:42 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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"
Reply With Quote
  #15  
01-02-2004, 11:55 AM
bigfif bigfif is offline
Free Member
 
Join Date: Aug 2003
Location: France - Lyon
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
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 ?
__________________
BigFif
Reply With Quote
  #16  
01-02-2004, 12:30 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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).
Reply With Quote
  #17  
01-03-2004, 12:23 PM
bigfif bigfif is offline
Free Member
 
Join Date: Aug 2003
Location: France - Lyon
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
It's a very old TV set (1981) and no PAL support

Thx for all dialhot
__________________
BigFif
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Frame rates 25fps or 23.976fps? hawk123 Video Encoding and Conversion 4 10-22-2005 11:59 PM
KVCD: many frame skips, audio out of sync? Rambytes Video Encoding and Conversion 7 07-22-2003 06:05 AM
Avisynth: Mod to NOT blur last frame prior to scene change? FredThompson Avisynth Scripting 20 07-16-2003 04:30 AM
audio Out of sync with Avisynth? Wolfi Video Encoding and Conversion 4 04-21-2003 03:08 PM
DVD2SVCD: Movie Frame Change CD Picture jorel Video Encoding and Conversion 0 12-14-2002 06:03 PM

Thread Tools



 
All times are GMT -5. The time now is 10:21 AM  —  vBulletin © Jelsoft Enterprises Ltd