首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何改变本地ip摄像头发送的音频比特率?

如何改变本地ip摄像头发送的音频比特率?
EN

Stack Overflow用户
提问于 2015-09-08 18:51:34
回答 1查看 555关注 0票数 0

如何更改openrtsp生成的音频比特率?我喜欢用摄像头发送同样的比特率。

代码语言:javascript
复制
./openRTSP "rtsp://user:pass@IP_CAMERA/....."

相机发送的比特率为64 kb/s,但当我试图获取openrtsp音频输出的信息时,则得到352 kb/s。

代码语言:javascript
复制
  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

诚挚的问候,

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-09-08 19:20:44

openRTSP不更改比特率,它只是将传入的示例保存到文件中。

代码语言:javascript
复制
44100 * 8 / 1000 = 352.8 kbps

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32465160

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档