ulaw for RTP streaming AV

About encoding, codec settings, muxers and filter usage
baboom
Blank Cone
Blank Cone
Posts: 50
Joined: 17 Oct 2011 09:13

ulaw for RTP streaming AV

Postby baboom » 09 Feb 2012 08:50

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!
Last edited by baboom on 09 Feb 2012 09:03, edited 1 time in total.

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

Re: ulaw for RTP streaming AV

Postby Rémi Denis-Courmont » 09 Feb 2012 08:53

You can't pass G.711 inside MPEG-TS.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

baboom
Blank Cone
Blank Cone
Posts: 50
Joined: 17 Oct 2011 09:13

Re: ulaw for RTP streaming AV

Postby baboom » 09 Feb 2012 09:14

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!

baboom
Blank Cone
Blank Cone
Posts: 50
Joined: 17 Oct 2011 09:13

Re: ulaw for RTP streaming AV

Postby baboom » 09 Feb 2012 14:50

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!

n_skid11
New Cone
New Cone
Posts: 8
Joined: 07 Feb 2012 10:44
Location: Lincoln, UK

Re: ulaw for RTP streaming AV

Postby n_skid11 » 09 Feb 2012 14:55

:) Skid :)
"Imagination is the only weapon in the war against reality."
"The polar opposite to Nintendo's bewilderingly name modestly powered little white cuboid is Sony's unoriginal titled monolithic black colossus the Playstation 3"

baboom
Blank Cone
Blank Cone
Posts: 50
Joined: 17 Oct 2011 09:13

Re: ulaw for RTP streaming AV

Postby baboom » 09 Feb 2012 15:12

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...

baboom
Blank Cone
Blank Cone
Posts: 50
Joined: 17 Oct 2011 09:13

Re: ulaw for RTP streaming AV

Postby baboom » 15 Feb 2012 12:28

Alright, I've seen that in the new versions of VLC it does support ulaw transcoding with RTP so... THANKS TO THE DEVELOPERS!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests