G711 u-Law over RTP

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

G711 u-Law over RTP

Postby niwa3836 » 14 Dec 2009 13:20

Hi,

I have seen a previous posting around the ability to use VLC to stream rtp to end devices using G711 uLaw (or aLaw) but although it suggests that it can be done it doesnt show how, can someone help shed any light please?

Specifically the feed was free
viewtopic.php?f=4&t=63667&p=213362&hilit=cisco#p213362

SNIP>>>I was able to get VLC to stream g711 correctly using an sout chain of transcode:rtp. VLC does not seem to read ulaw from file correctly, so a new demux was needed. In fact, VLC demuxes ulaw as standard pcm, so it reads the file completely off-target.

Creation of a new FrameInfo type for ulaw at the demux stage allowed to control the incoming byte stream chunk size, which then in turn would then send packets to the sout module(s) in the correct size and with the correct timestamp. Creation of a new packetizer for g711 over RTP allowed control of the Source Identifier and Timestamp formats.<<<SNIP

Basically when I use VLC as follows:
C:\Program Files\VideoLAN\VLC\vlc.exe" c:\audio\3.wav --sout "#transcode{acodec=ulaw,channels=1,ar=8000}:rtp{dst=172.30.1.26,port-audio=30000}
it streams ok but the packets arrive too soon (0.016, 16ms) and should be packetized at 0.02, 20ms.

It appears that there is someway of changing the code to do this (in fact being able to steam at G711ulaw or G711alaw might be a feature request for full codec support?) but unfortunately I dont know what I am looking at and would love to use VLC in my project.

Can anyone please help? Nigel email videolan [at] nigelwarburton.co.uk

Really many thanks!

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: G711 u-Law over RTP

Postby Jean-Baptiste Kempf » 14 Dec 2009 20:56

VLC version is ?
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.

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 15 Dec 2009 12:16

Thanks very much for replying.

The software reports itself as VLC media player 1.0.3 Goldeneye.

Thanks in advanced for your help!

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 16 Dec 2009 13:49

I have been trying a few more things but really does look like some code is needed to help with the G711 steaming at 20ms. Maybe this could / should be a feature request, or is it something that should generally be easy to change myself? Problem is that the previous posted link where lordnk says that he has fixed it doesnt go into any detail on how or whether there is a dll file or something that can be downloaded.

Therefore if any knows how to do this would be very grateful (I know that I have a low scoring on videolan posts, but I am very active helping others in the php space (any help needed let me know :) )

Many thanks if you can help!

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: G711 u-Law over RTP

Postby Jean-Baptiste Kempf » 17 Dec 2009 01:30

Can you try VLC 1.1-git from Nightly Build of VLC
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.

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 19 Dec 2009 09:54

Hi, thanks for replying and hopefully the party was good. Sorry for slow reply I had some issues connecting to the forum

I downloaded "vlc-1.1.0-git-20091217-0234-win32.exe" and installed that to the default location

VLC reported as VLC Media player 1.1.0-git-20091217-0234 Yellow Bastard

The application said it crashed at first and looking in the wireshark trace it says

STOR /crashs/20091217084556

553 Requested action not taken: File name not allowed

Looking at the RTP packets on wireshark the packetizer seems to have a mind of its own, see:

No. Time Source Destination Protocol Info
1 0.000000 Dell_42:03:be Broadcast ARP Who has 172.30.1.26? Tell 172.30.1.3
2 0.000519 Cisco_9c:d8:25 Dell_42:03:be ARP 172.30.1.26 is at 00:14:f2:9c:d8:25
3 0.000013 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=84, Time=36200856
4 0.000001 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=85, Time=36200856
5 0.000048 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=86, Time=36200856
6 0.000030 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=87, Time=36200856
7 0.000032 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=88, Time=36200856
8 0.000037 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=89, Time=36200856
9 0.000030 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=90, Time=36200856
10 0.000026 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=91, Time=36200856
11 0.000033 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=92, Time=36200856
12 0.000030 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=93, Time=36200856
13 0.000037 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=94, Time=36200856
14 0.000038 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=95, Time=36200856
15 0.000043 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=96, Time=36200856
16 0.000035 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=97, Time=36200856
17 0.000054 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=98, Time=36200856
18 0.000026 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=99, Time=36200856
19 0.000033 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=100, Time=36200856
20 0.000035 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=101, Time=36200856
21 0.000030 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=102, Time=36200856
22 0.000038 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=103, Time=36200856
23 0.000028 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=104, Time=36200856
24 0.000030 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=105, Time=36200856
25 0.000027 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=106, Time=36200856
26 0.000032 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=107, Time=36200856
27 0.000032 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=108, Time=36200856
28 0.000028 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=109, Time=36200856
29 0.000036 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=110, Time=36200856
30 0.000029 172.30.1.3 172.30.1.26 RTP PT=ITU-T G.711 PCMU, SSRC=0x23480000, Seq=111, Time=36200856



