Mentalmummy
6th March 2005, 18:06
I am trying to rip some dvd`s to play on my ngage but all my avisynth scripts result in the audio being too long for some reason.
My dvd`s are all pal retail discs, I can always get the video playing fine but for some reason the audio is always much longer than the video (for instance on a short test clip it says in VirtualDubMod I would have to change the frame rate from 15fps to 73 to make them match).
I know the audio mp3 file is ripped correctly, I have checked this, and I have tried various approaches but they all fail. Does anyone have any ideas how to rectify the prolem, please?
I tried using the selecteven() function and dubbing the audio in outside of avisynth using avimux or VirtualDubMod but in that case audio duration matched but was way out of sync.
I also tried using Besweet to change the audio to suit 15 fps video but that was just as bad.
My latest attempt, if it helps, is
LoadPlugin("C:\AVI\plugins\MPEGdecoder.dll")
LoadPlugin("C:\AVI\plugins\mpeg2dec3.dll")
LoadPlugin("C:\AVI\plugins\UnDot.dll")
LoadPlugin("C:\AVI\plugins\decomb510.dll")
LoadPlugin("C:\AVI\smoothdeinterlacer.dll")
LoadPlugin("C:\AVI\plugins\fdecimate.dll")
LoadPlugin("C:\AVI\plugins\evilmpasource.dll")
video=mpegsource("C:\AVI\dvdrip\VTS_01_1.VOB")
audio=evilmpasource("C:\AVI\dvdrip\audio.mp3")
EnsureVBRmp3sync(audio)
film=audiodub(video,audio)
film=ConvertToYUY2(film)
film=LumaFilter(film, -2)
film=UnDot(film)
film=lanczos4resize(film,208, 176)
film=FDecimate(film,rate=15.000,threshold=0)
return(film)
I`m puzzled as to why it is not working and any advice would be appreciated, I walk to and from work and it would be nice to watch a film enroute (it`s a long walk) :)
My dvd`s are all pal retail discs, I can always get the video playing fine but for some reason the audio is always much longer than the video (for instance on a short test clip it says in VirtualDubMod I would have to change the frame rate from 15fps to 73 to make them match).
I know the audio mp3 file is ripped correctly, I have checked this, and I have tried various approaches but they all fail. Does anyone have any ideas how to rectify the prolem, please?
I tried using the selecteven() function and dubbing the audio in outside of avisynth using avimux or VirtualDubMod but in that case audio duration matched but was way out of sync.
I also tried using Besweet to change the audio to suit 15 fps video but that was just as bad.
My latest attempt, if it helps, is
LoadPlugin("C:\AVI\plugins\MPEGdecoder.dll")
LoadPlugin("C:\AVI\plugins\mpeg2dec3.dll")
LoadPlugin("C:\AVI\plugins\UnDot.dll")
LoadPlugin("C:\AVI\plugins\decomb510.dll")
LoadPlugin("C:\AVI\smoothdeinterlacer.dll")
LoadPlugin("C:\AVI\plugins\fdecimate.dll")
LoadPlugin("C:\AVI\plugins\evilmpasource.dll")
video=mpegsource("C:\AVI\dvdrip\VTS_01_1.VOB")
audio=evilmpasource("C:\AVI\dvdrip\audio.mp3")
EnsureVBRmp3sync(audio)
film=audiodub(video,audio)
film=ConvertToYUY2(film)
film=LumaFilter(film, -2)
film=UnDot(film)
film=lanczos4resize(film,208, 176)
film=FDecimate(film,rate=15.000,threshold=0)
return(film)
I`m puzzled as to why it is not working and any advice would be appreciated, I walk to and from work and it would be nice to watch a film enroute (it`s a long walk) :)