I'm sorry to possibly contravene the forum rules a bit here but I honestly can't explain this problem without identifying the file source. I'm no newbie when it comes to converting AVI files to SVCD but in this instance I just can't get it to work no matter what I try. The files I'm trying to convert are the XviD AVIs of the TV show 'The O.C.' which are slowly being released on buckTV.
No matter what I try I simply cannot get the audio to sync up and stay synced with the video once converted to SVCD. If I play the straight AVI in Media Player Classic, there is a 1 second out of sync with the audio earlier than the video. Playing the file in PowerDVD however is perfect. Conversion to SVCD results in the same problem as seen in MPC. If I manually insert a 1 second silence in the audio track, then it starts out synced but quickly becomes out of sync again.
I'm out of ideas and getting desperate here as I don't have a TV-out socket on my computer, so conversion is an absolute must. I can't help but think that these particular encodes have been done with a very new XviD version and done in some special way that makes them of high quality but with the downside of being very very difficult to convert to anything else.
This appears when I try to play them in MPC.
I don't know whether this is related to the problem or not, but I've never seen it before with any other file I've played in MPC and I don't know what it means either. If anyone has had any success converting these particular AVI files then I would really appreciate knowing how you did it.
+ Reply to Thread
Results 1 to 15 of 15
-
-
Have you tried opening up those xvid files in VirtualDub (the original version, not that VirtualDubMod or NanDub crap which let you throw everything but the kitchen sink at them). If VirtualDub complains about "improper VBR audio" then that is mose likely the source of your sync issues.
A lot of these TV rips being released to Xvid use VBR mp3 for audio, which is what I think the problem is. My brief experience with VBR mp3 audio in xvid files [24, smallville, csi
] has shown that the easiest way would be to save the audio to WAV and use the WAV file as the audio source. You can do this in either TMPGEnc or VirtualDub. Now I haven't gotten a proper WAV from Vdub straight up (just passing the AVI file as is), I've always had to use an AVS script with:
Code:AVISource("NameOfAVIfile.avi") EnsureVBRMP3Sync()
Funny thing about MPC is that I cannot get any divx/xvid w/vbr mp3 audio to play in sync, but Media Player 6.4.xxx and even MediaPlayer9 play those exact same files with no audio/video sync issues. But I haven't played around enough with MPC's settings so I don't think MPC is the problem. -
Thanks for your reply
Originally Posted by deadpac
If VirtualDub complains about "improper VBR audio" then that is mose likely the source of your sync issues.
Funny thing about MPC is that I cannot get any divx/xvid w/vbr mp3 audio to play in sync, but Media Player 6.4.xxx and even MediaPlayer9 play those exact same files with no audio/video sync issues. But I haven't played around enough with MPC's settings so I don't think MPC is the problem. -
It could be a framerate issue. Most if not all of those horrible Xvid TV shows have a 23.976 NTSCfilm framerate. If the audio is not converted at the right framerate then you're going to end up with sync issues.
A framerate conversion of the AVI could help. And to prevent sync issues why not also use AVISynths high quality audio sampling rate conversion.
Code:AVISource("NameOfFile.avi") ConvertToYUY2() ConvertFPS(29.970) ResampleAudio(44100) ConvertToRGB24() #24 fps if your target was for PAL SVCD #and if you're not worried about dropped/inserted frames then use #ChangeFPS(29.970) #instead of ConvertFPS
I converted to YUY2 colorspace because I think ConvertFPS only works in that colorspace and not RGB, but I convert back to RGB24 for compatability with TMPGEnc.
I usually choose AVISynth for things like this but you could easily do all of this in VirtualDub. I just don't like having to encode/save a new avi or use vdub's frameserver; with AVS just punch out a couple of linesand pass to TMPGEnc.
-
Originally Posted by deadpac
Thanks for your help and suggestions. I'm afraid however that I'm gonna need a lot of help with the AVIsynth issue though. I'm very new to AVIsynth and haven't really got a handle on what it does or how to make it work.
With the help of someone else I have managed to do the following:
I used the following AVI script...
Code:AVISource("D:\The O.C.\The O.C. S1E05 23.976.avi") EnsureVBRMP3Sync()
Whilst I'm happy that I appear to have found a solution to the audio sync problem, the end result is not exactly what I was after. I was hoping to be able to do a framerate conversion at the same time to output a PAL MPG instead of an NTSC one. As you said the source of this TV encode is a 23.976fps AVI file so there are no IVTC issues involved here - it's just a straight speed-up that's required to get it to 25fps.
Can you help me with modifying the above simple script to include a framerate conversion from 23.976 -> 25fps for me? As I said, I'm very green to AVIsynth so I'd like to keep it as simple as possible for the time being and just get AVIsynth to do the bare minimum for me and I'll get TMPG to do whatever else I need like cropping/resizing etc. after the frameserve.
I have tried using AVIFrate to change the frame rate flag of the AVI to 25fps, but this didn't work (audio out of sync again). I also tried using a GoldWave modified 25fps WAV version of the audio stream from the original D/L'd AVI file as the input for the audio into TMPG instead of the AVI file but this resulted in the dreaded audio sync problem again as well.
Thanks. -
With the help of someone else I have managed to do the following:
I used the following AVI script...
Code:AVISource("D:\The O.C.\The O.C. S1E05 23.976.avi") EnsureVBRMP3Sync()
Deadpac wrote:
I've always had to use an AVS script with:
Code:AVISource("NameOfAVIfile.avi") EnsureVBRMP3Sync()
No but seriously as per you request here is what I would do to accomplish what you asked
Code:AVISource("D:\The O.C.\The O.C. S1E05 23.976.avi") ConvertToYUY2() ConvertFPS(25) EnsureVBRMP3Sync() ResampleAudio(44100) ConvertToRGB24() #deadpac did this script for you, don't forget :)
"
Anyways...
If you just want to simply insert frames to go from 23.976 to 25 then you could use ChangeFPS(25) instead of ConvertFPS(25). I just have a preference to ConvertFPS because no frames are dropped or inserted; but that's just my preference no kind of technical proof other than my videos come out clean with no sync issues.
I myself have never used "EnsureVBRMP3Sync()" in an AVS script that I was going to convert to video because I've always saved out to WAV for the audio source so I couldn't tell you what would happen if you just used that script for the video and audio source. I've only used that function of AVISynth for playback purposes. More likely than not that line in the code is not going to affect the outcome of the video/audio sync but just to be safe. My advice would be to encode 2 small one minute clips with that script; the first encode keeping the "EnsureVBRMP3Sync()" active and then the 2nd encode just comment out "EnsureVBRMP3Sync()" with the pound symbol "#" like so. Whichever version kept video/audio in sync is the one you should use, but it may also come out that both scripts work perfectly in which case I worried for no reason; I only mention this cause with my experience with TMPGEnc is that it handles VBR mp3 audio very well without having to use "EnsureVBRMP3Sync()"; your experience might be different from mines so the only way to know would be to try for yourself and see what happens.
Code:#encode number 2 #EnsureVBRMP3Sync() #disabled
-
Originally Posted by deadpac
Of course if you and 'Fink' are one and the same person then you're even more right again
No but seriously as per you request here is what I would do to accomplish what you asked
Code:AVISource("D:\The O.C.\The O.C. S1E05 23.976.avi") ConvertToYUY2() ConvertFPS(25) EnsureVBRMP3Sync() ResampleAudio(44100) ConvertToRGB24() #deadpac did this script for you, don't forget :)
1) Do I have to use the ResampleAudio line? Can't I just let TMPGEnc do the resample down from the original AVI 48kHz rate?
2) I think I might be confusing myself here by trying to get too smart too quickly by actually reading the AVIsynth documentation, but in that there is a command called AssumeFPS which sounds to me like more the sort of conversion I thought I needed. It sounds like just a straight forward speed-up of the play speed of both audio & video which I though was the accepted way to convert NTSCFilm to PAL. I don't understand all that is written about the ConvertFPS function but it sounds terribly complicated. It also requires that dual colourspace conversion either side as well. Is it possible to simplify things by using the AssumeFPS function instead?
If you just want to simply insert frames to go from 23.976 to 25 then you could use ChangeFPS(25) instead of ConvertFPS(25). I just have a preference to ConvertFPS because no frames are dropped or inserted; but that's just my preference no kind of technical proof other than my videos come out clean with no sync issues.
I myself have never used "EnsureVBRMP3Sync()" in an AVS script that I was going to convert to video because I've always saved out to WAV for the audio source so I couldn't tell you what would happen if you just used that script for the video and audio source.
My advice would be to encode 2 small one minute clips with that script; the first encode keeping the "EnsureVBRMP3Sync()" active and then the 2nd encode just comment out "EnsureVBRMP3Sync()" with the pound symbol "#" like so.
Thanks for all your help. I'll see how I get on. -
I am having the same problem! I think we have the same releases, I am having this problem with other shows as well. 24, Tru Calling, Enterprise, etc.
I cant convert them to SVCD, but what I really want to do is have them play on my standalone divx player. Here is a link to the forum in which we are discussing what I think the problem is. A synchronous Blit!
https://www.videohelp.com/forum/viewtopic.php?t=201602
--Matthew -
DRP
Of course if you and 'Fink' are one and the same person then you're even more right again
Deadpac
while it is possible somebody else helped you in some other avenue
1) Do I have to use the ResampleAudio line? Can't I just let TMPGEnc do the resample down from the original AVI 48kHz rate?
Is it possible to simplify things by using the AssumeFPS function instead?]. Up until then I had been using VirtualDub to adjust the framerate with no problems.
# pound symbol??? I've never heard that called a pound symbol before. Here it means 'number'. A pound symbol is either £ or lb depending on whether you're talking about money or mass. It doesn't matter of course but it's useful to know that it's a comment symbol in an AVS script.I was just thinking in terms of the phone, I should have just said number symbol which is what I usually use it's just that I've had 2 120gb WesternDigital drives die on me and being on hold with their RMA department had me going through A LOT of phone prompts. "Please enter such and such info follow by the Pound sign"..........
-
Originally Posted by Mdanner423
How did you find out about this "asynchronous blit" thingo?
-
@Deadpac
I'm happy to report that the script you gave me has worked. The resulting file ended up a little too big for me to burn to disc but that's just my fault in getting the bitrate calculation wrong. I haven't tried the AssumeFPS function yet but I will on the next one to see if it makes a difference.
Thanks for your help.
Edited from here on...
It's weird but I can't get this AssumeFPS command to work at all. I always end up with an audio sync problem - not the same one as I had before but it sounds like the video is being sped up correctly but the audio isn't (despite what the AVS documentation says should be happening) The gap between audio and video progressively gets greater and greater with audio being late. Classic symptom of audio at 23.976 and video at 25. Oh well, I guess I'm back to the ConvertFPS method again. This is the only thing that I've been able to get working at all. -
Good thing I found this topic. Oddly enough I've been trying to burn "Tru Calling" to VCD but the audio sync was really bad. Some shows would have audio a second too soon while others were too late ... and everything in between. I solved the problem by extracting the audio and saving it as a wav, saving the video without audio, and then combining it with (a try until it works method) of adding or removing seconds in the interleaving menu.
Once I got it all figured out I was bouncing off the walls with joy ... but then once I burned them about 20 minutes into each show these little patches of slight distortiion kept coming up. That also unfixed my audio sync ... making me so happy. The flashes of distortion kept getting bigger until it filled the screen. It eventually went away but left my audio sync all messed up.
Anyone have any ideas? -
Install the very latest RC2 of the XviD codec and all your audio sync problems with these TV encodes will be solved!!
I installed RC2 yesterday and lo and behold, my O.C. episodes now play perfectly in whatever player I choose and I can encode them without AVS scripting anymore and they come out perfect.
The XviD developers appear to have added whatever support was needed for these particular type of encodes to play properly with this latest release. -
Wolverine_Ecks, Not sure you tried this already but here goes. Instead of trying to fix the problem by changing the interleaving values, just extract the wav(with full processing mode if using Vdub) and use the wav as the audio source for whatever mpeg encoder you are using. It wouldn't hurt to check the avi for bad frames with Virtualdub MP3 either.
On a side note, I'm glad that there are some Tru Calling fans on this board! I ended up downloading the first few eps but since then I've been capturing and converting to Divx myself. I use Xvid for DVD rips but I prefer Divx for converting my captures. -
I tried that with great improvement but thanks anyway teegee. I've gotten everything fixed though. TMPEGEnc got rid of the small flashing distorted patches and I still use the interleaving to fix the audio sync problem. So far everything that I've burned this way came out great.
Tru Calling is a great show though. I love the concept of the story with the plot twists to fool you. Not to mention that Eliza Dushku is the leading role ....
Similar Threads
-
Problems with DVDFab when converting DVD TV episodes to Xvid
By ryangarfield in forum DVD RippingReplies: 3Last Post: 11th Oct 2009, 10:38 -
vob to avi (tv episodes)
By stewart2000 in forum DVD RippingReplies: 13Last Post: 27th Sep 2008, 05:05 -
Problems Converting AVI to SVCD
By wiseguy109 in forum Video ConversionReplies: 3Last Post: 6th Oct 2007, 14:17 -
error encoding while converting avi to svcd
By joannekhow in forum ffmpegX general discussionReplies: 4Last Post: 1st Oct 2007, 11:41 -
help with ripping the individual episodes from the dvd and converting them
By dvdrburner in forum DVD RippingReplies: 1Last Post: 22nd Aug 2007, 07:14