Potential bug in streaming 24 bit audio

About encoding, codec settings, muxers and filter usage
tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

Potential bug in streaming 24 bit audio

Postby tvtalkshowshigh » 20 Dec 2013 16:58

I'm using VLC 2.2.0 compiled from git. to stream H264 and signed 24 bit big-endian PCM using RTP Audio/Video profile.

cvlc stream.mkv :sout='#rtp{dst=10.161.156.201,port=6748,ttl=1,sdp="file:///tmp/test.sdp"}' :sout-all :sout-keep -L

vlc plays stream.mkv just fine but if I stream it with the above command, then the receiving instance of VLC interprets the audio incorrectly. The audio can be heard and on closer inspection it seems that the audio is interspersed with binary values and noise. In this image the received audio is at the top and the original at the bottom (y-axis is logarithmic - the values are zero and something very small, most likely 1):
Image

The input audio is here: https://db.tt/OBYxiBl7
The received audio is here: https://db.tt/u9IWez9X

If I transcode the audio to s16l or s16b, either in the VLC command line or in advance with ffmpeg, then everything is fine.

I see in the release notes for 1.1.6:
Demuxers:
* Support for 24-bits PCM over RTP (audio/L24)


Does anyone know what the problem might be? Perhaps some memory being copied from somewhere it shouldn't be?

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: Potential bug in streaming 24 bit audio

Postby Jean-Baptiste Kempf » 23 Dec 2013 19:32

You should look at the logs, and very likely file a bugreport.
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.

tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

Re: Potential bug in streaming 24 bit audio

Postby tvtalkshowshigh » 30 Dec 2013 18:58

There's nothing obvious in the logs. Bug filed: https://trac.videolan.org/vlc/ticket/10269

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: Potential bug in streaming 24 bit audio

Postby Jean-Baptiste Kempf » 31 Dec 2013 12:18

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

tvtalkshowshigh
Blank Cone
Blank Cone
Posts: 95
Joined: 13 Jun 2005 12:36
Location: UK

Re: Potential bug in streaming 24 bit audio

Postby tvtalkshowshigh » 31 Dec 2013 12:19

Just recompiled from git and all is working perfectly. Thanks for getting to it so quickly!

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: Potential bug in streaming 24 bit audio

Postby Jean-Baptiste Kempf » 31 Dec 2013 13:01

Thanks for the report :)
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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests