如果你今天下载了Wonder Woman 1984的杜比视界版本,你有可能会发现特么的杜比视界的信息无法识别,导致播放的颜色异常。
因为他弄的文件头信息有问题;
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@High
HDR format : Dolby Vision, Version 0
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 2 h 31 min
Bit rate : 18.1 Mb/s
Maximum bit rate : 47.0 Mb/s
Width : 3 840 pixels
Height : 2 160 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 : 10 bits
Bits/(Pixel*Frame) : 0.091
Stream size : 19.1 GiB (96%)
Writing library : x265 3.4hy:[Linux][GCC 7.5.0][64 bit] 10bit
HDR format这里,信息明显不正确。无法显示出具体的profile信息,正确的应该是profile 05.06.
我们使用两个开源软件来搞定,一个是大名鼎鼎的ffmpeg,另一个是DOLBY实验室开源的mp4muxer,可以重新把单独的视频音频流mux成一个mp4,并且重写文件头
工具的链接如下:
ffmpeg: https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z
mp4muxer: https://github.com/DolbyLaboratories/dlb_mp4base/tree/master/bin
下载完之后就可以开干了,首先用ffmpeg拆分:
ffmpeg.exe -i Wonder.Woman.1984.2020.2160p.HMAX.WEB-DL.DDP5.1.Atmos.DV.x265-MZABI.mp4 -map 0:0 -c copy video.h265 -map 0:1 -c copy audio.ac3
拆完之后的文件,video.h265是视频流,audio.ac3是音频流,接着mux一把,我们知道这是一个流媒体流出的版本,是profile 5的。
mp4muxer.exe -i video.h265 -i audio.ac3 --media-lang eng -o ww1984.mp4 --dv-profile 5 --mpeg4-comp-brand mp42,dby1 --overwrite
ww1984.mp4就是重新生成的mp4了
再看下media info:
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@High
HDR format : Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU
Codec ID : dvhe
Codec ID/Info : High Efficiency Video Coding with Dolby Vision
Duration : 2 h 31 min
Bit rate : 18.1 Mb/s
Width : 3 840 pixels
Height : 2 160 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 : 10 bits
Bits/(Pixel*Frame) : 0.091
Stream size : 19.1 GiB (96%)
Writing library : x265 3.4hy:[Linux][GCC 7.5.0][64 bit] 10bit
收工了。Dolby Vision, Version 1.0, dvhe.05.06, BL+RPU,shield tv/fire tv/apple tv甚至iphone都可以愉快的识别了。
下图是iphone上的infuse识别的信息,已经有DV标记了,播放色彩也是正常的,而修改之前,跟你一样的问题,色彩异常。
如果你觉得有用,回复一下吧
|