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