avformat/movenc: add support for Immersive Audio Model and Formats in ISOBMFF

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer
2024-02-15 19:39:01 -03:00
parent fe637161db
commit dbfa8381f6
2 changed files with 294 additions and 69 deletions

View File

@@ -170,6 +170,11 @@ typedef struct MOVTrack {
unsigned int squash_fragment_samples_to_one; //< flag to note formats where all samples for a fragment are to be squashed
PacketList squashed_packet_queue;
struct IAMFContext *iamf;
int first_iamf_idx;
int last_iamf_idx;
AVIOContext *iamf_buf;
} MOVTrack;
typedef enum {
@@ -188,6 +193,7 @@ typedef struct MOVMuxContext {
const AVClass *av_class;
int mode;
int64_t time;
int nb_streams;
int nb_tracks;
int nb_meta_tmcd; ///< number of new created tmcd track based on metadata (aka not data copy)
int chapter_track; ///< qt chapter track number