A/V Sync issues - driving me crazy!
I am having a majorly annoying problem with my stream. Basically, I use my stream to broadcast pre-recorded files which I convert to NSV and upload to my dedicated server and then distribute using the Shoutcast Server.
I take a raw .avi file from a Sony DV camera and do a little bit of editing and stick on a logo etc using Adobe Premiere Pro 1.5. I then export the .avi file and encode it using NSVate.
I encode the video using VP61/VFW and the audio using RAW AAC v1.00
The problem I have is that when the end of the file is reached, the audio continues for 1-2 seconds longer than the video, causing it to be out of sync when the next file starts.
Here's my settings:
Mode: Realtime/Live encoding
End usage: Stream from a server
Noise reduction: 1
Auto Keyframe: checked
Max frames between keys: 90
Undershoot % target: 90
Adjust Quantizer: checked
Peak bitrate % as target: 100
Prebuffer (secs): 4
Optimal buffer (secs) 5
Max buffer: (secs) 6
Temporal Resampling & Spatial resampling both unchecked (I have no idea what they are)
NSV Format options:
Auto send-ahead (ms): 0
Min/max sync frame interval: 0 / 120
I have had a look through the really useful guides on the scvi.net website and tried following all the instructions on there but nothing seems to work.
Things I've tried:
*Forcing different framerates
*Not forcing a framerate
*Using VP3 instead of VP6
*Changing the 'max frames between keys' option
*Swearing at it - and loads more.
I am wondering if I am doing something wrong server-side as when I play the individual files locally they are fine, it's just when I make the stream live it messes up at the end of each file. If you reconnect to the stream it syncs again.
Apologies for the length of this thread but I really really need some help and I wanted to show I had tried loads of different options.
Please help me!!!