<div>When you stream audio over live-555's RTSP plugin on mplayer, what decides the<br>audio data to be big endian vs little endian? I am developing a server and I am </div>
<div>specifying the format as 97 (dynamic format) with rtpmap being : 96 L16/8000 </div>
<div>for single channel, 16 bit/sample, 8 khz sample rate audio. But mplayer somehow </div>
<div>thinks audio data is in big endian format and attaches a BE -> LE conversion filter:</div>
<p>after getting "describe":</p>
<p>Initiated "audio/L16" RTP subsession on port 4770<br>....<br>...</p>
<p>after getting "play" command:</p>
<p><br>Building audio filter chain for 8000Hz/1ch/s16be -> 0Hz/0ch/??...<br>[libaf] Adding filter dummy<br>[dummy] Was reinitialized: 8000Hz/1ch/s16be<br>[dummy] Was reinitialized: 8000Hz/1ch/s16be<br>ao_dsound: Output Devices:<br>
0 Primary Sound Driver <--<br>1 SoundMAX Digital Audio<br>2 Bluetooth Audio<br>ao_dsound: DirectSound initialized<br>ao_dsound: format s16be not supported defaulting to Signed 16-bit<br>Little-Endian<br>ao_dsound: Samplerate:8000Hz Channels:1 Format:s16le<br>
ao_dsound: Buffersize:16000 bytes (1000 msec)<br>ao_dsound: primary buffer created<br>ao_dsound: secondary (stream)buffer created<br>AO: [dsound] 8000Hz 1ch s16le (2 bytes per sample)<br>AO: Description: Windows DirectSound audio output<br>
AO: Author: Gabor Szecsi <<a href="mailto:deje@miki.hu">deje@miki.hu</a>><br>Building audio filter chain for 8000Hz/1ch/s16be -> 8000Hz/1ch/s16le...<br>[dummy] Was reinitialized: 8000Hz/1ch/s16be<br>[libaf] Adding filter format<br>
[format] Changing sample format from big-endian 16-bit signed int to<br>little-endian 16-bit signed int<br>[format] Accelerated endianness conversion only<br>[dummy] Was reinitialized: 8000Hz/1ch/s16be<br>[format] Changing sample format from big-endian 16-bit signed int to<br>
little-endian 16-bit signed int<br>[format] Accelerated endianness conversion only<br>Video: no video<br>Freeing 0 unused video chunks.<br>Starting playback...<br>[libaf] Reallocating memory in module format, old len = 0, new len = 16000<br>
No bind found for key ''.<br>A: -1.0 (unknown) of 0.0 (unknown) 0.0%</p>
<div> </div>
<div>I hear nothing but noise. The data originally is in little endian format.</div>
<div> </div>
<div> </div>
<div>When I overwrite the stream type to be s16le in mplayer's libmpdemux code, it plays but it repeats a section</div>
<div>over and over again. </div>
<div> </div>
<div>If anybody could help, I would appreciate it. Thanks!</div>
<div> </div>
<div>Ratin</div>