DSS to VLC TCP troubles

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
MASHtm
New Cone
New Cone
Posts: 8
Joined: 18 Sep 2008 20:45

DSS to VLC TCP troubles

Postby MASHtm » 18 Sep 2008 22:23

Hi!

I'm currently maintaining a streaming server based on DSS.

As long as I used DSS 5.5.5 and vlc 0.8.6h/i everything was fine. Both UDP and TCP streaming worked pretty well on Linux, OS X and Windows.

Well, some weeks ago I tried to upgrade to DSS 6.0.3. vlc 0.8.6i unexpectedly started skipping at the beginning of streams a lot if TCP was used. eg. an audiostream of ~4 minutes skips often in the first 40 seconds with "PTS is out of range" messages. After that period the stream gets stable. So I decided to stay with DSS 5.5.

I recognized that DSS seems to start with doubled bandwith in TCP Mode for about 30-40 seconds and switches down afterwards. All the troubles occur in this "startup" phase.

Now vlc 0.9.2 appeared and I did some tests with our streaming server and a windows vlc. UDP works as expected. But TCP gets even worse. Feeding with DSS 5.5 VLC goes totally mad complaining about "audio drift too large" and upsampling to a speed nearly twice of normal and skipping a lot. After reaching about 1:30 of the stream in nearly half the time it resets back to normal speed and the stream continues perfectly. Again it looks like it's related to this double speed "startup" phase.

Switching to DSS6 shows the same effects described above usind vlc 0.8.6.

Using --rtsp-http shows the same effects.

Streaming video shows similar effects. Both video and audio is skipping. Video with "late picture skipped", audio with "PTS is out of range" or "audio drift is too big".

Streaming to quicktime client works perfectly. GStreamer 0.10.19 on Fedora 9 works nicely, too.

I'm happy about any help.

If needed I can provide URLs, tcpdumps, VLC debuglogs...

Regards, MASHtm

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: DSS to VLC TCP troubles

Postby The DJ » 22 Sep 2008 13:29

Hi!

I'm currently maintaining a streaming server based on DSS.

As long as I used DSS 5.5.5 and vlc 0.8.6h/i everything was fine. Both UDP and TCP streaming worked pretty well on Linux, OS X and Windows.

Well, some weeks ago I tried to upgrade to DSS 6.0.3. vlc 0.8.6i unexpectedly started skipping at the beginning of streams a lot if TCP was used. eg. an audiostream of ~4 minutes skips often in the first 40 seconds with "PTS is out of range" messages. After that period the stream gets stable. So I decided to stay with DSS 5.5.

I recognized that DSS seems to start with doubled bandwith in TCP Mode for about 30-40 seconds and switches down afterwards. All the troubles occur in this "startup" phase.

Now vlc 0.9.2 appeared and I did some tests with our streaming server and a windows vlc. UDP works as expected. But TCP gets even worse. Feeding with DSS 5.5 VLC goes totally mad complaining about "audio drift too large" and upsampling to a speed nearly twice of normal and skipping a lot. After reaching about 1:30 of the stream in nearly half the time it resets back to normal speed and the stream continues perfectly. Again it looks like it's related to this double speed "startup" phase.

Switching to DSS6 shows the same effects described above usind vlc 0.8.6.

Using --rtsp-http shows the same effects.

Streaming video shows similar effects. Both video and audio is skipping. Video with "late picture skipped", audio with "PTS is out of range" or "audio drift is too big".

Streaming to quicktime client works perfectly. GStreamer 0.10.19 on Fedora 9 works nicely, too.

I'm happy about any help.

If needed I can provide URLs, tcpdumps, VLC debuglogs...

Regards, MASHtm
We know about this problem. What DarwinSS does is something not defined in the RTSP specification and VLC currently cannot handle it very well. If you have any thoughts on how to handle it, we welcome it.
Don't use PMs for support questions.

MASHtm
New Cone
New Cone
Posts: 8
Joined: 18 Sep 2008 20:45

Re: DSS to VLC TCP troubles

Postby MASHtm » 22 Sep 2008 13:42

We know about this problem. What DarwinSS does is something not defined in the RTSP specification and VLC currently cannot handle it very well. If you have any thoughts on how to handle it, we welcome it.
Thanks for the info! I'll try to spend some more time investigating this issue.

Regards, MASHtm

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: DSS to VLC TCP troubles

Postby The DJ » 22 Sep 2008 17:45

We know about this problem. What DarwinSS does is something not defined in the RTSP specification and VLC currently cannot handle it very well. If you have any thoughts on how to handle it, we welcome it.
Thanks for the info! I'll try to spend some more time investigating this issue.

Regards, MASHtm
The problem is that we get data at Speed != 1 whereas DSS is not defining this. Thus we get packets with a time in the future which screws up our timing of the data processing.
Don't use PMs for support questions.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests