does VLC have support of ulaw/alaw with static payload type

About encoding, codec settings, muxers and filter usage
pjain01
New Cone
New Cone
Posts: 8
Joined: 20 Mar 2009 07:55

does VLC have support of ulaw/alaw with static payload type

Postby pjain01 » 20 Mar 2009 13:06

Hi All,
I am trying to stream an audio file (.mp3) using ulaw/alaw codecs with rtp. I am giving the following command line option in GUI
:sout=#transcode{acodec=ulaw,ab=64,scale=1,channels=1,ar=8000}:rtp{dst=my ip-address,port-audio=1234}

This I am doing with unicast IP address. The VLC version I am using is 0.9.2 on windows XP

There are two observation I have:
1) On ethereal, I am seeing rtp stream with payload type 96(dynamic payload type) which I thought should be 0 for PCMU and 8(static) for PCMA. Am I seeing the right audio stream with ulaw codec? Why this audio stream is not using the static payload type for PCMU i.e 0 for PCMU and 8 for PCMA.
2) Not able to able to play this particular stream on the other side using VLC.
- Does VLC have the support of playing PCMU stream?

Following are few more questions I have
- Also Does VLC support rtp with ulaw/alaw codec?
- and if yes what is the right command for this ?
- does VLA have the support for ulaw/alaw in case of unicast(I had seen some of the forums mentioning that ulaw/alaw support is available in case of multicast only)

Thanks
Pjain

hillbilly1980
Blank Cone
Blank Cone
Posts: 13
Joined: 14 Oct 2008 04:07
VLC version: 1.1.4
Operating System: Ubuntu
Location: Nelson, BC
Contact:

Re: does VLC have support of ulaw/alaw with static payload type

Postby hillbilly1980 » 02 Apr 2009 01:09

Same boat here. I'm trying to save an rtp stream of ulaw to file time that's easier to play and convert. Any help would be appreciated.

pjain01
New Cone
New Cone
Posts: 8
Joined: 20 Mar 2009 07:55

Re: does VLC have support of ulaw/alaw with static payload type

Postby pjain01 » 02 Apr 2009 06:41

I got my problem resolved, But for that I had to visit the code for debugging the actual cause of the problem.
VLC doen't stream the PCMU layer if you have a the audio file in some other formats(like I was using mp3 file for sending out PCMU stream thinking that VLC will do the transcoding , but somehow it wasn't. )I had to take an original PCMU audio file with mono , 8000KHz(sampling rate) .After this I could easily send out the audio stream(using PCMU and static payload 0) and also could easily listen it on the receiving VLC.

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

Re: does VLC have support of ulaw/alaw with static payload type

Postby Rémi Denis-Courmont » 02 Apr 2009 16:35

VLC can transcode to PCMU/PCMA from any audio codec. What VLC cannot do (properly) is resampling and downmixing. In other words, it will work with any 8kHz mono input (but not necessarily G.711).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kk23400
New Cone
New Cone
Posts: 7
Joined: 24 Apr 2009 06:54

Re: does VLC have support of ulaw/alaw with static payload type

Postby kk23400 » 25 Apr 2009 07:15

I got a file with H.264/G.711 stream, and VLC 0.9.9(windows) can play this file normally.
I have some questions :
(1) Can I stream output this file to http or another file(with the same codec H.264/G.711).If yes, How to do it.
I try to use VLC to output this stream, but only video output, no audio.

(2) According to the modules/mux/mpeg/ts.c, vlc only support mpga, mp3, a52,lpcm,dts,mp4a, but no ulaw/alaw?

(3) What is the number of ulaw's i_stream_type and i_stream_id? And alaw ?

Thanks a lot !

Best regards,

J

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

Re: does VLC have support of ulaw/alaw with static payload type

Postby Rémi Denis-Courmont » 25 Apr 2009 11:41

µlaw nad alaw are only supported on top of RTP, not on top of MPEG-TS.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kk23400
New Cone
New Cone
Posts: 7
Joined: 24 Apr 2009 06:54

Re: does VLC have support of ulaw/alaw with static payload type

Postby kk23400 » 27 Apr 2009 07:20

Thanks for your reply, could you tell me what's the number of ulaw's i_stream_type and i_stream_id? How about alaw ?
Thank you very much.

J

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

Re: does VLC have support of ulaw/alaw with static payload type

Postby Rémi Denis-Courmont » 27 Apr 2009 21:04

I have no ideas what you're on about. VLC follows RFC3551.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kk23400
New Cone
New Cone
Posts: 7
Joined: 24 Apr 2009 06:54

Re: does VLC have support of ulaw/alaw with static payload type

Postby kk23400 » 28 Apr 2009 06:52

I am thinking about if it is possible to add ulaw/alaw on MPEG-TS.
That's why I need i_stream_type and i_stream_id of ulaw/alaw.
Any advice would be appreciated. Thanks a lot.

J

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

Re: does VLC have support of ulaw/alaw with static payload type

Postby Rémi Denis-Courmont » 28 Apr 2009 17:35

No G.711 is TS is not implemented as far as I know. I don't even know if it's been specified.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kk23400
New Cone
New Cone
Posts: 7
Joined: 24 Apr 2009 06:54

Re: does VLC have support of ulaw/alaw with static payload type

Postby kk23400 » 06 May 2009 16:31

What's the stream type of alaw in PMT ? Mpga is 0x03 or 0x04 (depend on i_rate >= 3200 or not). I need some help to implement alaw on ts by myself, thanks a lot.

kk23400
New Cone
New Cone
Posts: 7
Joined: 24 Apr 2009 06:54

Re: does VLC have support of ulaw/alaw with static payload type

Postby kk23400 » 11 May 2009 08:51

I guess the stream id of alaw in PES is 0xC0. and I set stream type of alaw from 0x00 to 0xFF,
but none of them is alaw. What's the stream id and stream type of alaw? Thank you very much.

kk23400
New Cone
New Cone
Posts: 7
Joined: 24 Apr 2009 06:54

Re: does VLC have support of ulaw/alaw with static payload type

Postby kk23400 » 12 May 2009 11:04

Is there anyone can give me some suggestion? I am trying to add alaw/ulaw on TS stream, but what's the audio stream type and stream id of alaw/ulaw. Is it possible to add alaw/ulaw on TS stream ? I am willing to add this function on VLC by myself and share it to anyone, but I need some help first. Thanks a lot.

kk23400
New Cone
New Cone
Posts: 7
Joined: 24 Apr 2009 06:54

Re: does VLC have support of ulaw/alaw with static payload type

Postby kk23400 » 18 May 2009 06:25

Excuse me. Is it illegal or impossible to add alaw/ulaw on TS stream, or just nobody knows how to do it ? Where can I get more information about it ? Any advice would be appreciated. Thanks a lot.

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

Re: does VLC have support of ulaw/alaw with static payload type

Postby Rémi Denis-Courmont » 18 May 2009 17:24

I don't know the TS standard, but VLC definitely does not implement G.711 inside Transport Stream.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests