Corruption to 24 bit audio streamed over RTP
Original forum post here: https://forum.videolan.org/viewtopic.php?f=4&t=116103&p=393739#p393739
I'm using VLC 2.2.0 compiled from git to stream signed 24 bit big-endian PCM using RTP.
The received audio is corrupted in cycles of 1022 samples:
- some good audio
- some 'binary'-like data
- some good audio
- some 'binary'-like data
- some 'noise'
VLC can play a 24 bit input file and it's fine if the output is to file, but when streamed over RTP it appears broken. I've tested with a 16bit input transcoded to 24bit on the fly by VLC, and an existing 24bit audio file. I've tested streaming just the audio, or with an H264 file and the result is the same in both cases.
I have a device that streams s24b PCM and VLC can play that without error. Unfortunately I can't find another client to test receiving the VLC stream.
I compared VLC's log output for 16bit to 24bit for sending and receiving the stream. Neither of them has anything obvious in it. There's some stuff about conversion to s32l and f32l for pulse, but that happens when VLC is just playing a 24bit PCM file, which is does just fine.
My system details are as follows: Ubuntu 12.04 3.2.0-56-generic #86 (closed)-Ubuntu SMP Wed Oct 23 09:20:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux Dell Latitude E6410 I'm just using the internal audio hardware - don't know what it is I'm afraid.