簡體   English   中英

iOS 瀏覽器是否支持帶有 h264 視頻和 4 個(或更多)AAC 音頻通道的 mp4?

[英]Is there iOS browser support for mp4 with h264 video and 4 (or more) AAC audio channels?

我使用 ffmpeg 將 AAC 音頻的 4 個通道(兩個立體聲)添加到帶有 h264 視頻的 mp4 中。 我正在使用 Web Audio Api 拆分通道並將它們合並在一起,以便與視頻同步進行獨立控制。 這在 Windows 和 macOS 瀏覽器(Chrome、Firefox、Safari、Opera、Edge)上成功運行,但無法在 iOS(Safari 和 Chrome)上播放該文件。 我正在等待一個 android 設備在該平台上進行測試,但從我收集到的信息來看,這是可行的。 有沒有人對這個問題有任何見解? 先感謝您!

我在下面添加了 mediainfo 查詢的日志:

Complete name                            : multi_channel.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 25.7 MiB
Duration                                 : 4 min 33 s
Overall bit rate                         : 787 kb/s
Writing application                      : Lavf58.76.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 4 min 33 s
Bit rate                                 : 525 kb/s
Width                                    : 1 280 pixels
Height                                   : 536 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.032
Stream size                              : 17.1 MiB (67%)
Title                                    : ISO Media file produced by Google Inc. Created on: 09/03/2019.
Writing library                          : x264 core 163 r3060 5db6aa6
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=17 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Menus                                    : 3
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 4 min 33 s
Source duration                          : 4 min 33 s
Source_Duration_LastFrame                : -22 ms
Bit rate mode                            : Constant
Bit rate                                 : 257 kb/s
Channel(s)                               : 4 channels
Channel layout                           : L R Ls Rs
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 8.37 MiB (33%)
Source stream size                       : 8.37 MiB (33%)
Default                                  : Yes
Alternate group                          : 1
Menus                                    : 3
mdhd_Duration                            : 273764

Menu #1
ID                                       : 3
Codec ID                                 : text
Duration                                 : 4 min 33 s
Language                                 : English
Menu For                                 : 1,2
00:00:00.000                             : Tempo: 120.0

Menu #2
00:00:00.000                             : Tempo: 120.0

你能添加一些代碼嗎——比如視頻屬性——iOS需要“playsinline”屬性——這將是首先要檢查的。

如果存在 - 控制台日志會告訴您什么?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM