如何更改本地网络摄像机发送的音频比特率?

how to change the audio bitrate sent by local ip camera?

如何更改 openrtsp 生成的音频比特率?我喜欢相机发送相同的比特率。

./openRTSP "rtsp://user:pass@IP_CAMERA/....."

摄像机发送的比特率是 64 kb/s,但是当我尝试获取有关 openrtsp 音频输出的信息时,我得到 352 kb/s。

  ffmpeg version git-2014-07-16-aa1d096 Copyright (c) 2000-2014 the FFmpeg developers
      built on Jul 16 2014 18:28:34 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
      configuration: --extra-cflags=-I/home/zied/junk/include --extra-ldflags=-L/usr/local/lib/ --enable-gpl --enable-libx264
      libavutil      52. 92.100 / 52. 92.100
      libavcodec     55. 69.100 / 55. 69.100
      libavformat    55. 48.100 / 55. 48.100
      libavdevice    55. 13.102 / 55. 13.102
      libavfilter     4. 11.100 /  4. 11.100
      libswscale      2.  6.100 /  2.  6.100
      libswresample   0. 19.100 /  0. 19.100
      libpostproc    52.  3.100 / 52.  3.100
    [mulaw @ 0x9ac0360] Estimating duration from bitrate, this may be inaccurate
    Guessed Channel Layout for  Input Stream #0.0 : mono
    Input #0, mulaw, from 'audio-PCMA-2.ul':
      Duration: 00:00:48.46, bitrate: 352 kb/s
        Stream #0:0: Audio: pcm_mulaw, 44100 Hz, 1 channels, s16, 352 kb/s

此致,

openRTSP 不会改变比特率,它只是将传入的样本保存到文件中。

44100 * 8 / 1000 = 352.8 kbps

如果你想要更低的码率,你需要看看你的相机是否支持其他音频格式。