[FFmpeg-devel] [PATCH 09/21] libavformat/movenc: support for multiple and client-provided track references

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Instead of one track reference, allow multiple. In addition, allow client to explicitly add track references with side packet AV_PKG_DATA_TRACK_REFERENCES containing AVTrackReferences. MOVTrack's track references can be manipulated with helper functions ff_mov_*tref*. Multipl

[FFmpeg-devel] [PATCH 07/21] libavcodec/metaenc: added an encoder/decoder for timed metadata

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä This encoder is used primarily with ISO media files and basically copies the data, while allowing the rest of the FFMPEG to refer to the meta data with its identifiers. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- configure | 4 ++-- libavcodec/M

[FFmpeg-devel] [PATCH 12/21] libavformat/mov, isom: read (multiple) track references (tag and multiple ids)

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä This can be useful in particular with timed meta data tracks related to multiple tracks. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavformat/isom.h | 3 +++ libavformat/mov.c | 46 +- 2 files changed, 48 inser

[FFmpeg-devel] [PATCH 17/21] libavcodec/avcodec, libavformat/movenc: introduced AV_PKT_DATA_TRACK_ALTERNATE_GROUP side data for expressing alternate groups

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Alternate groups previously always generated for ISO media files. With this addition client code can define track groups arbitrarily. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavcodec/avcodec.h | 13 - libavformat/movenc.c | 9 + 2 f

[FFmpeg-devel] [PATCH 18/21] libavformat/movenc: mov_write_audio_tag writes the proper number of channels, not the hardcoded 2

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 94d978b..020d13d 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c

[FFmpeg-devel] [PATCH 14/21] libavformat/mov: ff_mov_read_stsd_entries now deals with AVMEDIA_TYPE_DATA

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavformat/mov.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index f18c0a3..275b532 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2

[FFmpeg-devel] [PATCH 15/21] libavformat/mov: read urim metadata from meta

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä The data is read into side packet AV_PKT_DATA_TIMED_METADATA_INFO of format AVTimedMetadata. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavformat/isom.h | 1 + libavformat/mov.c | 163 + 2 files chang

[FFmpeg-devel] [PATCH 10/21] libavformat/movenc: add the urim sample descriptor

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä This also adds libavformat/movmeta that contains the meta data information. Later commits will add public interfaces for accessing the data. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavcodec/avcodec.h | 18 ++- libavformat/isom.c| 1 + liba

[FFmpeg-devel] [PATCH 20/21] doc/examples/muxing_with_metadata: example for dealing with timed meta data

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- doc/examples/Makefile | 2 + doc/examples/muxing_with_metadata.c | 882 2 files changed, 884 insertions(+) create mode 100644 doc/examples/muxing_with_metadata.c

[FFmpeg-devel] [PATCH 21/21] changelog: updated

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- Changelog | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 71abe8c..e45ab1e 100644 --- a/Changelog +++ b/Changelog @@ -17,7 +17,26 @@ version : -

[FFmpeg-devel] [PATCH 11/21] libavformat/movenc, isom: support metadata in mp4 files

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä This involves adding a new tag to the ff_mp4_obj_type table as well as modifying mp4_get_codec_tag to return 'meta' for AV_CODEC_ID_META. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavformat/isom.c | 1 + libavformat/movenc.c | 1 + 2 files changed, 2 in

[FFmpeg-devel] [PATCH 05/21] libavformat/movenc: mov_write_ftyp_tag: write the major brand a compatible brand

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavformat/movenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 8c4252d..34bc235 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -4203,6 +4

[FFmpeg-devel] [PATCH 16/21] libavcodec/avcodec, libavformat/movenc: support embedding channel layout to stream side data

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Added support for passing complex channel layout configuration as side packet data (AV_PKT_DATA_AUDIO_CHANNEL_LAYOUT, AV_PKT_DATA_AUDIO_CHANNEL_PREDEFINED_LAYOUT, AV_PKT_DATA_AUDIO_CHANNEL_LAYOUT_OBJECT_STRUCTURED) to ISO media files as specified by ISO/IEC 14496-12. This inf

[FFmpeg-devel] [PATCH 13/21] libavformat/mov: basic support for identifying (and reading) timed metadata

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä mov_codec_id is now able to set AVMEDIA_TYPE_DATA to the st->codec->codec_type field when the input is of type AVMEDIA_TYPE_DATA; previously it used AVMEDIA_TYPE_SUBTITLE as the value to set in that case. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavforma

[FFmpeg-devel] [PATCH 04/21] libavcodec: added a structure AVData for decoding timed metadata

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Also added avdata_alloc and avdata_free for dealing with it. AVData can contain arbitrary binary data and comes with a format-field so far unused. The purpose is that AVMEDIA_TYPE_DATA -kind codecs can store frames in this format. Signed-off-by: Erkki Seppälä Signed-off-by:

[FFmpeg-devel] [PATCH 08/21] libavformat/movenc: deal with AVMEDIA_TYPE_DATA by using AV_CODEC_ID_META

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä This includes creating an AVCodecTag table ff_codec_metadata_tags as there are for video, audio and subtitles. The tag table is used for mov-compatiblity. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavformat/isom.c | 5 + libavformat/isom.h | 1 +

[FFmpeg-devel] [PATCH 06/21] libavcodec/avcodec.h: AV_CODEC_ID_META added for timed meta data

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä This basically passes the data forward and is used for referring timed meta data tracks by a codec. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavcodec/avcodec.h | 2 +- libavcodec/metacodec.c | 94 ++ 2 f

[FFmpeg-devel] [PATCH 01/21] libavutil/mem: added av_arraydup to accompany av_realloc*_array functions

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä This allows copying an array so that is compatible with the array reallocation functions. av_memdup won't do, as it uses av_malloc underneath, but this one uses av_realloc_array for the allocation. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavutil/mem.c |

[FFmpeg-devel] [PATCH 19/21] doc/examples/extract_timed_metadata: added a bare-bones metadata extractor; find only the frames

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- doc/examples/Makefile | 1 + doc/examples/extract_timed_metadata.c | 233 ++ 2 files changed, 234 insertions(+) create mode 100644 doc/examples/extract_timed_metadat

[FFmpeg-devel] [PATCH 00/21] Add timed metadata tracks, track references, channel layout

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Hello, Here is a patch set with the goal of adding the following features to the ISO base media file format support of FFmpeg (also available at https://github.com/nokiatech/FFmpeg/tree/timed-metadata): * Ability to mux and demux timed metadata tracks Timed metadata track

[FFmpeg-devel] [PATCH 03/21] libavformat/movenc: added ability to use original stream ids as track i ds instead of regenerating them

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Sometimes it's useful to be able to define the exact track numbers in the generated track, instead of always beginning at track id 1. Using the option use_stream_ids_as_track_ids now copies the use stream ids to track ids. Dynamically generated tracks (ie. tmcd) have their tra

[FFmpeg-devel] [PATCH 02/21] libavformat/utils: added ability to probe AVMEDIA_TYPE_DATA format

2016-08-23 Thread erkki.seppala.ext
From: Erkki Seppälä Now force_codec_ids supports AVMEDIA_TYPE_DATA and avformat_query_codec accepts data codecs as well in addition to video, audio and subtitle tracks. Signed-off-by: Erkki Seppälä Signed-off-by: OZOPlayer --- libavformat/utils.c | 7 ++- 1 file changed, 6 insertions(+),