I also downloaded "vlc-1.1.0-git-20091217-0234-win32-debug.zip" and tried that not sure if that would provide any better debugs etc but I couldnt find any that I could send

So right now I have the 1.1.0-git build still loaded which also crashes when playing mp3's etc (says crashed but then usually does play the file). Could this be related or changed by the input file format, and the transcoder getting it wrong now? Right now its an easy starter test as with the doc command i send, and wireshark running you can see somethings not right.

J-b, really many thanks for looking into this, reading the forums I see many people stating no G711 support, and VLC would be really useful for this!

Nigel

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 19 Dec 2009 10:40

Hum, I have uninstalled your git-Yellow Bastered version, rebooted and re-installed 1.0.3 main release, but now this one doesnt start either. Are there some remant files that are stopping this do you think?
I see the vlc.exe app running in task manager but no vlc gui is displayed. If I try and launch again it does the same thing, but only 1 vlc.exe remains in memory. Tried killing and doing the whole process again but no joy.

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 19 Dec 2009 11:57

After another uninstall / reinstall VLC is happy again generally, although it still crashes trying to stream G711.

It is still trying to send a file to the developers but fails with cant open file /crashs/20091219104909, will this help us if we get it running? I presume there might be a switch to help collect more information on the problem?

I see (very quickly though using the -I dummy option) that the issue is an unhandled exception of some form. Let me know how I can give you more information

Once again thanks for your help

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: G711 u-Law over RTP

Postby VLC_help » 19 Dec 2009 16:37

If you know how to use gdb, you can give us more debug info.
http://wiki.videolan.org/Win32CompileCy ... ebugger.29

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 19 Dec 2009 18:11

Hi thanks for the reply. I have started going through the link that you have sent and I am ending up in a spin (I dont do this as a day job :) ) I can keep trying but I dont know that anyone could rely on the results.

J-b said nightly builds so I also tried the "vlc-1.1.0-git-20091218-0003-win32.exe" incase I was a little too eager downloading the wrong version.

This version does the same thing, that being it says crashed "send a message to developers" but I see in wireshark to never gets there.

I am still launching with the following command:
"C:\program files\videolan\VLC\vlc.exe" -I dummy c:\audio\test.wav --sout #transcode{acodec=ulaw,ab=64,scale=1,channels=1,ar=8000}:rtp{dst=172.30.1.26,port-audio=30000}
The audio file test.wav was built using Audacity and reports Bitrate 128kbs, 16bit, 1 channel,Audio sample 8Khz, audio format pcm.

Hopefully this doesnt mean i am really stuck? Many thanks for help so far!

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 19 Dec 2009 18:13

For information the following is the output from wireshark on 1.0.3 Goldeneye showing 16ms and not 20ms. The git verison posted previously was much too fast!
8 0.016512 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
9 0.016603 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
10 0.016605 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
11 0.016621 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
12 0.016597 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
13 0.016774 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
14 0.016434 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
15 0.016618 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
16 0.016604 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000
17 0.017542 172.30.1.3 172.30.1.26 UDP Source port: cadsi-lm Destination port: 30000

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 22 Dec 2009 17:34

Hi, still not having any joy with the compiling side, could really do with some help.

For information the dos windows that opens up and closes quickly actually says "Unhandled VLC exception". Its a real shame that VLC doesnt work today with RTP at 20ms, I can see that this has some real value.

Would be interested if anyone can help move this along. Really like the idea of VLC, ready to donate!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: G711 u-Law over RTP

Postby VLC_help » 22 Dec 2009 19:22

Would be interested if anyone can help move this along. Really like the idea of VLC, ready to donate!
Contact vlc-devel mailing list or IRC.

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 04 Jan 2010 14:30

Hi,

I have tried contacting the dev group, but not heard anything back.

J-B if you are here, could you please confirm whether I should retry a git built version and if so which one. I believe I tried the version that you suggested would work but cant be sure, so if possible could you please provide a link?

I will also try PMing Lordnk who claims to have fixed the vlc code, but unfortunately never posted what was needed to make it work.

If anyone else can help or suggest anything please let me know as still really keen to use VLC but right now I am truely stuck!

Many thanks in advance and Happy New Year!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: G711 u-Law over RTP

Postby VLC_help » 04 Jan 2010 15:18

I have tried contacting the dev group, but not heard anything back.
Via IRC or mailing list or...?

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 04 Jan 2010 16:20

Email Sent 23/12/09 17:35 to vlc-devel@videolan.org

Hi,

