V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
LLaMA
V2EX  ›  程序员

opus 压缩音乐效果也比 aac 好吗?记得之前看见过 v 友实验,只有语音场景好,音乐场景同码率下 opus 音质比 aac 下降明显。

  •  
  •   LLaMA · 2023-03-25 21:18:17 +08:00 · 1378 次点击
    这是一个创建于 396 天前的主题,其中的信息可能已经有所发展或是发生改变。
    8 条回复    2023-03-27 22:19:25 +08:00
    sommio
        1
    sommio  
       2023-03-25 23:43:13 +08:00   ❤️ 2
    有损编码器近十年在音质上并没有可观的进步,大多只是些小修小补,首先不同 AAC 编码器的质量不一
    libopus 的问题是不怎么热衷于处理社区杀手样本,这点多数视频网站和安卓用的 fdk_aac 也差不多
    且 [fdk_aac lowpass cutoff]( https://android.googlesource.com/platform/external/aac/+/master/libAACenc/src/bandwidth.cpp#L114) 比较保守,最高为 17khz ,使得它在技术上不可能达到透明(既感知无损)
    至于 fdk_aac 的 VBR 虽然没有 cutoff 问题,但处于不受官方支持状态,所以也没人测它在高等级时表现
    如果对透明有要求的话建议用 Apple AAC ( QAAC )

    ![]( https://s2.loli.net/2023/03/24/YoWiL974ck6fpPT.png)
    ![]( https://s2.loli.net/2023/03/24/LHNQ3MpG859l6tg.png)
    sommio
        2
    sommio  
       2023-03-25 23:49:58 +08:00
    sommio
        3
    sommio  
       2023-03-26 00:09:51 +08:00
    如果只是想达到 ITU-R 五等级中的 4.0 “能感知到失真,但不恼人”水平,例如无杂音之类的
    exhale/opus@~96Kbps(VBR) 和 libfdk_aac@128Kbps (CBR) 就足够了
    sommio
        4
    sommio  
       2023-03-26 00:17:23 +08:00
    不太清楚你的具体用例是什么,如果要考虑到 Apple 用户的话建议使用 AAC
    因为 Apple 设备可能包含 AAC 硬件解码器( kAppleHardwareAudioCodecManufacturer )
    jimzhong
        5
    jimzhong  
       2023-03-26 01:53:22 +08:00
    个人体验 opus 和 aac 码率大于 128kbps 情况下效果差不多。opus 的优点是商业使用无需授权。
    sommio
        6
    sommio  
       2023-03-26 03:54:39 +08:00
    @jimzhong

    aac 只向编解码器开发商收取授权费
    fdk_aac 编码器是免费的
    > An AAC patent license is needed by manufacturers or developers of end-user encoder and/or decoder products.


    [AAC FAQs]( https://www.via-corp.com/licensing/aac/aac-faqs/)
    [FDK AAC License]( https://fedoraproject.org/wiki/Licensing/FDK-AAC)
    ysc3839
        7
    ysc3839  
       2023-03-27 04:47:37 +08:00 via Android
    @sommio 从链接里面看 FDK AAC 只是源代码免费授权,不包含专利授权的。
    “is needed by manufacturers or developers of end-user encoder and/or decoder products”我觉得是你开发的产品里包含了编解码代码就需要授权。
    sommio
        8
    sommio  
       2023-03-27 22:19:25 +08:00   ❤️ 1
    @ysc3839
    这段要配合 AAC FAQs 看,这只意味着不能基于 FDK AAC 开发自己的编解码器,不意味着使用它需要付费
    OPUS 也不包含专利授权
    [License Terms]( https://www.opuspool.com/licence-terms)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4499 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:05 · PVG 09:05 · LAX 18:05 · JFK 21:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.