Repository: youtube-dl
Issue: Show more detailed profile info to properly identify HDR content.
Labels: request

### Make sure you are using the *latest* version:
- [x] I've **verified** and **I assure** that I'm running youtube-dl **2016.12.12**

### Before submitting an *issue* make sure you have:
- [x] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [x] [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones

### What is the purpose of your *issue*?
- [x] Feature request (request for a new functionality)

---

### Feature Request: Display color space

Currently the profile being "vp9.2" indicates "vp9 profile2: color depth: 10–12 bit, chroma subsampling: 4:2:0".

However the VP9 format supports the following color spaces: Rec. 601, Rec. 709, Rec. 2020, SMPTE-170, SMPTE-240, and sRGB. Furthermore spaces that support HDR, like Rec. 2020, may or may not have HDR.

It would be nice if more detailed profile information could be shown:
* One of the Dolby dynamic metadata profiles
* HEVCProfileMain10HDR10
* VP9Profile2HDR
* VP9Profile3HDR

Or if videos could be flagged as having HDR metadata:
* ST-2084 Transfer Function - Dynamic HDR Metadata (Dolby-Vision)
* ST-2084 Transfer Function - Static HDR Metadata (HDR10)
* ST-2084 Transfer Function - Static HDR Metadata (VP9-PQ)
* HLG Transfer Function - No HDR Metadata (VP9-HLG)

Long-term goal would be a `--prefer-hdr-formats` type of flag.

I'm not sure if this is easy or possible without inspecting the video file. I took a look in the manifest using `--write-pages` but the 330-337 formats did not seem to be in the manifest so I don't know what other info youtube is currently providing.

[Youtube HDR Video Upload Requirements Info Here](https://support.google.com/youtube/answer/7126552)
[Android Developer Info: Dolby-Vision / HDR10 / VP9-HLG / VP9-PQ ](https://source.android.com/devices/tech/display/hdr.html)

---

### Example [The World in HDR](https://www.youtube.com/watch?v=tO01J-M3g0U) from [HDR Launch Playlist](https://www.youtube.com/playlist?list=PLyqf6gJt7KuGArjMwHmgprtDeY8WDa8YX)
```
$ youtube-dl -F tO01J-M3g0U   
[youtube] tO01J-M3g0U: Downloading webpage
[youtube] tO01J-M3g0U: Downloading video info webpage
[youtube] tO01J-M3g0U: Extracting video information
[youtube] tO01J-M3g0U: Downloading MPD manifest
[info] Available formats for tO01J-M3g0U:
format code  extension  resolution note
249          webm       audio only DASH audio   50k , opus @ 50k (48000Hz), 912.10KiB
250          webm       audio only DASH audio   65k , opus @ 70k (48000Hz), 1.15MiB
140          m4a        audio only DASH audio  127k , m4a_dash container, mp4a.40.2@128k (44100Hz), 2.34MiB
251          webm       audio only DASH audio  130k , opus @160k (48000Hz), 2.30MiB
171          webm       audio only DASH audio  131k , vorbis@128k (44100Hz), 2.07MiB
160          mp4        256x144    DASH video  115k , avc1.4d400c, 30fps, video only, 2.05MiB
278          webm       256x144    DASH video  122k , webm container, vp9, 30fps, video only, 1.69MiB
133          mp4        426x240    DASH video  246k , avc1.4d4015, 30fps, video only, 4.52MiB
242          webm       426x240    DASH video  272k , vp9, 30fps, video only, 3.61MiB
243          webm       640x360    DASH video  513k , vp9, 30fps, video only, 6.92MiB
134          mp4        640x360    DASH video  636k , avc1.4d401e, 30fps, video only, 7.66MiB
244          webm       854x480    DASH video  988k , vp9, 30fps, video only, 12.66MiB
135          mp4        854x480    DASH video 1165k , avc1.4d401f, 30fps, video only, 15.27MiB
247          webm       1280x720   720p 2036k , vp9, 30fps, video only, 25.57MiB
136          mp4        1280x720   720p 2323k , avc1.4d401f, 30fps, video only, 29.77MiB
248          webm       1920x1080  1080p 3260k , vp9, 30fps, video only, 44.89MiB
302          webm       1280x720   DASH video 3261k , vp9, 60fps, video only, 41.13MiB
298          mp4        1280x720   DASH video 3497k , avc1.4d4020, 60fps, video only, 50.22MiB
137          mp4        1920x1080  1080p 4375k , avc1.640028, 30fps, video only, 54.71MiB
303          webm       1920x1080  DASH video 5108k , vp9, 60fps, video only, 71.01MiB
299          mp4        1920x1080  DASH video 5868k , avc1.64002a, 60fps, video only, 88.13MiB
271          webm       2560x1440  1440p 10248k , vp9, 30fps, video only, 134.26MiB
264          mp4        2560x1440  DASH video 10455k , avc1.640032, 30fps, video only, 126.69MiB
308          webm       2560x1440  DASH video 15387k , vp9, 60fps, video only, 203.80MiB
313          webm       3840x2160  2160p 21981k , vp9, 30fps, video only, 314.00MiB
266          mp4        3840x2160  DASH video 23320k , avc1.640033, 30fps, video only, 282.78MiB
315          webm       3840x2160  DASH video 29805k , vp9, 60fps, video only, 457.80MiB
330          webm       256x144    144p60  156k , vp9.2, 60fps, video only, 2.38MiB
331          webm       426x240    240p60  256k , vp9.2, 60fps, video only, 3.87MiB
332          webm       640x360    360p60  485k , vp9.2, 60fps, video only, 7.35MiB
333          webm       854x480    480p60  909k , vp9.2, 60fps, video only, 13.83MiB
334          webm       1280x720   720p60 1991k , vp9.2, 60fps, video only, 28.18MiB
335          webm       1920x1080  1080p60 3201k , vp9.2, 60fps, video only, 49.70MiB
336          webm       2560x1440  1440p60 11166k , vp9.2, 60fps, video only, 170.21MiB
337          webm       3840x2160  2160p60 21696k , vp9.2, 60fps, video only, 339.06MiB
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)
```