Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    F133-b的Linux版本的libadecoder.so开启解码会占用4M的内存,这个值可以改小吗?

    Linux
    3
    5
    3481
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hjbilly LV 4 last edited by

      Audio stream buffer size:4194304, Max frame num:4096, PCM data size:328960, Stream data size:0
      上面四个值是以下函数调用查询出来的,请教下,这个AudioStreamBufferSize可以改小吗?
      p->AlibItf.AudioStreamBufferSize(),
      p->AlibItf.AudioStreamBufferMaxFrameNum(),
      p->AlibItf.AudioPCMDataSize(p->AlibItf.libadecoder),
      p->AlibItf.AudioStreamDataSize(p->AlibItf.libadecoder));

      1 Reply Last reply Reply Quote Share 0
      • WhycanService
        WhycanService LV 8 last edited by WhycanService

        这个是硬解码器的buffer,不建议修改,不过改小也可以

        1 Reply Last reply Reply Quote Share 0
        • H
          hjbilly LV 4 last edited by

          该怎么修改呢?我还没找到修改方法

          Y 1 Reply Last reply Reply Quote Share 0
          • Y
            YiXinTai LV 5 @hjbilly last edited by

            @hjbilly 要裁剪的话把不需要的视频解码格式都去掉,就可以减少内存开支

            H 1 Reply Last reply Reply Quote Share 0
            • H
              hjbilly LV 4 @YiXinTai last edited by

              @yixintai 可以裁剪的视频编码都已经裁剪了,64M内存还是很紧张,经常出现OOM问题,我们的音频解码不需要4M的,因为观察解码出来的PCM缓存,只有300多K,音频解码的StreamBuffer在我们的场景下,128K就够了的,还是麻烦尽快提供下修改方法,感谢。

              1 Reply Last reply Reply Quote Share 0
              • 1 / 1
              • First post
                Last post

              Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

              行为准则 | 用户协议 | 隐私权政策