Audio out of sync with optical out
I've connected audio from ATV 2 times to my receiver. My Sony television has an optical out connection so it can act as a passthru for audio to my receiver. However, it's always stereo, I can't get surround from it. Apple says it sends the same audio over HDMI and optical out. So I connected ATV directly to my receiver with the optical output. Result: I do have surround now. So I guess my Sony is at fault for not passing along surround.
This is my setup:
1) ATV -> HDMI -> Sony LCD -> optical out -> receiver
2) ATV -> optical out -> receiver
My problem:
Setup 1) gives me no surround but audio and video are synced perfectly.
Setup 2) does give me surround, but audio and video are OUT of sync.
My video is generated by Handbrake 0.9.3 and contains both AAC stereo and AC3 surround passthru.
It's strange, because if you have this audio delay problem you would think it's caused by the television because that's an extra device sitting between source and receiver.
Any ideas what is causing this problem? Is Handbrake not able to add AC3 correctly or is ATV playing sound in sync over HDMI but not in sync over optical out?
Thanks,
Jef
MacBook Pro 2,4Ghz, Mac OS X (10.5.6)