qtmux: Add option to create a timecode trak in non-mov flavors
authorVivia Nikolaidou <vivia@ahiru.eu>
Mon, 22 Oct 2018 12:41:56 +0000 (15:41 +0300)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 3 Apr 2020 18:19:38 +0000 (18:19 +0000)
commit5817c659e67c98f1d32db9d630ea1103ddd2b261
treee8ea2dc59e397fd6adaf46eb76cc03d55ad7b256
parentdb69f02dd8a699d775134187b2f011713da7d6ca
qtmux: Add option to create a timecode trak in non-mov flavors

Even if timecode trak is officially unsupported in non-mov flavors,
some software still supports it, e.g. Final Cut Pro X:

https://developer.apple.com/library/archive/technotes/tn2174/_index.html

The user might still expect to see the timecode information in the
non-mov file despite it being officially unsupported , because other
software e.g. QuickTime will create a timecode trak even in mp4 files.
Furthermore, software that supports timecode trak in non-mov flavors
will also display the file duration in "timecode units" instead of real
clock time, which is not necessarily the same for 29.97 fps and friends.
This might confuse users, who see a different duration for the same
framerate and amount of frames depending on whether the container is mp4
or mov.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/512
gst/isomp4/atoms.c
gst/isomp4/atoms.h
gst/isomp4/fourcc.h
gst/isomp4/gstqtmux.c
gst/isomp4/gstqtmux.h