Opened 14 months ago

Last modified 10 months ago

#10257 new defect

FFmpeg does not recognise dolby vision hevc tags

Reported by: Caleb Evans Owned by:
Priority: normal Component: ffmpeg
Version: unspecified Keywords: hevc
Cc: Dominik Mierzejewski Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
FFmpeg does not recognise the dvh1 or dvhe tags for HEVC, which are hvc1 and hev1 samples with Dolby Vision encoding, as here: https://developer.apple.com/documentation/http_live_streaming/http_live_streaming_hls_authoring_specification_for_apple_devices/hls_authoring_specification_for_apple_devices_appendixes

When attempting to use the tag the following output is produced:

[mp4 @ 0x15770bf00] Could not find tag for codec hevc in stream #0, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:2 -- 

How to reproduce:

% ffmpeg -i input.mkv -c:v copy -tag:v dvh1 -c:a copy -c:s mov_text -strict unofficial output.mp4
ffmpeg 5.1.2

Change History (6)

comment:1 by Balling, 14 months ago

dvh1 or dvhe tags for HEVC

Those tags are always used with normal tag.

comment:2 by Caleb Evans, 14 months ago

They are not, they replace the normal tag if the encode only supports Vision.

comment:3 by Balling, 14 months ago

They are not, they replace the normal tag if the encode only supports Vision.

You mean profile 5?

comment:4 by Caleb Evans, 14 months ago

Yes, the video I'm trying to remux is profile 5

comment:5 by Dominik Mierzejewski, 10 months ago

Cc: Dominik Mierzejewski added
Note: See TracTickets for help on using tickets.