Jellyfin Forum
Converting Dolby Vision to HDR10 - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Guides, Walkthroughs & Tutorials (https://forum.jellyfin.org/f-guides-walkthroughs-tutorials)
+--- Thread: Converting Dolby Vision to HDR10 (/t-converting-dolby-vision-to-hdr10)

Pages: 1 2 3 4 5 6 7 8 9 10 11


RE: Converting Dolby Vision to HDR10 - Host-in-the-Shell - 2024-11-29

I just noticed that the playback issues I was experiencing seem to come from Dolby TrueHD audio track, whenever I select Dolby Digital it plays back normally.


RE: Converting Dolby Vision to HDR10 - NavicNick - 2024-11-30

(2024-11-07, 10:06 PM)TheDreadPirate Wrote: This guide has been updated.  Jellyfin-ffmpeg 7.0.2-4 added a bitstream filter to remove Dolby Vision directly in ffmpeg.  dovi_tool is no longer needed at all.  And this still does not require any re-encoding AND can be done with a single ffmpeg command.

A bonus feature: If you do re-encode, you can skip using the bitstream filter entirely.  Re-encoding to, for example, AV1 will automatically strip the Dolby Vision EL and RPU while maintaining the BT2020 HDR10 color space.

Hey, sorry for getting back to you 2 months later, didn't get an email notification...

But, this worked! Simplifies everything a lot and I don't have any problems. I didn't try any other command other than the single one in your update at the top of the post.
It does use up a lot of RAM as someone else here mentioned, but not a huge deal for me.

Thanks again for all your work!


RE: Converting Dolby Vision to HDR10 - teddy101 - 2024-12-16

When i run this command: ffmpeg -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -i "dv-video.mkv" -map 0 -bsf:v hevc_metadata=remove_dovi=1 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled "hrd10-video.mkv"

I get the following error:
[out#0/matroska @ 0000016a23ce3540] Could not write header (incorrect codec parameters ?): Invalid data found when processing input

What am i doing wrong?

File information:

Metadata:
title :
encoder : libebml v1.4.4 + libmatroska v1.7.9
Duration: 03:24:26.53, start: 0.000000, bitrate: 19236 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 11657.000000
Metadata:
title : Start
Chapter #0:1: start 11657.000000, end 12266.528000
Metadata:
title : Credits
Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(pc), 3840x2160 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn (default) (dub)
Metadata:
title :
Side data:
DOVI configuration record: version: 1.0, profile: 5, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 0, compression: 0
Stream #0:1(eng): Audio: eac3 (Dolby Digital Plus + Dolby Atmos), 48000 Hz, 5.1(side), fltp, 768 kb/s (default) (original)
Metadata:
title :
Stream #0:2(eng): Subtitle: subrip (srt) (dub)
Metadata:
title :
Stream #0:3(chi): Subtitle: subrip (srt) (dub)
Metadata:
title : Simplified
Stream #0:4(chi): Subtitle: subrip (srt) (dub)
Metadata:
title : Traditional
Stream #0:5(eng): Subtitle: subrip (srt) (dub) (hearing impaired)
Metadata:
title : SDH


RE: Converting Dolby Vision to HDR10 - teddy101 - 2024-12-16

Also do you have an example line showing how to convert it to av1?


RE: Converting Dolby Vision to HDR10 - TheDreadPirate - 2024-12-16

This guide only applies to DV7 and DV8. Your video is DV5.

DV7 and DV8 add "enhancement layers" to the high dynamic range BT2020 (HDR10) color space. DV5 is like HDR10 in that it is a native high dynamic range color space (IPTPQc2).

Having said that, DV5 is also very compatible. Most devices should support it.

I have no idea what would happen if you tried to convert it to AV1.


RE: Converting Dolby Vision to HDR10 - lakinreid - 2024-12-17

So I'm attempting to use the updated line of code, but can't seem to get it working.. Am I running the powershell window in the wrong place? This is my first time dealing with FFMPEG and very much a novice at command line prompts, so please excuse my ignorance..


RE: Converting Dolby Vision to HDR10 - theguymadmax - 2024-12-17

(2024-12-17, 02:17 AM)lakinreid Wrote: So I'm attempting to use the updated line of code, but can't seem to get it working.. Am I running the powershell window in the wrong place? This is my first time dealing with FFMPEG and very much a novice at command line prompts, so please excuse my ignorance..

You only typed the arguments for the program. You need to first call the executable, then pass the arguments. See the example below:

Code:
.\ffmpeg.exe -y -hide_banner -stats -fflags ............



RE: Converting Dolby Vision to HDR10 - TheDreadPirate - 2024-12-17

What theguymadmax said.


RE: Converting Dolby Vision to HDR10 - teddy101 - 2024-12-17

(2024-12-16, 10:48 PM)TheDreadPirate Wrote: This guide only applies to DV7 and DV8.  Your video is DV5.

DV7 and DV8 add "enhancement layers" to the high dynamic range BT2020 (HDR10) color space.  DV5 is like HDR10 in that it is a native high dynamic range color space (IPTPQc2).

Having said that, DV5 is also very compatible.  Most devices should support it.

I have no idea what would happen if you tried to convert it to AV1.

Thanks for your answer. Since the video is DV5. What should the command below look like to get it to convert the DV5 Video to HDR?

ffmpeg -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -i "dv-video.mkv" -map 0 -bsf:v hevc_metadata=remove_dovi=1 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled "hrd10-video.mkv"


RE: Converting Dolby Vision to HDR10 - TheDreadPirate - 2024-12-17

No modification of the commands in this guide will make it work with DV5 since all the command does is remove the DV enhancement layer of DV 7 and 8, which doesn't exist with DV5.

Converting DV5 to HDR10 is NOT a simple process as that would involve converting the color space from IPTPQc2 to BT2020. It would be slow and involve re-encoding.

Also, I have not figure out what that command would even be.

But, as I stated, DV5 is already highly compatible with most devices. HDR10 is NOT better than DV7 and DV8. But DV7 and DV8 have compatibility issues with some clients and THAT is the reason for this guide. HDR10 is highly compatible with many clients. But so is DV5.