[FFmpeg-devel] [PATCH v3 03/25] avformat/movenc: support for multiple and client-provided track references

Michael Niedermayer michael at niedermayer.cc
Sat Nov 5 23:23:06 EET 2016


On Mon, Sep 19, 2016 at 04:25:26PM +0300, Erkki Seppälä wrote:
> Instead of one track reference, allow many, and instead of
> of track reference type (ie. 'cdsc'), allow many.
> 
> In addition this patch allows client to explicitly add track references
> with side packet AV_PKT_DATA_TRACK_REFERENCES containing
> AVTrackReferences (which of there can many many).
> 
> Internally MOVTrack's track references can be manipulated with helper
> functions ff_mov_tref* (and is used by a later patch for reading
> MOVTRefs).
> 
> Multiple track references can be useful in particular with timed meta
> data tracks, indicating the track is related to multiple other tracks.
> 
> This information ends up in ISO media file box 'tref' as specified by
> ISO/IEC 14496-12.
> 
> Signed-off-by: Erkki Seppälä <erkki.seppala.ext at nokia.com>
> Signed-off-by: OZOPlayer <OZOPL at nokia.com>
> ---
>  libavcodec/avcodec.h  |  19 ++++++-
>  libavformat/Makefile  |   4 +-
>  libavformat/movenc.c  | 153 ++++++++++++++++++++++++++++++++++++++++++--------
>  libavformat/movenc.h  |   5 +-
>  libavformat/movtref.c | 115 +++++++++++++++++++++++++++++++++++++
>  libavformat/movtref.h |  75 +++++++++++++++++++++++++
>  6 files changed, 344 insertions(+), 27 deletions(-)
>  create mode 100644 libavformat/movtref.c
>  create mode 100644 libavformat/movtref.h

fails to build

CC      libavformat/movenc.o
libavformat/movenc.c: In function ‘mov_write_moov_tag’:
libavformat/movenc.c:3612:34: error: ‘ff_codec_metadata_tags’ undeclared (first use in this function)
libavformat/movenc.c:3612:34: note: each undeclared identifier is reported only once for each function it appears in
libavformat/movenc.c: In function ‘mov_init’:
libavformat/movenc.c:5578:33: warning: variable ‘tmcd_track’ set but not used [-Wunused-but-set-variable]
libavformat/movenc.c:5578:17: warning: variable ‘hint_track’ set but not used [-Wunused-but-set-variable]

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161105/8bcc1169/attachment.sig>


More information about the ffmpeg-devel mailing list