Yesterday I was playing a bit around with this "hybrid" format and I will describe what I have done. Be aware however, that I lack all knowledge regarding multimedia files, this was just my 4 hour experiment for fun.Buzzie wrote: ↑Mon Nov 29, 2021 1:59 pmAnybody that can help me?
I am trying to accomplish the following :
What i would like to achieve with Dovi tool or any other is to download a WEB-DL from any source, take out the DV metadata and add it to the UHD remux so that those versions have DV too.
What i did so far are the following steps:
c:\Dolby-Vision-Tools\ffmpeg\bin\ffmpeg.exe -i "c:\temp\DV_WEB-DL.mkv" -c:v copy -vbsf hevc_mp4toannexb -f hevc c:\temp\DV.hevc
extracted the video from the UHD and named it HDR10.hevc
c:\Dolby-Vision-Tools\dovi_tool.exe -m 3 extract-rpu c:\temp\DV.hevc
made a edited.json file for the RPU
c:\Dolby-Vision-Tools\dovi_tool.exe editor -i c:\temp\RPU.bin -j c:\temp\edited.json --rpu-out c:\temp\RPU-edited.bin
c:\Dolby-Vision-Tools\dovi_tool.exe inject-rpu -i c:\temp\HDR10.hevc --rpu-in c:\temp\RPU-edited.bin
Lastly copied the HDR10.hevc file to the extracted contents of the UHD and used mkvtoolnix to make a new MKV
This one did not have the DV info.
What am i doing wrong?
Thanks again !
1. I got two identical copies of Web-DL Foundation E01, one in MP4 Dolby Vision, second in MKV HDR10 format.
2. I extracted audio using tsMuxeR.
3. I used FFMPEG to extract DV.hevc and HDR10.hevc
4. Using DoVi Tool I extracted RPU from DV.hevc.
5. I injected RPU into HDR10.hevc using DoVi Tool.
6. I muxed all together (HDR10_DV.hevc + audio) into M2TS cointainer.
Why M2TS? My LG OLED will only recognize Dolby Vision in MP4 or M2TS container, not in MKV.
Using this muxed hybrid hdr10-dv +ac3 audio file in M2TS container, I managed to get DV recognized by my LG TV and at the same time fallback to HDR10 on my phone that does not support DV.
I had to use newest night release of tsMuxeR, regular release displayed error when opening hdr10_dv.hevc video stream. This is what MediaInfo says about this hybrid file:
@Buzzie
I can not yet reply to DM, so I will post my commands here:
Command to extract DV.hevc:
Code: Select all
ffmpeg.exe -y -i DV_file.mp4 -an -c:v copy -vbsf hevc_mp4toannexb -f hevc DV.hevc
Command to extract RPU:
Code: Select all
dovi_tool.exe -m 3 extract-rpu DV.hevc
Code: Select all
ffmpeg -i HDR_file.mkv -c:v copy hdr.hevc
Code: Select all
dovi_tool.exe inject-rpu -i hdr.hevc --rpu-in RPU.bin -o output.hevc