RTSP Stream, audio and video not synchronized

About encoding, codec settings, muxers and filter usage
quorthon
Blank Cone
Blank Cone
Posts: 28
Joined: 22 Mar 2009 17:32

RTSP Stream, audio and video not synchronized

Postby quorthon » 29 Mar 2009 11:32

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: RTSP Stream, audio and video not synchronized

Postby Jean-Baptiste Kempf » 29 Mar 2009 13:02

Well, because video cannot be shown before the I-frame, or they might be FFmpeg errors, check the messages.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

quorthon
Blank Cone
Blank Cone
Posts: 28
Joined: 22 Mar 2009 17:32

Re: RTSP Stream, audio and video not synchronized

Postby quorthon » 29 Mar 2009 15:52

Thanks for your answer...

Where can I check these FFmpeg errors?

Peter

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: RTSP Stream, audio and video not synchronized

Postby Jean-Baptiste Kempf » 29 Mar 2009 16:53

in vlc messages.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 27 guests