Apple iPhone Cinematic mode stores depth/disparity as auxiliary video
track with 'dish' FourCC. The codec is HEVC monochrome (gray10le).

Before: Stream #0:1: Data: none (dish / 0x68736964)
After:  Stream #0:1: Video: hevc (Rext) (dish), gray10le, 512x288

Example: ffmpeg -i cinematic.mov -map 0:1 -pix_fmt gray depth.mp4
---
 libavformat/isom_tags.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/isom_tags.c b/libavformat/isom_tags.c
index 151c42e9e6..825888fd6c 100644
--- a/libavformat/isom_tags.c
+++ b/libavformat/isom_tags.c
@@ -129,6 +129,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = {
     { AV_CODEC_ID_HEVC, MKTAG('h', 'e', 'v', '1') }, /* HEVC/H.265 which 
indicates parameter sets may be in ES */
     { AV_CODEC_ID_HEVC, MKTAG('h', 'v', 'c', '1') }, /* HEVC/H.265 which 
indicates parameter sets shall not be in ES */
     { AV_CODEC_ID_HEVC, MKTAG('d', 'v', 'h', 'e') }, /* HEVC-based Dolby 
Vision derived from hev1 */
+    { AV_CODEC_ID_HEVC, MKTAG('d', 'i', 's', 'h') }, /* Apple Cinematic 
depth/disparity */
                                                      /* dvh1 is handled within 
mov.c */
 
     { AV_CODEC_ID_H264, MKTAG('a', 'v', 'c', '1') }, /* AVC-1/H.264 */
-- 
2.43.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to