GCP 转码器 API mov/mp4 到 hls/fmp4 没有音频输出在 IOS 上

问题描述

我使用具有以下配置的 GCP 转码器 API:

  • NodeJS 12

  • Firebase 存储

  • Firestore 数据库

  • GCP CDN

  • 上传作业开始(firebase 函数)

      const config = {
        "elementaryStreams": [
          {
            "videoStream": {
              "codec": "h264","tune": 'zerolatency',"preset": 'superfast',"heightPixels": 360,"widthPixels": 640,"bitrateBps": 400000,"rateControlMode": "vbr","frameRate": 30,"crfLevel": 26,"gopMode": { "gopDuration": "1.0s",}
            },"key": "video-stream0"
          },{
            "videoStream": {
              "codec": "h264","heightPixels": 480,"widthPixels": 854,"bitrateBps": 1500000,"frameRate": 60,"key": "video-stream1"
          },"heightPixels": 720,"widthPixels": 1280,"bitrateBps": 3000000,"key": "video-stream2"
          },{
            "key": "audio-stream0","audioStream":  {
              "codec":  "aac","bitrateBps":  128000,"channelCount": 2,"channelLayout": ["fl","fr"],"sampleRateHertz": 48000,}
          }
        ],"muxStreams": [
          {
            "key": "video-only-sd","container": "fmp4","elementaryStreams": [ "video-stream0" ],"segmentSettings": { 
              "segmentDuration": { "seconds": "2.0s" },"individualSegments": true 
            },},{
            "key": "video-only-md","elementaryStreams": [ "video-stream1" ],{
            "key": "video-only-hd","elementaryStreams": [ "video-stream2" ],{
            "key": "audio-only","elementaryStreams": [ "audio-stream0" ],"individualSegments": true 
            }
          }
        ],"manifests": [
          {
            "fileName": "master.m3u8","type": "HLS","muxStreams": [
              "video-only-sd","video-only-md","video-only-hd","audio-only"
            ]
          }
        ],

输出摘录:

enter image description here

视频在各种播放器上运行都很棒,也适应了带宽,但在 iPhone 上没有声音。 可能原因:生成了音频文件,但与生成的视频文件数量不同。在大约 10 秒。视频,还有一个音频文件。

知道我忘记或忽略或错误定义或解释的内容吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...