[streaming] RTP streaming noise when transcoding to Ulaw
BeƱat Urteaga <[email protected]> Mon, 3 Dec 2012 09:19:01 +0100
| Newsgroups | gmane.comp.video.videolan.vls.general |
|---|---|
| Message-ID | <BFF5B4E4912E58409575205E00B8CE0E057FAE28292C@exchsvr.traintic.com> |
--===============3727942743903115658==
Content-Language: es-ES
Content-Type: multipart/alternative;
boundary="_000_BFF5B4E4912E58409575205E00B8CE0E057FAE28292Cexchsvrtrai_"
--_000_BFF5B4E4912E58409575205E00B8CE0E057FAE28292Cexchsvrtrai_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
I'm trying to get a mp3 audio file streamed with RTP in PCMU. So I'm trying=
to transcode the file to Ulaw (transcode{acodec=3Dulaw,samplerate=3D8000,c=
hannels=3D1,ab=3D64}).
The whole sout string I'm using is: :#sout=3Dtranscode{vcodec=3Dnone,aco=
dec=3Dulaw,ab=3D64,channels=3D1,samplerate=3D8000}:rtp{dst=3D1.2.3.4,port=
=3D5004}.
Which does create an RTP stream, however, the audio sent has a periodic noi=
se which makes the song uncrompehensible...
If I use already converted files to stream via RTP, the song is ok at recep=
tion, but unfortunately, this can't be done with VLC since when trying to c=
onvert it, the file created has that periodic noise.
For this purpose I've used ffmpeg with the command: #ffmpeg -i <input_file>=
-ac 1 -ar 8000 -ab 64 -acodec pcm_mulaw <output_file> -f mulaw and I even =
got an RTP stream with ffmpeg:
#ffmpeg -re -i <input_file> -ac 1 -ar 8000 -ab 64 -acodec pcm_mulaw <output=
_file> -f mulaw -f rtp rtp://1.2.3.4:5004.
However, I must be able to play/pause/resume create playlists and so on, an=
d I'm very interested in VLCs features for doing so.
I already have posted this questions at the videolan forums but even if I w=
as helped a little bit (I was told the problem must be when downsampling or=
remixing), I wasn't able to find a solution, so maybe I could find it here=
...
Thanks a lot,
Ben.
P.S: I'm using vlc 1.1.9 The Luggage on an Ubuntu 11.04 virtual machine.
--_000_BFF5B4E4912E58409575205E00B8CE0E057FAE28292Cexchsvrtrai_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
1">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EstiloCorreo17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EstiloCorreo18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3DES link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal>Hi all,<o:p></o:p></p>
<p class=3DMsoNormal><o:p> </o:p></p>
<p class=3DMsoNormal><span lang=3DEN-US>I’m trying to get a mp3 audio=
file streamed
with RTP in PCMU. So I’m trying to transcode the file to Ulaw
(transcode{acodec=3Dulaw,samplerate=3D8000,channels=3D1,ab=3D64}).<o:p></o:=
p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>The whole sout string I’m usi=
ng is:
:#sout=3Dtranscode{vcodec=3Dnone,acodec=3Dulaw,ab=3D64,ch=
annels=3D1,samplerate=3D8000}:rtp{dst=3D1.2.3.4,port=3D5004}.
<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Which does create an RTP stream, ho=
wever,
the audio sent has a periodic noise which makes the song uncrompehensible&#=
8230;<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>If I use already converted files to=
stream
via RTP, the song is ok at reception, but unfortunately, this can’t b=
e done
with VLC since when trying to convert it, the file created has that periodi=
c
noise.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>For this purpose I’ve used ff=
mpeg with the
command: #ffmpeg -i <input_file> -ac 1 -ar 8000 -ab 64 -acodec pcm_mu=
law
<output_file> -f mulaw and I even got an RTP stream with ffmpeg: <o:p=
></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>#ffmpeg –re -i <input_file=
> -ac 1 -ar
8000 -ab 64 -acodec pcm_mulaw <output_file> -f mulaw -f rtp
rtp://1.2.3.4:5004.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>However, I must be able to
play/pause/resume create playlists and so on, and I’m very interested=
in VLCs
features for doing so. <o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>I already have posted this question=
s at the
videolan forums but even if I was helped a little bit (I was told the probl=
em
must be when downsampling or remixing), I wasn’t able to find a solut=
ion, so
maybe I could find it here…<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Thanks a lot,<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>Ben.<o:p></o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US>P.S: I’m using vlc 1.1.9 The =
Luggage on an
Ubuntu 11.04 <span style=3D'color:#1F497D'>virtual </span>machine.<o:p></o:=
p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
<p class=3DMsoNormal><span lang=3DEN-US><o:p> </o:p></span></p>
</div>
</body>
</html>
--_000_BFF5B4E4912E58409575205E00B8CE0E057FAE28292Cexchsvrtrai_--
--===============3727942743903115658==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
streaming mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/streaming
--===============3727942743903115658==--