Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th January 2019, 10:37   #1  |  Link
kabelbrand
Compression mode: Lousy
 
kabelbrand's Avatar
 
Join Date: Mar 2009
Location: Hamburg, Germany
Posts: 70
x265 3.0 Dolby Vision encoding

Did someone manage to get an encode up and running with the new --dolby-vision-rpu option?

This is what the command line looks so far:
Code:
ffmpeg -loglevel quiet -i Cosmos_Laundromat_Dolby_Vision_24p_2048x858.mxf -pix_fmt yuv420p10 -f rawvideo - | x265-10b - --input-res 2048x858 --input-depth 10 --input-csp i420 --fps 24/1 --profile main10 --level-idc 5.1 --bitrate 30000 --vbv-maxrate 40000 --vbv-bufsize 40000 --repeat-headers --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --master-display G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1) --max-cll 1000,400 --dolby-vision-profile 8.1 --dolby-vision-rpu cosmos_laundromat_vdm_hdr_p3d65_pq_20160525_01_2048x858_dovi_4000nit_metadata.xml --output Cosmos_Laundromat_Dolby_Vision_24p_2048x858.265
Is there something wrong with the metadata? I always get this error:
Code:
x265 [error]: Invalid Dolby Vision RPU startcode in POC 0
Thanks.

Last edited by kabelbrand; 7th January 2019 at 10:41.
kabelbrand is offline   Reply With Quote
Old 7th January 2019, 11:21   #2  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,734
Judging from the error, it wants a binary encoded RPU file, and not a metadata XML.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 7th January 2019, 11:49   #3  |  Link
kabelbrand
Compression mode: Lousy
 
kabelbrand's Avatar
 
Join Date: Mar 2009
Location: Hamburg, Germany
Posts: 70
Quote:
Originally Posted by nevcairiel View Post
Judging from the error, it wants a binary encoded RPU file, and not a metadata XML.
Thanks, it's plain XML indeed. So how do I get a binary presentation of this? "metafier" does not seem to support it.

Btw. the source assets are linked in the command line.

Last edited by kabelbrand; 7th January 2019 at 14:02. Reason: added note about metafier
kabelbrand is offline   Reply With Quote
Old 12th January 2019, 10:41   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,825
Would be interested in that too.
Also is there a way to extract the data somehow?

As a side note: does using
Code:
--master-display G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1) --max-cll 1000,400
make sense here?
I thought those were HDR-10 settings and shouldn't be used with Dolby Vision.

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 14th January 2019, 09:53   #5  |  Link
kabelbrand
Compression mode: Lousy
 
kabelbrand's Avatar
 
Join Date: Mar 2009
Location: Hamburg, Germany
Posts: 70
Quote:
Originally Posted by Selur View Post
I thought those were HDR-10 settings and shouldn't be used with Dolby Vision.
I guess when aiming for Dolby Vision profile 8.1 these should be included to also have HDR10 playback compatibility:
http://x265.org/x265-delivers-dolby-vision-streams/
kabelbrand is offline   Reply With Quote
Old 14th January 2019, 17:24   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 5,825
Ah didn't know that.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 14th January 2019, 18:30   #7  |  Link
halls
Registered User
 
Join Date: Jun 2010
Posts: 13
Hi!

There is any way to extract metadata from an existing file into RPU file?
halls is offline   Reply With Quote
Old 15th January 2019, 22:01   #8  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 2,874
Quote:
Originally Posted by kabelbrand View Post
I guess when aiming for Dolby Vision profile 8.1 these should be included to also have HDR10 playback compatibility:
http://x265.org/x265-delivers-dolby-vision-streams/
Yes, you should include the 2086 metadata if you want to use it. A device that can't use the 8.1 DoVi metadata will fall back to HDR-10 static metadata (or HDR10+ dynamic metadata if available and supported)
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 13th February 2019, 15:35   #9  |  Link
djloewen
Registered User
 
Join Date: Aug 2007
Posts: 110
Am I correct in understanding that there's currently no way to extract the RPU information from the secondary Dolby Vision HEVC track on a commercially-produced UHD Blu-Ray, and use that data to encode in X.265?
djloewen is offline   Reply With Quote
Old 13th February 2019, 18:06   #10  |  Link
Blue_MiSfit
Derek Prestegard IRL
 
Blue_MiSfit's Avatar
 
Join Date: Nov 2003
Location: Los Angeles
Posts: 5,507
I don't believe there is, at least not publicly available.

Also, it's x265 not X.265
Blue_MiSfit is offline   Reply With Quote
Old 13th February 2019, 18:20   #11  |  Link
djloewen
Registered User
 
Join Date: Aug 2007
Posts: 110
Got it, thanks .
djloewen is offline   Reply With Quote
Old 16th April 2019, 12:05   #12  |  Link
nghiabeo20
Registered User
 
Join Date: Jun 2013
Posts: 21
Quote:
Originally Posted by benwaggoner View Post
Yes, you should include the 2086 metadata if you want to use it. A device that can't use the 8.1 DoVi metadata will fall back to HDR-10 static metadata (or HDR10+ dynamic metadata if available and supported)
Does DoVi file encoded with previous version of x265 (specifically 2.5) still has this fallback capability? Thanks!
nghiabeo20 is offline   Reply With Quote
Old 18th April 2019, 16:45   #13  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 2,874
Quote:
Originally Posted by nghiabeo20 View Post
Does DoVi file encoded with previous version of x265 (specifically 2.5) still has this fallback capability? Thanks!
It should, but I've never tried.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Reply

Tags
dolby vision, dovi, hdr, rpu, x265

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 15:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.