[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Format of Multicast RTP stream
Author Message
srcurtis Offline
Junior Member
**

Posts: 10
Joined: Mar 2015
Reputation: 0
Post: #1
Format of Multicast RTP stream
Hi

I'm trying to output a pre-recorded wav file to Yealink phones via vlc and RTP Multicast and am experiencing choppy audio.

Phones are T38G's and T42G's configured for PCMU.

When not using vlc and originating the stream from a Yealink phone, multicast from a phone to other phones gives a crystal clear stream.

Using vlc I am transcoding as follows:

--sout "#transcode{acodec=ulaw,ab=16,samplerate=8000,channels=1}:rtp{dst=224.0.1.201,por​t-audio=5439}"

The audio plays but is very choppy.

I'm at a loss as to what I am doing wrong and am questioning the format of the audio stream.

Any help would be much appreciated.

Thanks

Steve
05-24-2015 12:29 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Flora_Yealink Offline
Senior Member
****

Posts: 265
Joined: Oct 2012
Reputation: 4
Post: #2
RE: Format of Multicast RTP stream
Hi Steve,
Your format :
--sout "#transcode{acodec=ulaw,ab=16,samplerate=8000,channels=1}:rtp{dst=224.0.1.201,por​​t-audio=5439}"
When chennels=1 , did it mean "stereo"? If yes, please change it to Mono which should be " 0".
If the sound is still not stable, please send us the pcap trace that we can check.

Best Regards!
Flora
(This post was last modified: 05-25-2015 09:29 PM by Flora_Yealink.)
05-25-2015 09:28 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
jolouis Offline
Moderator
*****

Posts: 339
Joined: Oct 2013
Reputation: 6
Post: #3
RE: Format of Multicast RTP stream
I ran into the same choppy audio when streaming from PulseAudio in Linux. After a whole lot of fighting and packet tracing I finally came to the conclusion that the packets being sent out were too big for the Yealink phones to handle properly. I set the MTU to 300 instead of the default and instantly everything was clear no more problems.

Not sure how you do it with vlc, but something like --mtu=300 would seem to be correct to add to your command line somewhere:
https://forum.videolan.org/viewtopic.php?t=95549


(05-24-2015 12:29 AM)srcurtis Wrote:  Hi

I'm trying to output a pre-recorded wav file to Yealink phones via vlc and RTP Multicast and am experiencing choppy audio.

Phones are T38G's and T42G's configured for PCMU.

When not using vlc and originating the stream from a Yealink phone, multicast from a phone to other phones gives a crystal clear stream.

Using vlc I am transcoding as follows:

--sout "#transcode{acodec=ulaw,ab=16,samplerate=8000,channels=1}:rtp{dst=224.0.1.201,por​t-audio=5439}"

The audio plays but is very choppy.

I'm at a loss as to what I am doing wrong and am questioning the format of the audio stream.

Any help would be much appreciated.

Thanks

Steve
06-10-2015 04:37 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Bryan Nelson Offline
Member
***

Posts: 71
Joined: Feb 2013
Reputation: 0
Post: #4
RE: Format of Multicast RTP stream
I was struggling to get VLC to work, and was reading about some known bugs in VLC, so I just decided to stop trying to solve bugs Wink

ffmpeg by itself works just fine for me using the following:

ffmpeg -re -i foo.wav -filter_complex 'aresample=8000,asetnsamples=n=160' -ar 8000 -f mulaw -f rtp rtp://234.3.2.1:2345

Enjoy your distributed speaker system!
07-16-2015 03:53 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
admin.calgary.demac Offline
Junior Member
**

Posts: 4
Joined: Aug 2015
Reputation: 0
Post: #5
RE: Format of Multicast RTP stream
(07-16-2015 03:53 AM)bnelson Wrote:  I was struggling to get VLC to work, and was reading about some known bugs in VLC, so I just decided to stop trying to solve bugs Wink

ffmpeg by itself works just fine for me using the following:

ffmpeg -re -i foo.wav -filter_complex 'aresample=8000,asetnsamples=n=160' -ar 8000 -f mulaw -f rtp rtp://234.3.2.1:2345

Enjoy your distributed speaker system!

I have tried your example unsuccessfully. I have also followed the following wiki without any success as well http://wiki.snom.com/Category:HowTo:Multicast_Audio

Any clue if this will work with a static build of ffmpeg?

I tried the following build:

http://johnvansickle.com/ffmpeg/
09-02-2015 06:12 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Bryan Nelson Offline
Member
***

Posts: 71
Joined: Feb 2013
Reputation: 0
Post: #6
RE: Format of Multicast RTP stream
If it helps at all, here's my ffmpeg version. Looks a little older than what you were using:

ffmpeg version 2.7 Copyright © 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)

I did have to ensure that the input wav file was already at "phone quality", as full bitrate wav files were also not working. When the input file was "bad", I did still get audio streamed, it just sounded terrible.
09-11-2015 05:13 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Helia_Dar Offline
Junior Member
**

Posts: 7
Joined: Dec 2013
Reputation: 0
Post: #7
RE: Format of Multicast RTP stream
Works great. I did a YouTube using this method though I haven't got the audio quality 100%. https://youtu.be/BX12aP5DXuk
04-19-2019 02:25 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Remote Phonebook - Numbers Display Format On Phone Medryn 19 67,839 11-24-2023 02:28 AM
Last Post: shulem@theteklink.com
  Multicast Stops Working until Phone Rebooted Blake1 10 11,154 09-21-2023 05:47 PM
Last Post: axiompm
  Sending location information of Multicast Page elin@klhconsulting 3 2,031 06-19-2023 06:21 AM
Last Post: Yisroel_MongoTEL
  T33G Multicast stratos 2 2,575 11-18-2022 09:45 PM
Last Post: stratos
  Multicast Paging And SIP Call nolto 1 2,329 09-24-2022 09:41 AM
Last Post: testlabuser2015
  Enable/Disable Multicast from programable button bshaske 1 4,036 01-19-2022 05:28 PM
Last Post: krunkerio
  Beep on multicast john2k 6 14,638 07-06-2021 06:23 AM
Last Post: LG
  Listen to Multicast on T54W and W56H Speaker LG 0 3,150 07-06-2021 06:18 AM
Last Post: LG
  Multicast to PC through PC port agle 1 7,583 09-30-2017 07:45 AM
Last Post: anonymous1711612242218
  Multicast to PC through PC port Dennis_1 1 6,823 09-27-2017 01:59 AM
Last Post: anonymous1711612242218

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication