Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 0/5] Apple Spatial Metadata
@ 2024-06-10 18:44 Derek Buitenhuis
  2024-06-10 18:44 ` [FFmpeg-devel] [PATCH 1/5] avutil/spherical: Add more spherical types Derek Buitenhuis
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Derek Buitenhuis @ 2024-06-10 18:44 UTC (permalink / raw)
  To: ffmpeg-devel

So I am a bit hesitant to send this, because while some of the boxes are documented
officially by Apple, some of what are created by the Vision Pro / iPhones are not,
because the official PDF is outdated.

It's a call we have to make whether or not we want to push this, or hold out faith
Apple will eventually update their document.

I reverse engienered the rest of the boxes based on the what the AVFoundation APIs
expose for spatial files. See each commit message.

Example file: https://www.dropbox.com/scl/fi/g4b0q6c0e0xb9kwxcsvaa/IMG_1722.MOV?rlkey=az1qik442xut3jwq73jvcau9n&dl=0
Example stream from Apple: https://developer.apple.com/streaming/examples/

I can provide more if needed.

Anyone with an iPhone 15+ or Vision Pro can make some files, too, of course.

Some other notes:
  * I did not implement the 'must' box, as described in [1], since its only purpose
    seems to be to fail input files. I can add this as information-only if people want.
    I have not found any samples with this box, including files made by Apple.
  * Right now I am checking if the side data values are zero, as this is the best I could
    come up with, but comments welcome.
  * I like the idea that the 'dadj' box sits inside a 'cmfy' box, it seems very wholesome.

[1] https://developer.apple.com/av-foundation/HEVC-Stereo-Video-Profile.pdf

Derek Buitenhuis (5):
  avutil/spherical: Add more spherical types
  avutil/stereo3d: Fill out stereo info provided by Vision Pro files
  fftools/ffprobe: Print more Stereo 3D info from side data
  avformat/mov: Add support for exporting Video Extension Usage info
  avformat/mov: Add support for reading and exporting horizontal field
    of view

 fftools/ffprobe.c     |   8 ++
 libavformat/mov.c     | 308 ++++++++++++++++++++++++++++++++++++++++++
 libavutil/spherical.c |   3 +
 libavutil/spherical.h |  16 +++
 libavutil/stereo3d.c  |  52 +++++++
 libavutil/stereo3d.h  |  80 +++++++++++
 libavutil/version.h   |   2 +-
 7 files changed, 468 insertions(+), 1 deletion(-)

-- 
2.43.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-06-17 13:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-10 18:44 [FFmpeg-devel] [PATCH 0/5] Apple Spatial Metadata Derek Buitenhuis
2024-06-10 18:44 ` [FFmpeg-devel] [PATCH 1/5] avutil/spherical: Add more spherical types Derek Buitenhuis
2024-06-11 18:44   ` James Almer
2024-06-14 13:03     ` Derek Buitenhuis
2024-06-17 13:11       ` Derek Buitenhuis
2024-06-10 18:44 ` [FFmpeg-devel] [PATCH 2/5] avutil/stereo3d: Fill out stereo info provided by Vision Pro files Derek Buitenhuis
2024-06-10 18:44 ` [FFmpeg-devel] [PATCH 3/5] fftools/ffprobe: Print more Stereo 3D info from side data Derek Buitenhuis
2024-06-11 18:09   ` Michael Niedermayer
2024-06-11 18:43     ` Derek Buitenhuis
2024-06-14 13:04       ` Derek Buitenhuis
2024-06-10 18:44 ` [FFmpeg-devel] [PATCH 4/5] avformat/mov: Add support for exporting Video Extension Usage info Derek Buitenhuis
2024-06-10 19:38   ` James Almer
2024-06-10 19:45     ` Derek Buitenhuis
2024-06-10 18:44 ` [FFmpeg-devel] [PATCH 5/5] avformat/mov: Add support for reading and exporting horizontal field of view Derek Buitenhuis

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git