一些H264-mp4视频不能被任何非Chromium的网络浏览器加载。

问题描述 投票:0回答:1

我经常使用ffmpeg将一些视频、蓝光等编码为mp4文件(以H264和AAC编码),以便在网络浏览器上播放。基于Chromium的浏览器,如Google Chrome或新的Microsoft Edge可以完美地播放我所有的文件。它看起来像他们不能加载任何非Chromium的网络浏览器。(Safari,Firefox等。)

因此,我决定检查并比较与任何网络浏览器工作的文件的规格,和文件不工作的非Chromium的浏览器。

这就是我得到的结果。

  • 任何网络浏览器都可以播放
General
Complete name                            : /storage/100.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (isom/iso2/avc1/mp41)
File size                                : 624 MiB
Duration                                 : 23 min 54 s
Overall bit rate                         : 3 648 kb/s
Encoded date                             : UTC 2019-10-02 22:15:27
Tagged date                              : UTC 2019-10-02 22:15:27
Writing application                      : HandBrake 1.2.2 2019022300

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 1 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=3, N=24
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 23 min 54 s
Bit rate                                 : 3 481 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 23.976 (24000/1001) FPS
Minimum frame rate                       : 23.974 FPS
Maximum frame rate                       : 23.981 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.070
Stream size                              : 595 MiB (95%)
Encoded date                             : UTC 2019-10-02 22:15:27
Tagged date                              : UTC 2019-10-02 22:15:27
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 23 min 54 s
Bit rate mode                            : Constant
Bit rate                                 : 160 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 27.4 MiB (4%)
Title                                    : Stereo
Language                                 : Japanese
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2019-10-02 22:15:27
Tagged date                              : UTC 2019-10-02 22:15:27
  • 非chromium浏览器无法播放。 Unplayable by nonchromium based web browsers:
General
Complete name                            : /storage/DL/test.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 329 MiB
Duration                                 : 23 min 52 s
Overall bit rate                         : 1 926 kb/s
Writing application                      : Lavf58.20.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 23 min 52 s
Bit rate                                 : 1 792 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
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.036
Stream size                              : 306 MiB (93%)
Writing library                          : x264 core 155 r2917 0a84d98
Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=34 / lookahead_threads=8 / 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=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=21.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : Japanese
Codec configuration box                  : avcC

Audio
ID                                       : 2
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 23 min 52 s
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 21.9 MiB (7%)
Language                                 : Japanese
Default                                  : Yes
Alternate group                          : 1

我的知识有限,我无法理解为什么以及哪些差异会导致我的问题.谁能找出问题所在,并帮助我用ffmpeg解决它?

谢谢你的帮助

audio video ffmpeg chromium h.264
1个回答
0
投票

哦,我的坏消息,看起来这个问题不是由裁判数引起的。

其实,"非基于chromium的网页浏览器无法播放 "的视频是一个10比特的视频。

在这里提出我的问题之前,我怀疑可能是我的比特深度问题。为了证实这一点,我把这个10bits的文件转换成了8bits的文件,试了一下,没有效果。于是我把这个新转换的8bits文件的信息和工作的文件一起贴在这里.我不知道转换后我测试这一集时发生了什么,但我刚刚又测试了一遍,现在可以用了。

对不起,因为我的问题其实不是问题,所以发了不必要的帖子,谢谢你试图帮助我:)。

© www.soinside.com 2019 - 2024. All rights reserved.