Hi,
ok, I've spent some hours over the weekend on this problem and, just in case anyone is interested, I want to share with you my trials and later conclusions. (Just let me know If I'm terribly mistaken about something)
I've got two raspberries, ver B, 512MB, both made in the UK. Even though they say that such things as overcloking may perform differently in different units, the out of sync problem I'm facing is exactly the same in both of them. (By the way, I've tried overclocking up to 900mhz and the problem still persists)
I've also used different SD cards, of 2, 4 and 8GB, all Class 4.
I've done all my testing with 2 old tvs via rca or scart input, it doesn't matter which tv I use either, the result is the same.
I've tried installing Raspbmc, Xbian, Openlec, Raspbian and ArchLinux. I can't say that all give me the same result, but quite.
The thing is that, generally speaking, I can play files stored via NFS just fine: mp3, mp4, mpeg, avi, etc. I don't watch HD films or anything with DTS or similar quality. I don't care so much about audio/video quality (as long as it is in sync) and it wouldn't make any difference in my old tv anyway.
However, live tv doesn't work smoothly. I've tried with both VDR and TVheadend as a backend, and the results are very similar.
Some OSs seem to work better than others, but the thing is that MPEG2-audio streaming plays just fine, although sometimes, after a long period of time, (2 hours or so) it progressively gets out of sync.
The problem is that some tv channels broadcast in DTS and raspberry is not quite fit yet for this.
There are quite a few pots in this forum and others about DTS license for raspberry and emulation through software. For now there's no way to get the approval from DTS to issue those licenses, so the community is looking for other ways.
In my case... do you think it would help fixing the delay?
There's even the option to passthrough the audio, untouched, to the hdmi tv, which will process the audio.
As I'm using and old tv, I can't use the passthrough option unless I buy an hdmi to scart convertor which costs twice as much as the raspberry itself and as big. Still, I haven't read anyone with this setup, so I don't know if that would even work.
I've played with 2.0, 5.1, etc, audio option in Xbmc, also with downmix and "Sync playback to display" (I've tried the three options several times).
The delay in DTS is noticeable right from the start, no matter how many times I stop/start the channel, and it gets bigger and bigger over time. I've googled to check if these channels broadcast audio in different formats, but it doesn't seem to be the case. If I watch tv from a "proper" dtt box, it only shows one audio channel.
so... after trying everything I could think of, I would like you to tell me if there's a way to watch "almost-live" tv. I mean, It would be interesting that when I tune to a channel, this somehow caches the stream and then plays it synced. I don't mind the channel not showing until 5 seconds later. Obviously, every time I switched to a new channel I would have to wait for another 5 seconds. I'd rather wait than keep watching tv out of sync.
macey, thanks for your replay. I was already using omxplayer like this, but it didn't work. I guess that with all the things I compiled and changed, something got messed up. In a new raspbian installation I made, it started working.
thanks.