Page 1 of 1

RTSP Stream, audio and video not synchronized

Posted: 29 Mar 2009 11:32
by quorthon
Hy

I'm serving an rtsp-stream from my vlc-player:

Code: Select all

Server: cvlc --ttl 12 -vvv --color -I telnet --telnet-password videolan --rtsp-host localhost:5554 Telnet: telnet localhost 4212 new vod_test vod enabled input /home/videos/movie.mpg
On the client-side I've a java jVLC-client or a vlc-client which takes and controls the stream:

Code: Select all

Client: vlc rtsp://localhost:5554/vod_test
When I click on pause, after a second or two the video and the audio stops. All fine (one or two seconds delay is no problem). But when I click on start after pausing the stream, the audio begins before the video is shown. So every time it needs five or six seconds to get synchronized again (audio and video)...

What's the problem? Are there any options which I could add to the vlc rtsp-stream to avoid that?

Thanks for your help.
Peter

Re: RTSP Stream, audio and video not synchronized

Posted: 29 Mar 2009 13:02
by Jean-Baptiste Kempf
Well, because video cannot be shown before the I-frame, or they might be FFmpeg errors, check the messages.

Re: RTSP Stream, audio and video not synchronized

Posted: 29 Mar 2009 15:52
by quorthon
Thanks for your answer...

Where can I check these FFmpeg errors?

Peter

Re: RTSP Stream, audio and video not synchronized

Posted: 29 Mar 2009 16:53
by Jean-Baptiste Kempf
in vlc messages.