Andreas Vitting wrote:
> 
> Hy,
> 
> i'm modifying the play-ac3 tool for sblive together with vdr. It's works
> well for playback, but if i press "pause" and release it, audio is out of
> sync.
> I have found out:
> Your Input thread is ~ 3 seconds after the pause command stopping (in a
> loop), because the put-get functions are filling the buffers in that time.
> The output thread stops direct, because the video is freezed.
> So the ac3 audio stops 3 seconds after the pause command. After start replay
> again, the 3 seconds are out of sync.
> If i modify the line 720
>         if (!blockInput && stillIndex < 0) {
> to
>         if (!blockInput && stillIndex < 0 && !paused) {
> the syncronisation is not lost.
> I'm not sure of side effects, but i found none.

This appears to be a good thing to do.

I am, though, considering to rewrite the ringbuffer to make it store
individual frames rather than a big chunk of video. This would allow
stripping the audio packets in the _output_ thread rather than in the
input trhead, and might also help in hitting the right spot when
returning from fast forward/back.

I guess I'll know more about what I'm going to do with the buffer after
evaluating the DVD enhancements from Andreas...

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   [EMAIL PROTECTED]
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


-- 
Info:
To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe linux-dvb" as 
subject.

Reply via email to