Alex X 2311d5eabe Change go version to 1.20 for Windows 7 support 1 月之前
..
README.md 13ca991c37 Add support pcm_s16le audio 1 年之前
codec.go 68fa42249e Fix PCM audio from Hikvision cameras 2 月之前
connection.go bdc7ff1035 Fix forwarded remote_addr in the network 4 月之前
core.go 96504e2fb0 BIG rewrite stream info 4 月之前
core_test.go 31e4ba2722 Rewrite Receiver/Sender classes 4 月之前
helpers.go f8bc25d0ae Add support rawvideo format 5 月之前
listener.go 12a7b96289 BIG core logic rewrite 1 年之前
media.go ed99025bd6 Add support S16LE (PCM-LE) for RTSP server 2 月之前
media_test.go d55270bd64 Fix tests 1 年之前
node.go 96504e2fb0 BIG rewrite stream info 4 月之前
readbuffer.go f4fe8c3769 Increase ProbeSize up to 5MB 11 月之前
readbuffer_test.go bc60cbefb8 Rewrite magic source 1 年之前
slices.go 2311d5eabe Change go version to 1.20 for Windows 7 support 1 月之前
track.go 96504e2fb0 BIG rewrite stream info 4 月之前
waiter.go 3343c78699 Add WebRTC sources for Amazon Kinesis and Wyze 1 年之前
worker.go 775b1818d1 Add WebTorrent module 1 年之前
writebuffer.go f910bd4fce Add auto Flush to core WriteBuffer 1 年之前

README.md

PCM

RTSP

  • PayloadType=10 - L16/44100/2 - Linear PCM 16-bit big endian
  • PayloadType=11 - L16/44100/1 - Linear PCM 16-bit big endian

https://en.wikipedia.org/wiki/RTP_payload_formats

Apple QuickTime

  • raw - 16-bit data is stored in little endian format
  • twos - 16-bit data is stored in big endian format
  • sowt - 16-bit data is stored in little endian format
  • in24 - denotes 24-bit, big endian
  • in32 - denotes 32-bit, big endian
  • fl32 - denotes 32-bit floating point PCM
  • fl64 - denotes 64-bit floating point PCM
  • alaw - denotes A-law logarithmic PCM
  • ulaw - denotes mu-law logarithmic PCM

https://wiki.multimedia.cx/index.php/PCM

FFmpeg RTSP

pcm_s16be, 44100 Hz, stereo => 10
pcm_s16be, 48000 Hz, stereo => 96 L16/48000/2
pcm_s16be, 44100 Hz, mono   => 11

pcm_s16le, 48000 Hz, stereo => 96 (b=AS:1536)
pcm_s16le, 44100 Hz, stereo => 96 (b=AS:1411)
pcm_s16le, 16000 Hz, stereo => 96 (b=AS:512)
pcm_s16le, 8000 Hz, stereo  => 96 (b=AS:256)

pcm_s16le, 48000 Hz, mono   => 96 (b=AS:768)
pcm_s16le, 44100 Hz, mono   => 96 (b=AS:705)
pcm_s16le, 16000 Hz, mono   => 96 (b=AS:256)
pcm_s16le, 8000 Hz, mono    => 96 (b=AS:128)