Listen to RTP broadcast (no RTCP) and non-standard samprate

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
dashesy
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Jul 2009 19:04

Listen to RTP broadcast (no RTCP) and non-standard samprate

Postby dashesy » 27 Dec 2011 23:46

Hi and happy holidays,

I have two question:

I have a server that broadcasts RTP over UDP on the localhost (without any RTCP packets)
It is only Audio so no need for synchronization really, here is the SDP file I use:

v=0
o= - 1 1 IN IP4 127.0.0.1
s=Audio
i=Sample Audio
t=0 0
a=recvonly
a=ptime:20
a=type:broadcast
c=IN IP4 127.0.0.1/127
m=audio 5006 RTP/AVP 96
a=rtpmap:96 L16/48000/2

Looking at the messages window (debug-level 2) I can see VLC gets the packets fine but I get the following messages (and audio is not played back):
To help you, we need messages, to completely understand what your problems is.
To fix this, please be sure before you start the playback to:
  1. Open: Tools -> Messages.
  2. Set Verbosity to 2
  3. Start playback to reproduce your issue
  4. Save text in a file or copy into clipboard
  5. Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)
Also don't forget to name your Operating System and provide the VLC media player version.
1- I was wondering if this could be because of the lack of RTCP packets or maybe RTP packets are corrupted, if VLC/LIVE555 requires RTCP for all kind of multicast then I need to fix the server.
Reading through RFCs RTP broadcast do not require RTCP I guess (?)

Second question:
2- Are non-standard sampling rates supported by VLC?
I have tried different options, if I change my sampling rate (both server and SDP of course) to something non-standard (L16/30000/2).
I see the ugly-resmapler is doing something and does not give me errors, but the warning changes:
To help you, we need messages, to completely understand what your problems is.
To fix this, please be sure before you start the playback to:
  1. Open: Tools -> Messages.
  2. Set Verbosity to 2
  3. Start playback to reproduce your issue
  4. Save text in a file or copy into clipboard
  5. Then paste the full resulting log here between [​code]and[​/code] (or use Pastebin.com if it's too long)
Also don't forget to name your Operating System and provide the VLC media player version.
I appreciate any hints/articles/advice/rants :wink:

dashesy

Rémi Denis-Courmont
Developer
Developer
Posts: 15324
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Listen to RTP broadcast (no RTCP) and non-standard sampr

Postby Rémi Denis-Courmont » 28 Dec 2011 14:50

1/ This is a live555 question and we cannot help you. RTCP is mandatory by the specifications, though I agree with you that it brings no practical benefit in your particular case.

2/ Generally speaking yes, but this is codec-dependent.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

dashesy
Blank Cone
Blank Cone
Posts: 13
Joined: 27 Jul 2009 19:04

Re: Listen to RTP broadcast (no RTCP) and non-standard sampr

Postby dashesy » 28 Dec 2011 22:57

Hi Remi,

Thanks for the information!
I actually found the problem was that my packets were corrupted, when fixed VLC was able to play them fine!
However I will add RTCP, because not every media player is as robust as VLC is, plus it might be useful even in my scenario:

I have now two more questions, I appreciate if you can help (please let me know if I should ask live555):

Although the nominal sample-rate is fixed, my audio source can slow-down or generate faster samples (via GUI interaction).
In one way this is to some extent similar to the problem of having different clock-rates at source and destination machines,
1- Does VLC use NTP timestamp in RTCP to synchronize to the audio source? if yes what is the tolerance of clock drift VLC can handle?
2- What is a fast codec with variable sampling rate that VLC also supports? I want to use that in an almost realtime application?

Thanks
dashesy


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 98 guests