Page 1 of 1

ulaw for RTP streaming AV

Posted: 09 Feb 2012 08:50
by baboom
Hi all,
I'm trying to stream video and transcoded ulaw audio to different IP addresses using RTP.
I'm using VLC 1.0.6 and after having looked quite a lot for a solution I've read that it's recommended to get the input audio in 8 kHz mono format. Is that still true? or new VLC versions have overcome this issue?
I've tried to do it like this:

Code: Select all

:sout=#transcode{acodec=ulaw,ab=64,channels=1,samplerate=8000}:duplicate{dst=rtp{dst=IPa,port=5004,mux=ts},select="audio",dst=rtp{dst=IPb,port=5004,mux=ts},select="video"}
but no success...
I've seen that these error messages might show where the problem is...

Code: Select all

... stream_out_duplicate debug: duplicated a new stream codec=ulaw (es=1 group=0) main debug: adding a new input mux_ts debug: adding input codec=ulaw pid=68 main error: cannot add this stream stream_out_rtp error: cannot add this stream to the muxer stream_out_duplicate debug: - failed for output 0 stream_out_duplicate debug: - ignored for output 1 main debug: removing module "mpeg_audio" main debug: removing module "araw" main debug: Filter 'mpgatofixed32' (0x85ca3b0) removed from chain main debug: removing module "mpgatofixed32" ...
Any tip?

Thank you!

Re: ulaw for RTP streaming AV

Posted: 09 Feb 2012 08:53
by Rémi Denis-Courmont
You can't pass G.711 inside MPEG-TS.

Re: ulaw for RTP streaming AV

Posted: 09 Feb 2012 09:14
by baboom
Thank you Rémi,
but RTP only supports PS/TS, doesn't it?
I've tried PS and RAW and i get these error messages:


main mux error: cannot add this stream
stream_out_rtp stream out error: cannot add this stream to the muxer
main packetizer error: cannot create packetizer output (mpga)


Is it impossible to do this? or there must be some code added?
Thanks!

Re: ulaw for RTP streaming AV

Posted: 09 Feb 2012 14:50
by baboom
sorry, for maybe becoming boring but any idea about how can I make this work?
It's necessary that I get this working....

Thank you!

Re: ulaw for RTP streaming AV

Posted: 09 Feb 2012 14:55
by n_skid11

Re: ulaw for RTP streaming AV

Posted: 09 Feb 2012 15:12
by baboom
Thanks n_skid11,
but I've already had a look at this. That's why I'm asking if there's any posibility to get this work by adding some code or whatever...

Re: ulaw for RTP streaming AV

Posted: 15 Feb 2012 12:28
by baboom
Alright, I've seen that in the new versions of VLC it does support ulaw transcoding with RTP so... THANKS TO THE DEVELOPERS!