Hopefully this is the right place, VLC_help suggested I emailed here.

Basically I was looking at using VLC to steam uLaw at 20ms so that it could be received by a Cisco IP Phone. Today the VLC player does not seem to support it although I have seen a number of requests for support.

I also see that someone else has had it running but for whatever reason didnt fancy sharing with others as there is no real content as to the fix (viewtopic.php?f=4&t=63667&p=213362&hilit=cisco#p213362)

So that leaves me a bit stuck between waiting to see if this feature comes into VLC and works, use something else, or see if anyone fancies to help for a pat on the back, chocolate or cash.

Please let me know if you can help!

Many thanks, and apologies if this is the wrong place!
Nigel

Email: videolan [at] nigelwarburton.co.uk

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: G711 u-Law over RTP

Postby VLC_help » 05 Jan 2010 14:45

http://mailman.videolan.org/pipermail/v ... html#start
I can't find the mail from there (I might be blind).

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 07 Jan 2010 10:56

Hi VLC_Help, and thanks for your help so far. I really think this fix would be really useful. I checked and the email said it definately went, but this time I have subscribed the developer list to see it appear there, lets keep our fingers crossed. I know J-B thought he knew what was wrong, but i guess he is either busy or away at the moment to help.

Here is the email that I have just sent to the dev list: -

Hi,

Hopefully this is the right place, VLC_help suggested I emailed here.

Basically I was looking at using VLC to steam uLaw at 20ms so that it could be received by a Cisco IP Phone. Today the VLC player does not seem to support it although I have seen a number of requests for support.

I also see that someone else has had it running but for whatever reason didnt fancy sharing with others as there is no real content as to the fix (viewtopic.php?f=4&t=63667&p=213362&hilit=cisco#p213362)

So that leaves me a bit stuck between waiting to see if this feature comes into VLC and works, use something else, or see if anyone fancies to help for a pat on the back, chocolate or cash.

I really think this fix would be really useful, today afaik 16ms isnt used by any devices.

Please let me know if you can help!

Many thanks, and apologies if this is the wrong place!
Nigel

Email: videolan [at] nigelwarburton.co.uk

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: G711 u-Law over RTP

Postby VLC_help » 07 Jan 2010 18:19


niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 08 Jan 2010 10:06

So unless I am missing the point it should have worked. I have now sent emails from 2 separate accounts to vlc-devel@videolan.org. I am on the mailing list but not seen anything come through either. Can you please let me know what I am doing wrong?

The previous thread (links embedded in this thread) say that the change is pretty easy, I think I could do with some night colleage or something to try and fix myself but even then I would now how to get it correctly embedded into VLC as a fix.

Thanks for your help!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: G711 u-Law over RTP

Postby VLC_help » 08 Jan 2010 19:54

I am on the mailing list but not seen anything come through either.
So you don't receive any mailing list mails to your inbox? If so, you might want to contact j-b, he should be able to tell if there is some kind of problem in vlc-devel.

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 08 Jan 2010 20:19

Hi VLC_help,

My original emails definately didnt get through. I sent 1 the other day from hotmail (not the same account I first tried from), and then again today, NOW I see both of them just hit the email group. I see a few others suggesting that their emails are not getting through so maybe there is a problem there.

Hopefully J-B or others might be able to help. J-B did try something but I could never confirm with him which .exe file I should retry to see if his fixes helped. Still maybe J-B will see the emailer on the group (as requested I wont PM him) and maybe he will find be kind and reply :)
Thanks again!

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: G711 u-Law over RTP

Postby Jean-Baptiste Kempf » 09 Jan 2010 11:57

I haven't seen the e-mail.
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.

niwa3836
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Dec 2009 19:09

Re: G711 u-Law over RTP

Postby niwa3836 » 09 Jan 2010 14:55

Hi J-B,

Yesterday I saw my emails come back to me correctly as a From: me, to: vlc-devel so they must have hit the vlc group mailer. The only thing is that I dont see them on the thread recap page, maybe there is a delay?

If you get a mo could you confirm which version (and where download) you believe that you added some fixes? I have tried asking Lordnk but he hasnt replied as I believe he had working vlc code.

As soon as you let me know which version and where I will download and test. Still mega keen to get working, I have seen lots of people in the past being stuck by this. Just wish I could help code this bit, but sadly php is my limit (where I help lots of people in those forums overcome their issues).

My only concern is that Lordnk says about the 160 bytes at 20ms but he also mentioned a possible difference in the header too?

Do you think this would work any differently under Linux? Any help would be really great

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: G711 u-Law over RTP

Postby VLC_help » 09 Jan 2010 19:51

Mails got to the list and there is already a reply
http://mailman.videolan.org/pipermail/v ... 71122.html


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 66 guests